From e0018643e5cebc35a3786ffe04a323b03cd662b4 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Fri, 3 Jan 2020 00:22:19 -0500 Subject: Remove old extensions and add the reworked workarounds extension * data/update-extensions.sh: Remove free-js-for-rsf-org-petitions, librejs-compatible-sumofus-org, librejs-compatible-pay-gov, rock-and-roll-mcdonald-s, goteo-org-payments-w-free-js, use-google-drive-with-librejs. These have been reworked and are all now bundled into one single extension. * data/extensions/DMCAreg@0xbeef.coffee/*, data/extensions/SimpleSumOfUs@0xbeef.coffee/*, data/extensions/google_drive@0xbeef.coffee/*, data/extensions/goteo@0xbeef.coffee/*, data/extensions/rsf@0xbeef.coffee/*, data/extensions/rnrMcDonalds@0xbeef.coffee/*: Remove. * data/extensions/gnuzilla-ext-workarounds@gnu.org/LICENSE, data/extensions/gnuzilla-ext-workarounds@gnu.org/README, data/extensions/gnuzilla-ext-workarounds@gnu.org/README~, data/extensions/gnuzilla-ext-workarounds@gnu.org/background.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/background.js~, data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.html, data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.html~, data/extensions/gnuzilla-ext-workarounds@gnu.org/html/domestic.js~, data/extensions/gnuzilla-ext-workarounds@gnu.org/html/jquery-3.4.1.min.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/html/usps_postage.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/html/usps_postage.js~, data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/L4Libre.png, data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/L4Libre128.png, data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/L4Libre48.png, data/extensions/gnuzilla-ext-workarounds@gnu.org/icons/test.png, data/extensions/gnuzilla-ext-workarounds@gnu.org/jquery-3.4.1.min.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/manifest.json, data/extensions/gnuzilla-ext-workarounds@gnu.org/manifest.json~, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/googledocs_main.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/googledocs_main.js~, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/goteo_main.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/goteo_main.js~, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/mcdonalds_wifi.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/mcdonalds_wifi.js~, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/paygov_main.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/paygov_main.js~, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/rsf_main.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/rsf_main.js~, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/sumofus_main.js, data/extensions/gnuzilla-ext-workarounds@gnu.org/workaround/sumofus_main.js~: New files. These were imported from the "integrated addon" directory of https://0xbeef.coffee/final4.zip, extracted using: unzip final4.zip "final/integrated addon/*" -d gnuzilla-ext-workarounds@gnu.org/ mv "gnuzilla-ext-workarounds@gnu.org/final/integrated addon"/* gnuzilla-ext-workarounds@gnu.org/ rm -rf gnuzilla-ext-workarounds@gnu.org/final/ add original backup files --- data/extensions/DMCAreg@0xbeef.coffee/License | 8 ---- .../DMCAreg@0xbeef.coffee/META-INF/manifest.mf | 42 ------------------ .../DMCAreg@0xbeef.coffee/META-INF/mozilla.rsa | Bin 4178 -> 0 bytes .../DMCAreg@0xbeef.coffee/META-INF/mozilla.sf | 4 -- data/extensions/DMCAreg@0xbeef.coffee/blockjs1.js | 33 -------------- .../DMCAreg@0xbeef.coffee/icons/L4Libre.png | Bin 381 -> 0 bytes .../DMCAreg@0xbeef.coffee/icons/L4Libre128.png | Bin 5760 -> 0 bytes .../DMCAreg@0xbeef.coffee/icons/L4Libre48.png | Bin 1404 -> 0 bytes .../extensions/DMCAreg@0xbeef.coffee/manifest.json | 39 ---------------- data/extensions/DMCAreg@0xbeef.coffee/pay.js | 49 --------------------- .../extensions/DMCAreg@0xbeef.coffee/unhidehtml.js | 19 -------- 11 files changed, 194 deletions(-) delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/License delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/META-INF/manifest.mf delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.rsa delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.sf delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/blockjs1.js delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre.png delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre128.png delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre48.png delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/manifest.json delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/pay.js delete mode 100644 data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js (limited to 'data/extensions/DMCAreg@0xbeef.coffee') diff --git a/data/extensions/DMCAreg@0xbeef.coffee/License b/data/extensions/DMCAreg@0xbeef.coffee/License deleted file mode 100644 index 638bb51..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/License +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/manifest.mf b/data/extensions/DMCAreg@0xbeef.coffee/META-INF/manifest.mf deleted file mode 100644 index 32d4ec4..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/manifest.mf +++ /dev/null @@ -1,42 +0,0 @@ -Manifest-Version: 1.0 - -Name: blockjs1.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: EJxqV3sHdfrEnJZogcJFJQ== -SHA1-Digest: t9H09gXcb8mJU0K2MXj+M3/a92c= - -Name: License -Digest-Algorithms: MD5 SHA1 -MD5-Digest: o1+NLuXuBdXDUPbqMKclVg== -SHA1-Digest: 9neKP3yy2up5cLrNOoXL0zOPkJY= - -Name: manifest.json -Digest-Algorithms: MD5 SHA1 -MD5-Digest: wSkRLX9zPT6qxHA/KBuKjA== -SHA1-Digest: LRYM22J0nOa9TGAFPiZ3yAQVHng= - -Name: pay.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: 8YqH25U8K1pHrnecFcUlNg== -SHA1-Digest: LVBxTR+tNs6IYqxtVG/HxOHQLzE= - -Name: unhidehtml.js -Digest-Algorithms: MD5 SHA1 -MD5-Digest: VjeA5iRQTGfTKX03WqXygg== -SHA1-Digest: aPdjED+4h+IQol3tm9Brlo2WzRQ= - -Name: icons/L4Libre.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: 4zvLiRtcfTqAAD1tLrsEsw== -SHA1-Digest: GcCCKFQJ8W4Nzd7mW4zEUs0xvg8= - -Name: icons/L4Libre128.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: BMl+LQVFGtIQC362YUozGA== -SHA1-Digest: c4gIR+7dTNjGG4GxGBOTfen9f/Q= - -Name: icons/L4Libre48.png -Digest-Algorithms: MD5 SHA1 -MD5-Digest: GRl/Cx1lCE7LCMC7s3NEsg== -SHA1-Digest: OPRWh2l1CljS+seEgz068G4P1VA= - diff --git a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.rsa b/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.rsa deleted file mode 100644 index 376403c..0000000 Binary files a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.rsa and /dev/null differ diff --git a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.sf b/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.sf deleted file mode 100644 index 5e8c3e8..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/META-INF/mozilla.sf +++ /dev/null @@ -1,4 +0,0 @@ -Signature-Version: 1.0 -MD5-Digest-Manifest: sYPkuHcMxArJcWiXiHnNHg== -SHA1-Digest-Manifest: nYfZzN5bZzdr82hVmfPstjNRMak= - diff --git a/data/extensions/DMCAreg@0xbeef.coffee/blockjs1.js b/data/extensions/DMCAreg@0xbeef.coffee/blockjs1.js deleted file mode 100644 index 591ce1a..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/blockjs1.js +++ /dev/null @@ -1,33 +0,0 @@ -/* -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ -console.log("blockjs1.js[pay.gov]"); - -// get this from the manifest.json directly -/* -var block_urls = [ - "*://actionnetwork.org/letters/*", - "*://www.dailykos.com/*", - "*://act.rootsaction.org/*", - "*://rootscation.org/*", - "*://*.salsalabs.org/*" -]; -*/ -var block_urls = ["https://www.pay.gov/tcsonline/*"]; -function cancel(requestDetails) { - console.log("[pay.gov]Canceling: " + requestDetails.url); - return {cancel: true}; -} - - -browser.webRequest.onBeforeRequest.addListener( - cancel, // function - {urls: block_urls, types: ["script"]}, - ["blocking"] -); diff --git a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre.png b/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre.png deleted file mode 100644 index 0ac7b4b..0000000 Binary files a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre.png and /dev/null differ diff --git a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre128.png b/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre128.png deleted file mode 100644 index cb8eea3..0000000 Binary files a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre128.png and /dev/null differ diff --git a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre48.png b/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre48.png deleted file mode 100644 index 66200a9..0000000 Binary files a/data/extensions/DMCAreg@0xbeef.coffee/icons/L4Libre48.png and /dev/null differ diff --git a/data/extensions/DMCAreg@0xbeef.coffee/manifest.json b/data/extensions/DMCAreg@0xbeef.coffee/manifest.json deleted file mode 100644 index b517556..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/manifest.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "manifest_version": 2, - "name": "LibreJS compatible Pay.gov", - "version": "1.2", - "author": "Nathan Nichols", - "id": "DMCAreg@0xbeef.coffee", - "description": "Allows LibreJS users to register DMCA claim contacts at the DMCA registry.", - "icons": { - "16": "icons/L4Libre.png", - "48": "icons/L4Libre48.png", - "128": "icons/L4Libre128.png" - }, - "applications": { - "gecko": { - "id": "DMCAreg@0xbeef.coffee", - "strict_min_version": "42.0" - } - }, - - "permissions": [ - "webRequest", - "webRequestBlocking" - ], - "background": { - "scripts": ["blockjs1.js"] - }, - - "content_scripts": [ - { - "matches": [ - "https://www.pay.gov/tcsonline/*", - "https://dmca.copyright.gov/*" - ], - "js": [ - "pay.js" - ] - } - ] -} diff --git a/data/extensions/DMCAreg@0xbeef.coffee/pay.js b/data/extensions/DMCAreg@0xbeef.coffee/pay.js deleted file mode 100644 index d7ced0f..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/pay.js +++ /dev/null @@ -1,49 +0,0 @@ -/* -Copyright (C) 2017 Nathan Nichols - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL NATHAN NICHOLS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -*/ -console.log("pay.js"); - -function get_domain(url){ - var domain = url.replace('http://','').replace('https://','').split(/[/?#]/)[0]; - if(url.indexOf("http://") == 0){ - domain = "http://" + domain; - } - else if(url.indexOf("https://") == 0){ - domain = "https://" + domain; - } - domain = domain + "/"; - domain = domain.replace(/ /g,""); - return domain; -} - -if(document.location.href.indexOf("pay.gov/tcsonline/") != -1){ - document.getElementsByClassName("text")[0].remove(); - console.log("detected payment page."); - - if( document.getElementsByClassName("redbuttontext") !== null){ - document.getElementsByClassName("redbuttontext")[0].remove(); - } - - - document.getElementById("hiddenContinueButton").style.display = ""; - document.getElementById("statesCAN").remove(); - document.getElementById("statesUSA").remove(); - document.getElementById("stateText").value = "2 letter code"; -} - -if(get_domain(document.location.href) == "https://dmca.copyright.gov/"){ - var form = document.getElementById("file"); - if(form !== null){ - console.log("upload page detected"); - document.getElementById("btnUpload").disabled = false; - } - - -} - diff --git a/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js b/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js deleted file mode 100644 index 8ed399c..0000000 --- a/data/extensions/DMCAreg@0xbeef.coffee/unhidehtml.js +++ /dev/null @@ -1,19 +0,0 @@ - -function get_domain(url){ - var domain = url.replace('http://','').replace('https://','').split(/[/?#]/)[0]; - if(url.indexOf("http://") == 0){ - domain = "http://" + domain; - } - else if(url.indexOf("https://") == 0){ - domain = "https://" + domain; - } - domain = domain + "/"; - domain = domain.replace(/ /g,""); - return domain; -} - -if(get_domain(document.location.href) == "https://dmca.copyright.gov/"){ - - - -} -- cgit v1.2.3