summaryrefslogtreecommitdiff
path: root/data/extensions/SimpleSumOfUs@0xbeef.coffee
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-01-03 00:22:19 -0500
committerAmin Bandali <bandali@gnu.org>2020-01-03 01:29:32 -0500
commite0018643e5cebc35a3786ffe04a323b03cd662b4 (patch)
tree56d327df66c1295d851fb35fe5f52c42a286dfde /data/extensions/SimpleSumOfUs@0xbeef.coffee
parent85e99badac11983f6d50b0d9942f66a30f55b8e5 (diff)
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
Diffstat (limited to 'data/extensions/SimpleSumOfUs@0xbeef.coffee')
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/License11
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/License~4
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/manifest.mf47
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.rsabin4184 -> 0 bytes
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.sf4
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js35
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js~37
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/improve_css.js~24
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js87
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js~86
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json35
-rw-r--r--data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json~36
12 files changed, 0 insertions, 406 deletions
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/License b/data/extensions/SimpleSumOfUs@0xbeef.coffee/License
deleted file mode 100644
index 33e9054..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/License
+++ /dev/null
@@ -1,11 +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 THE X CONSORTIUM 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.
-
-Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium.
-
-
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/License~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/License~
deleted file mode 100644
index e66519b..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/License~
+++ /dev/null
@@ -1,4 +0,0 @@
-Copying and distribution of these files, with or without modification,
-are permitted in any medium without royalty provided the copyright
-notice and this notice are preserved. This file is offered as-is,
-without any warranty.
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/manifest.mf b/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/manifest.mf
deleted file mode 100644
index 52df9bf..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/manifest.mf
+++ /dev/null
@@ -1,47 +0,0 @@
-Manifest-Version: 1.0
-
-Name: background.js
-Digest-Algorithms: MD5 SHA1
-MD5-Digest: b+hqbG+cxbyn7voEeBC6YA==
-SHA1-Digest: oqG7pr53XAo4O0cYevZ5h+QFm38=
-
-Name: background.js~
-Digest-Algorithms: MD5 SHA1
-MD5-Digest: F9sHiccCOsmqoxeuFpLUpg==
-SHA1-Digest: 8FX8zeZe41n5PYWUZJlGZzw+MhQ=
-
-Name: improve_css.js~
-Digest-Algorithms: MD5 SHA1
-MD5-Digest: SPoSdQ4UV9ha7VtVQr7TSA==
-SHA1-Digest: W/cOPUtvc7xRBqk+xIeaNJB0rgc=
-
-Name: License
-Digest-Algorithms: MD5 SHA1
-MD5-Digest: HgKT6ruZj0xmqNQ4iVMdeA==
-SHA1-Digest: fKv1UikAKfPIRdhcGHC+j0w+Qug=
-
-Name: License~
-Digest-Algorithms: MD5 SHA1
-MD5-Digest: uQsUSQeJ2hGiGWkNJivhZQ==
-SHA1-Digest: MXOhbF9Sh9YFNeRy9ShSaNE2+4U=
-
-Name: main.js
-Digest-Algorithms: MD5 SHA1
-MD5-Digest: W2QYOY14QJTlytkh9cuE/A==
-SHA1-Digest: uK1t9t+sobDUU63+1CpPGV0xwsk=
-
-Name: main.js~
-Digest-Algorithms: MD5 SHA1
-MD5-Digest: EGCv8OmU0w4fVCaS6JIcwg==
-SHA1-Digest: rN2Va7lolNC+XcwF1GUcs13wrr8=
-
-Name: manifest.json
-Digest-Algorithms: MD5 SHA1
-MD5-Digest: jHQUFJK+JkNiuLvnV2RYGw==
-SHA1-Digest: S/HNg8iRSNhp3L6jxlO1IBL0SMw=
-
-Name: manifest.json~
-Digest-Algorithms: MD5 SHA1
-MD5-Digest: P8fv2KGTLcz/ObrcJPN0sQ==
-SHA1-Digest: ZFEZZb80US6Y7sJkd1uXi/UHu4A=
-
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.rsa b/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.rsa
deleted file mode 100644
index c6a9cd0..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.rsa
+++ /dev/null
Binary files differ
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.sf b/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.sf
deleted file mode 100644
index 1a4861e..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/META-INF/mozilla.sf
+++ /dev/null
@@ -1,4 +0,0 @@
-Signature-Version: 1.0
-MD5-Digest-Manifest: /Am43YphqfZWnNf6ECgM9A==
-SHA1-Digest-Manifest: ddWjaDwQVowyW0xE+V8v/il3Hx4=
-
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js b/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js
deleted file mode 100644
index cf96c01..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js
+++ /dev/null
@@ -1,35 +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 THE X CONSORTIUM 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.
-
-Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium.
-
-
-
-*/
-
-
-function redirect(requestDetails) {
- console.log("Redirecting: " + requestDetails.url);
- return {
- redirectUrl: "https://www.sumofus.org/campaigns/"
- };
-}
-function none(requestDetails) {
- console.log("none")
-}
-function make_page(requestDetails) {
-
-}
-
-browser.webRequest.onBeforeRequest.addListener(
- redirect,
- {urls: ["http://www.sumofus.org/"]},
- ["blocking"]
-);
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js~
deleted file mode 100644
index da8b5d3..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/background.js~
+++ /dev/null
@@ -1,37 +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 THE X CONSORTIUM 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.
-
-Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium.
-
-
-
-*/
-
-
-function redirect(requestDetails) {
- console.log("Redirecting: " + requestDetails.url);
- return {
- redirectUrl: "https://www.sumofus.org/campaigns/"
- };
-}
-function none(requestDetails) {
- console.log("none")
-}
-function make_page(requestDetails) {
-
- console.log("\n\n\nmakin page\n\n\n")
-
-}
-
-browser.webRequest.onBeforeRequest.addListener(
- redirect,
- {urls: ["http://www.sumofus.org/"]},
- ["blocking"]
-);
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/improve_css.js~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/improve_css.js~
deleted file mode 100644
index 6df0af4..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/improve_css.js~
+++ /dev/null
@@ -1,24 +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 THE X CONSORTIUM 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.
-
-Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium.
-*/
-
-function wildcard_match(str, rule) {
- return new RegExp("^" + rule.split("*").join(".*") + "$").test(str);
-}
-
-var page = window.location.href;
-var style = {"text-indent": "50px;","text-align": "left;","color": "black;","font-size": "12pt;"}
-
-if( wildcard_match(page,"*://*actions.sumofus.org/a/*") ){
- document.getElementsByClassName("body-text main-feature")[0].style = style;
- document.body.style.display = style;
-}
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js b/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js
deleted file mode 100644
index 25848a4..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js
+++ /dev/null
@@ -1,87 +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 THE X CONSORTIUM 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.
-
-Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium.
-
-
-
-*/
-
-function wildcard_match(str, rule) {
- return new RegExp("^" + rule.split("*").join(".*") + "$").test(str);
-}
-
-var page = window.location.href;
-/*
-if( wildcard_match(document.getElementsByTagName("pre")[0].innerHTML,'{"follow_up_url":"*"}') ){
- console.log(JSON.parse(document.getElementsByTagName("pre")[0].innerHTML)["follow_up_url"]);
-}
-*/
-
-var style = "div { top: 5%; margin-left: 10%; margin-right: 10%; background-color: white;}"
-var sheet = document.createElement('style');
-sheet.innerHTML = style;
-document.body.appendChild(sheet);
-if( wildcard_match(page,"*://*actions.sumofus.org/api/pages/*/actions") ){
- //console.log("Redirecting...");
- var link = document.body.innerText;
- link = JSON.parse(link);
- //console.log(link);
- document.body.innerHTML = "<h1>You have submitted this petition.</h1>";
-}
-
-if( wildcard_match(page,"*://*actions.sumofus.org/a/*") ){
- console.log("hello");
- // because I noticed there were two of these for some reason
- document.getElementsByTagName("button")[1].remove();
- document.getElementsByTagName("span")[0].innerHTML = "";
- var divs = document.getElementsByTagName("div");
-
- document.getElementsByClassName("noscript-notice")[0].remove();
-
- // If they change the HTML of the page this might break...
- document.getElementsByClassName("petition-bar__content")[0].children[1].children[1].innerHTML = "";
-
- for ( i=0; i<document.styleSheets.length; i++) {
- void(document.styleSheets.item(i).disabled=true);
- }
- // apply some basic CSS to make it a bit prettier
- var style = "div {margin: 50px; text-align: left; color: black; font-size: 12pt;}";
- var sheet = document.createElement('style');
- sheet.innerHTML = style;
- document.body.appendChild(sheet);
-} else{
- var xhr = new XMLHttpRequest();
- xhr.onreadystatechange = function() {
- if(this["readyState"] == 4 && this["status"] == 200){
- var campaigns = JSON.parse(this.responseText);
- //console.log(campaigns);
- var s = "";
- var number = "";
- //html_template += '<button onclick="">Show Pictures</button><br>';
- for(var i = 0; i < campaigns.length; i += 1){
- number = (i+1)+"/"+campaigns.length+":";
- s = campaigns[i]["title"]+"<br>";
- html_template += number.link(campaigns[i]["url"])+s;
- html_template += "<img src="+'"'+campaigns[i]["image"]+'"'+"><br>";
- }
- document.body.innerHTML = html_template;
- }
- };
-
- var html_template = "<h1>[Simple SumOfUs.org]</h1>";
- // URL to get campaigns
- var url = "http://actions.sumofus.org/api/pages/featured.json?language=en";
-
- document.head.replaceWith("");
- document.body.innerHTML = "";
- xhr.open("GET", url);
- xhr.send();
-}
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js~
deleted file mode 100644
index 84ed786..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/main.js~
+++ /dev/null
@@ -1,86 +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 THE X CONSORTIUM 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.
-
-Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium.
-
-
-
-*/
-
-function wildcard_match(str, rule) {
- return new RegExp("^" + rule.split("*").join(".*") + "$").test(str);
-}
-
-var page = window.location.href;
-/*
-if( wildcard_match(document.getElementsByTagName("pre")[0].innerHTML,'{"follow_up_url":"*"}') ){
- console.log(JSON.parse(document.getElementsByTagName("pre")[0].innerHTML)["follow_up_url"]);
-}
-*/
-
-var style = "div { top: 5%; margin-left: 10%; margin-right: 10%; background-color: white;}"
-var sheet = document.createElement('style');
-sheet.innerHTML = style;
-document.body.appendChild(sheet);
-if( wildcard_match(page,"*://*actions.sumofus.org/api/pages/*/actions") ){
- //console.log("Redirecting...");
- var link = document.body.innerText;
- link = JSON.parse(link);
- //console.log(link);
- document.body.innerHTML = "<h1>You have submitted this petition.</h1>";
-}
-
-if( wildcard_match(page,"*://*actions.sumofus.org/a/*") ){
- console.log("hello");
- // because I noticed there were two of these for some reason
- document.getElementsByTagName("button")[1].remove();
- document.getElementsByTagName("span")[0].innerHTML = "";
- var divs = document.getElementsByTagName("div");
-
- document.getElementsByClassName("noscript-notice")[0].remove();
-
- // If they change the HTML of the page this might break...
- document.getElementsByClassName("petition-bar__content")[0].children[1].children[1].innerHTML = "";
- for(var i = 0; i < document.styleSheets.length; i++){
- document.styleSheets[i].disabled = true;
- }
- // apply some basic CSS to make it a bit prettier
- var style = "div {margin: 50px; text-align: left; color: black; font-size: 12pt;}";
- var sheet = document.createElement('style');
- sheet.innerHTML = style;
- document.body.appendChild(sheet);
-} else{
- var xhr = new XMLHttpRequest();
- xhr.onreadystatechange = function() {
- if(this["readyState"] == 4 && this["status"] == 200){
- var campaigns = JSON.parse(this.responseText);
- //console.log(campaigns);
- var s = "";
- var number = "";
- //html_template += '<button onclick="">Show Pictures</button><br>';
- for(var i = 0; i < campaigns.length; i += 1){
- number = (i+1)+"/"+campaigns.length+":";
- s = campaigns[i]["title"]+"<br>";
- html_template += number.link(campaigns[i]["url"])+s;
- html_template += "<img src="+'"'+campaigns[i]["image"]+'"'+"><br>";
- }
- document.body.innerHTML = html_template;
- }
- };
-
- var html_template = "<h1>[Simple SumOfUs.org]</h1>";
- // URL to get campaigns
- var url = "http://actions.sumofus.org/api/pages/featured.json?language=en";
-
- document.head.replaceWith("");
- document.body.innerHTML = "";
- xhr.open("GET", url);
- xhr.send();
-}
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json b/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json
deleted file mode 100644
index 3dae004..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "manifest_version": 2,
- "name": "LibreJS compatible SumOfUs.org",
- "version": "1.0",
- "author": "Nathan Nichols",
- "description": "Makes sumofus.org compatible with LibreJS.",
- "applications": {
- "gecko": {
- "id": "SimpleSumOfUs@0xbeef.coffee",
- "strict_min_version": "42.0"
- }
- },
- "permissions": [
- "webRequestBlocking",
- "*://*.sumofus.org/*",
- "*://*.actions.sumofus.org/*",
- "webRequest"
- ],
-
- "background": {
- "scripts": ["background.js"]
- },
- "content_scripts": [
- {
- "matches": [
- "https://www.sumofus.org/campaigns/*",
- "*://*.actions.sumofus.org/a/*",
- "*://*.actions.sumofus.org/api/pages/*/actions"
- ],
- "js": [
- "main.js"
- ]
- }
- ]
-}
diff --git a/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json~ b/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json~
deleted file mode 100644
index b9de36f..0000000
--- a/data/extensions/SimpleSumOfUs@0xbeef.coffee/manifest.json~
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "manifest_version": 2,
- "name": "LibreJS compatible SumOfUs.org",
- "version": "1.0",
- "author": "Nathan Nichols",
- "id": "SimpleSumOfUs@0xbeef.coffee",
- "description": "Makes sumofus.org compatible with LibreJS.",
- "applications": {
- "gecko": {
- "id": "SimpleSumOfUs@0xbeef.coffee",
- "strict_min_version": "42.0"
- }
- },
- "permissions": [
- "webRequestBlocking",
- "*://*.sumofus.org/*",
- "*://*.actions.sumofus.org/*",
- "webRequest"
- ],
-
- "background": {
- "scripts": ["background.js"]
- },
- "content_scripts": [
- {
- "matches": [
- "https://www.sumofus.org/campaigns/*",
- "*://*.actions.sumofus.org/a/*",
- "*://*.actions.sumofus.org/api/pages/*/actions"
- ],
- "js": [
- "main.js"
- ]
- }
- ]
-}