From cd5e90ca3dfe3147b4135b6dc362d7aeb5477ff6 Mon Sep 17 00:00:00 2001 From: Sydney Staff <10c5b0fc410386697@cloudflare.com> Date: Mon, 19 Sep 2022 06:29:48 +0000 Subject: [PATCH] Package data --- tool/mypdns/reporter/addon/firefox/main.js | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/tool/mypdns/reporter/addon/firefox/main.js b/tool/mypdns/reporter/addon/firefox/main.js index 999763f343..1065758b07 100644 --- a/tool/mypdns/reporter/addon/firefox/main.js +++ b/tool/mypdns/reporter/addon/firefox/main.js @@ -250,6 +250,45 @@ function reload_menu() { }); } } + if (r.nocat22 != '1') { + iLastMenu = '22'; + browser.menus.create({ + parentId: 'iactLINK', + id: 'actLINK_coinblocker', + documentUrlPatterns: ['http://*/*', 'https://*/*'], + title: 'Coin Blocker', + icons: { + '32': 'i/coinblocker.png' + }, + contexts: ['link'] + }); + browser.menus.create({ + parentId: 'iactPAGE', + id: 'actPAGE_coinblocker', + documentUrlPatterns: ['http://*/*', 'https://*/*'], + title: 'Coin Blocker', + icons: { + '32': 'i/coinblocker.png' + }, + contexts: ['page'] + }); + if (r.nocat98 != '1') { + browser.menus.create({ + parentId: 'iactLINK', + id: 'sepaLink_' + iLastMenu, + documentUrlPatterns: ['http://*/*', 'https://*/*'], + type: 'separator', + contexts: ['link'] + }); + browser.menus.create({ + parentId: 'iactPAGE', + id: 'sepaPage_' + iLastMenu, + documentUrlPatterns: ['http://*/*', 'https://*/*'], + type: 'separator', + contexts: ['page'] + }); + } + } if (r.nocat02 != '1') { iLastMenu = '02'; browser.menus.create({