From 0dcb99f5352a6f6e98e342043be2532b8f66748b Mon Sep 17 00:00:00 2001 From: Particle Date: Sun, 7 Jan 2024 15:47:59 -0500 Subject: [PATCH] Closes #907 --- bin/update.json | 4 ++-- dist/Iridium.xpi | Bin 1165024 -> 1164888 bytes src/js/background.js | 23 ++--------------------- src/manifest.json | 16 +++++++--------- 4 files changed, 11 insertions(+), 32 deletions(-) diff --git a/bin/update.json b/bin/update.json index bd2b400..ad4bafe 100644 --- a/bin/update.json +++ b/bin/update.json @@ -3,11 +3,11 @@ "unlisted-iridium@particlecore.github.io" : { "updates" : [ { - "version" : "2.0.0", + "version" : "2.0.1", "update_link" : "https://github.com/ParticleCore/Iridium/raw/master/dist/Iridium.xpi", "applications" : { "gecko" : { - "strict_min_version" : "100.0" + "strict_min_version" : "110.0" } } } diff --git a/dist/Iridium.xpi b/dist/Iridium.xpi index 421074ea77bb3514ac542380dfaa5ed2aabf1fd0..f4a2fa620155fa8dcc6e0dc79f21b6217eca9054 100644 GIT binary patch delta 4954 zcmZ9QXEa>h8h}UdBO^M&M2jw>_gcZE zQHCJgoJ*1hM)KF@RZe&2QWT6_O^-^B!t>39wD2ikb})S$o5*xh7uKHNW}RMelb z8UrT6AG^zKT02TqMfndskETOL)8Py~`Nv{R196b1fw(7O*J^~tMH*r8NFHCS^+SB5 z^+SSt0oRJ?BS0eh2z6lBx-L(IT$d*vwzyVQHZc;FO=1vyt(4THNJ?rlFY9ZKfRQ01 zVC45huXSXP967Q_VQG1-!a882unwia$+f=Er$oNbztQaVXAek6DhSHupYKSHrx0Fz zfIF1i^y!WG8b2@yv?~e%-T1R_S3er{(ZOIs?nbsR>WO3GW2mI`4E!t(-N z=?YDpWTjM%f6KwiJ!iGN@56ZfAXHvhD2D9(Y%6YJ2yttLxCC>$KD=HT(o;9GNS}qU zx;Uo^iP#a8w`SGv>`p%2SoQ>_d<}CVD`Ez*4ke+m2^Qo7s?^wnU(0joFA=I?E#57# ztdVI3yR$D*iJNp1IZFfa`?${tF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h70DKmPl87c-O1M_j3WszJA2>}5B zYa~}Ilm#*PK2M;#9yOs@gsy)IDdSbm;Cw})00_70&!#+-<@WtQ0SWU?+_YWGOPmbr)lVDOxW|+@T-?l+U zHqB77BO4~<2VmfqPCI-X>`bsurEmEdz!-A zmEdb~JO?@UE=)QbQQS%C%BstS_&*X)2~Z#J{|UiS60sH3G^jou_2IvR-)i}2acUV* z1LNF%F4nm<1nqkZGerL13 zQ!(*fUIRM4PQ;HPe*XM<6F9e1pa2k_YcsVC|EyB=|1+| zG~(k0HrhydJ{0x)95K`BYUyM_m-~JwD*v!dg;kO!C3?<|Ur8_`hZe zxzr04WRAJEO}`%~t60MT0M&8;;Lbmu4FJFcFkdH^H%OsADEsvwA}?;>gnNo?WO+Tuek*%Wxk%Ub6PE;>j|480stufv$GZEpQ^8; zpP#FTGoOR4pY8wG|IdUH0sv(H>8H0s0jy7LJzSj}ef_SRo*sHy1lOwo0H*8v+x2;S I?a*ubKjhGZh5!Hn diff --git a/src/js/background.js b/src/js/background.js index 43bd650..d995b56 100644 --- a/src/js/background.js +++ b/src/js/background.js @@ -413,7 +413,7 @@ const Api = { ini: () => { browser.runtime.onConnect.addListener(Api.onPortConnect); - browser.action.onClicked.addListener(Util.onBrowserActionClickedListener); + browser.browserAction.onClicked.addListener(Util.onBrowserActionClickedListener); browser.storage.local.onChanged.addListener(Util.onStorageChangedListener); browser.storage.sync.get().then(Util.checkSyncStorage); @@ -422,23 +422,4 @@ const Api = { } } -function checkPermissions() { - - const manifestData = browser.runtime.getManifest(); - const data = { - origins: manifestData.host_permissions, - permissions: manifestData.permissions - }; - - browser.permissions.contains(data).then(allAllowed => { - if (allAllowed){ - browser.permissions.onAdded.removeListener(checkPermissions); - Api.ini(); - } else { - browser.permissions.onAdded.addListener(checkPermissions); - } - }); - -} - -checkPermissions(); \ No newline at end of file +Api.ini(); \ No newline at end of file diff --git a/src/manifest.json b/src/manifest.json index 88cbcbf..0590a8a 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { - "manifest_version": 3, + "manifest_version": 2, "name": "Iridium for YouTube", - "version": "2.0.0", + "version": "2.0.1", "description": "YouTube with more freedom", "default_locale": "en_US", "options_ui": { @@ -15,7 +15,7 @@ "64": "icons/64.png", "128": "icons/128.png" }, - "action": { + "browser_action": { "default_icon": { "16": "icons/16.png", "32": "icons/32.png", @@ -29,7 +29,8 @@ "js/setting-data.js", "js/background-inject.js", "js/background.js" - ] + ], + "persistent": true }, "content_scripts": [ { @@ -46,16 +47,13 @@ "storage", "webRequest", "webRequestBlocking", - "webRequestFilterResponse" - ], - "host_permissions": [ - "*://.youtube.com/*", + "webRequestFilterResponse", "*://www.youtube.com/*" ], "browser_specific_settings": { "gecko": { "id": "unlisted-iridium@particlecore.github.io", - "strict_min_version": "100.0", + "strict_min_version": "110.0", "update_url": "https://github.com/ParticleCore/Iridium/raw/master/bin/update.json" } }