Skip to content

Commit

Permalink
Firefox V2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zijian-shao committed Feb 1, 2019
1 parent 0a44c35 commit 679d53b
Show file tree
Hide file tree
Showing 25 changed files with 380 additions and 485 deletions.
3 changes: 2 additions & 1 deletion WaterlooWorksAzure_Firefox/css/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
scrollbar-width: thin;
}

body, strong, p, a, h1, h2, h3, h4, h5, h6, input, button, select {
Expand Down Expand Up @@ -1260,7 +1261,7 @@ div.arrow.left {

.popup-frame {
width: 100%;
max-width: 400px;
max-width: 420px;
margin: auto;
background: #fff;
-webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
Expand Down
4 changes: 2 additions & 2 deletions WaterlooWorksAzure_Firefox/html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -1005,8 +1005,8 @@ <h5 i18n-text="disclaimers"></h5>
</div>
<!-- Welcome End -->

<script type="text/javascript" src="/js/plugins/jquery.js"></script>
<script type="text/javascript" src="/js/plugins/localization.js"></script>
<script type="text/javascript" src="/js/libs/jquery.js"></script>
<script type="text/javascript" src="/js/libs/localization.js"></script>
<script type="text/javascript" src="/js/configs.js"></script>
<script type="text/javascript" src="/js/options.js"></script>

Expand Down
4 changes: 2 additions & 2 deletions WaterlooWorksAzure_Firefox/html/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@

<div class="azure-toast azure-toast-hidden" id="azure-toast" i18n-text="needRefreshToApply"></div>

<script type="text/javascript" src="/js/plugins/jquery.js"></script>
<script type="text/javascript" src="/js/plugins/localization.js"></script>
<script type="text/javascript" src="/js/libs/jquery.js"></script>
<script type="text/javascript" src="/js/libs/localization.js"></script>
<script type="text/javascript" src="/js/configs.js"></script>
<script type="text/javascript" src="/js/popup.js"></script>

Expand Down
63 changes: 2 additions & 61 deletions WaterlooWorksAzure_Firefox/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function initBackground() {
console.log('Welcome to WaterlooWorks Azure!');
browser.runtime.onInstalled.addListener(installWelcome);
browser.runtime.setUninstallURL("https://www.zijianshao.com/wwazure/uninstall/?platform=firefox", function () {
if (chrome.runtime.lastError) {
if (browser.runtime.lastError) {
}
});

Expand All @@ -76,7 +76,7 @@ function initBackground() {
});

/**
* API Calls From Content Scripts
* Firefox API Calls From Content Scripts
*/
browser.runtime.onMessage.addListener(function (request, sender, sendResponse) {

Expand Down Expand Up @@ -149,62 +149,3 @@ function initBackground() {
}

initBackground();

// browser.webRequest.onSendHeaders.addListener(
// function (details) {
// browser.tabs.query({active: true, currentWindow: true}, function (tabs) {
// browser.tabs.sendMessage(tabs[0].id, {
// action: 'webRequest.onSendHeaders',
// data: {
// url: details.url
// }
// }, function (response) {
// });
// });
//
// },
// {
// urls: ["*://waterlooworks.uwaterloo.ca/myAccount/co-op/coop-postings.htm*",
// "*://waterlooworks.uwaterloo.ca/myAccount/hire-waterloo/other-jobs/jobs-postings.htm*",
// "*://waterlooworks.uwaterloo.ca/myAccount/hire-waterloo/full-time-jobs/jobs-postings.htm*"]
// }
// );
//
// browser.webRequest.onCompleted.addListener(
// function (details) {
// browser.tabs.query({active: true, currentWindow: true}, function (tabs) {
// browser.tabs.sendMessage(tabs[0].id, {
// action: 'webRequest.onCompleted',
// data: {
// url: details.url
// }
// }, function (response) {
// });
// });
//
// },
// {
// urls: ["*://waterlooworks.uwaterloo.ca/myAccount/co-op/coop-postings.htm*",
// "*://waterlooworks.uwaterloo.ca/myAccount/hire-waterloo/other-jobs/jobs-postings.htm*",
// "*://waterlooworks.uwaterloo.ca/myAccount/hire-waterloo/full-time-jobs/jobs-postings.htm*"]
// }
// );


browser.webRequest.onCompleted.addListener(
function (details) {
browser.tabs.query({active: true, currentWindow: true}, function (tabs) {
browser.tabs.sendMessage(tabs[0].id, {
action: 'webRequest.onCompleted',
data: {
url: details.url
}
}, function (response) {
});
});

},
{
urls: ["*://waterlooworks.uwaterloo.ca/myAccount/dashboard.htm*"]
}
);
2 changes: 1 addition & 1 deletion WaterlooWorksAzure_Firefox/js/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function getOptionListDefault() {
'JOB_FlipPageBackToTop': true,
'JOB_FixTableHeader': true,
'JOB_NewTagSwitch': true,
'JOB_GlassdoorRanking': false,
'JOB_GlassdoorRanking': true,
'JOB_EmptyShortlistButton': true,
'JOB_ColumnDisplayType': 0,
'JOB_ColumnSelected': ['action-buttons', 'app-status', 'id', 'job-title', 'organization', 'division', 'openings', 'position-type', 'internal-status', 'city', 'location', 'level', 'applications', 'app-deadline', 'not-interested'],
Expand Down
Loading

0 comments on commit 679d53b

Please sign in to comment.