From 0904d8e2a61f5651de5dc219744b139a280b3f54 Mon Sep 17 00:00:00 2001 From: kkapsner Date: Tue, 8 Sep 2015 11:42:32 +0200 Subject: [PATCH] Linted all files. --- canvasblocker.xpi | Bin 29946 -> 31794 bytes lib/lists.js | 12 ++++++++++-- lib/modifiedAPI.js | 3 ++- lib/notifications.js | 4 ++-- lib/sharedFunctions.js | 13 ++++++++++++- lib/stylePreferencePane.js | 9 +++++---- 6 files changed, 31 insertions(+), 10 deletions(-) diff --git a/canvasblocker.xpi b/canvasblocker.xpi index 4de89f2ee3fcb4f343b314eb5ce4206414d659de..c717e1c74cc1c29578164bb5e46cef805a7ea672 100644 GIT binary patch delta 10099 zcmZvCWl$bX(=HNR6D&9ccM0xJaCg0NcMY<*1q(MGEI0&rcMTrg-Q67y&r|0+@0}5C55cKNU5PSC47|0H7>~?Y@1P(c{NN!V zkly~3_pcZ5Ld z^RQ4UiUA*nu{0pKd48*4_UTW7PwyaV4M^E!LiCB|lfpNxCY?e4N>Wf&p^$2f)E_oE z-NE)qXFM68RZiN1&I;Y7Di5B*uS&2I0)^#sC1y+1Eqe_1XAx!SFjhKw$9-Np#fF9&_i-d_(xvWMROH(E>(`P4PQv z{crmM^piYwt=_CUT_q=^-&pn6^3-rvS>BGn3291!8@-zX)Oa{{MK{EvmMJB5l7r|4 zkoNe?ydbQwl-e(Sgj63ItaTTd7N%eRWu{SE_q#e`Zt=6v!R_81^&7I`C=8&g03=-% zztlLJT%s8gw+1>h-AmMMn}tRzSj=h6yf&ApdPKK-ZTh80LT;buas!iXU5*}Gd`s9# z{t_1;Vb&7BiTV0+axiUZ@;Hflgm{JUs%Q8cNF|7h#d#o=0axJH&tWX4yIVi&ZEeco z?t?Tkw5KS^sVRi=4cANbVY8|P&A6he2+p~0r4ePDHEVWZNn|l$ur1O5_%y> z!KqN@M(O5-KZaH&KSTeeIFcVSi6{%+6ouqXX$T>}sP@D_`u9%6E@tGAQ-R>CToNxx zri~6T&p1_>9*?NC_QLS~;$l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BUUzO}MM&Gr03`PNgyr_~gOm&-+v{8V-Te-e>v_q3oDyS2e?& z*4OY1$2}BV?ShsMs~rjL1OCX~-3NVbgU@PYnk%=rGY2AWTdwriiJ#jhq6C8Fo`ave zWUMb~4g+;Flq$r-PR_jU!4HAz=5nX25RjV zDMFk>Bb9AU)XCJL-y=2b!j#hVZSE#`k*|jScPiUe5J<$Qte&aqJWKoIDW&sz5|Zv) zzmgl{sdin-lejqMJUQ_xm| zK^E!|pU>&&*+F%;+x&R`b%cjuU_MtLUrpV+Zq*_6sb0y&wE3ty`F35?Z8iZ>5!cZU zr|;u0l?JBV+s7?KLhl`tggHN#lRlh@iIm6S<$iH1vN8PmBkP(gH(zJ>{gq){(D0$N zzXavuQ3iXuxA{A-Y|(VY22Opr1Zhw%#{L4O2cXfQlX;dJ*(7!S?B1RAItgz7l9u7i zxhJmUI1yTS;dJ|y;JW!F1yxcaM>bN8KtFurk{5z$0yJP||8RCWb-gpQBiDO*LpWL> zFwD8y+>pqYu+c=gTCiJp+4vxX2;mv(ms}6S8AO-XJvcl%7gDrd&VHf||p#qQj^1*g#{0)-(VN?H)wfUc~ z|5=+u?*1>Z-;bF3f1I3u0p)c5zLCWc4NUzJo%&zHVGIC(^v%=ci{k@&_ l$EE%!8~^`d`kzOeLyGLchyj$C!~kMIB_aSI?D9|O{{TEkXM6wv diff --git a/lib/lists.js b/lib/lists.js index 857d20f..895022a 100644 --- a/lib/lists.js +++ b/lib/lists.js @@ -56,9 +56,13 @@ var lists = { }; function updateList(type){ + "use strict"; + lists[type] = getDomainRegExpList(prefs[type + "List"]); } Object.keys(lists).forEach(function(type){ + "use strict"; + preferences.on(type + "List", function(){ updateList(type); }); @@ -66,11 +70,15 @@ Object.keys(lists).forEach(function(type){ }); exports.get = function getList(type){ + "use strict"; + return lists[type]; -} +}; exports.appendTo = function appendToList(type, entry){ + "use strict"; + prefs[type + "List"] += (prefs[type + "List"]? ",": "") + entry; prefService.set("extensions.CanvasBlocker@kkapsner.de.whiteList", prefs[type + "List"]); updateList(type); -} +}; exports.update = updateList; \ No newline at end of file diff --git a/lib/modifiedAPI.js b/lib/modifiedAPI.js index 52b350a..592003b 100644 --- a/lib/modifiedAPI.js +++ b/lib/modifiedAPI.js @@ -1,3 +1,4 @@ +/* jslint moz: true, bitwise: true */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -32,7 +33,7 @@ data[i] = value; } var canvas = original.cloneNode(true); - var context = window.HTMLCanvasElement.prototype.getContext.call(canvas, "2d"); + context = window.HTMLCanvasElement.prototype.getContext.call(canvas, "2d"); context.putImageData(imageData, 0, 0); return canvas; } diff --git a/lib/notifications.js b/lib/notifications.js index d7333b5..8537b16 100644 --- a/lib/notifications.js +++ b/lib/notifications.js @@ -7,11 +7,12 @@ var preferences = require("sdk/simple-prefs"); var prefService = require("sdk/preferences/service"); var prefs = preferences.prefs; var tabUtils = require("sdk/tabs/utils"); -var windowUtils = require("sdk/window/utils"); var lists = require("./lists"); var URL = require("sdk/url").URL; exports.notify = function(window, callingStackMsg){ + "use strict"; + var contentURL = new URL(window.location); if (prefs.showNotifications && !lists.get("ignore").match(contentURL)){ var url = contentURL.href; @@ -94,5 +95,4 @@ exports.notify = function(window, callingStackMsg){ notification.callingStackMsg = callingStackMsg; } } - }; \ No newline at end of file diff --git a/lib/sharedFunctions.js b/lib/sharedFunctions.js index 32d9d30..cb2cb98 100644 --- a/lib/sharedFunctions.js +++ b/lib/sharedFunctions.js @@ -1,4 +1,5 @@ /* global console,exports */ +/* jslint moz: true */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -10,6 +11,8 @@ const prefs = preferences.prefs; // Translation var translate = require("sdk/l10n").get; var _ = function(name, replace){ + "use strict"; + var str = translate(name) || name; if (replace){ // replace generic content in the transation by given parameter @@ -23,7 +26,8 @@ var _ = function(name, replace){ function checkURL(url, blockMode){ "use strict"; - if (url.protocol === "about:" || url.protocol == "chrome:") { + + if (url.protocol === "about:" || url.protocol === "chrome:") { return "allow"; } @@ -35,6 +39,9 @@ function checkURL(url, blockMode){ case "block": case "blockContext": case "blockReadout": + case "ask": + case "askContext": + case "askReadout": case "fake": case "fakeContext": case "fakeReadout": @@ -63,6 +70,8 @@ function checkURL(url, blockMode){ // Stack parsing function parseStackEntry(entry){ + "use strict"; + var m = /@(.*):(\d*):(\d*)$/.exec(entry) || ["", entry, "--", "--"]; return { url: m[1], @@ -74,6 +83,8 @@ function parseStackEntry(entry){ // parse calling stack function errorToCallingStackMsg(error){ + "use strict"; + var msg = ""; var callers = error.stack.trim().split("\n"); //console.log(callers); diff --git a/lib/stylePreferencePane.js b/lib/stylePreferencePane.js index e96b082..4ac4b50 100644 --- a/lib/stylePreferencePane.js +++ b/lib/stylePreferencePane.js @@ -1,16 +1,17 @@ +/* jslint moz: true */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ (function(){ "use strict"; - const { Cu } = require('chrome'); - const { on } = require('sdk/system/events'); - const self = require('sdk/self'); + const { Cu } = require("chrome"); + const { on } = require("sdk/system/events"); + const self = require("sdk/self"); const { AddonManager } = Cu.import("resource://gre/modules/AddonManager.jsm"); const { setTimeout } = require("sdk/timers"); const { loadSheet } = require("sdk/stylesheet/utils"); AddonManager.getAddonByID(self.id, function(addon){ - on('addon-options-displayed', onAddonOptionsDisplayed, true); + on("addon-options-displayed", onAddonOptionsDisplayed, true); }); function onAddonOptionsDisplayed({ subject: doc, data }) {