patchGNUzilla - Patches: patch #9485, delete temporary files in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #9485: delete temporary files in 'data/extensions/SimpleSumOfUs@0xbeef.coffee'

Submitted by:  René Genz <sobek>
Submitted on:  Sun 12 Nov 2017 03:43:03 PM UTC  
 
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Sun 12 Nov 2017 04:58:17 PM UTC, comment #3:

for the record: comment 1 was nullified in the the webUI, but in the email that was sent the first line looks like:

René Genz <sobek>
Sun 12 Nov 2017 04:08:27 PM UTC, comment #2:

I am sorry. I forgot the put the "+verbatim +" and "-verbatim -" tags. I added empty spaces to them because they nullified my previous post.

The patch deletes the files:
License~
background.js~
improve_css.js~
main.js~
manifest.json~

René Genz <sobek>
Sun 12 Nov 2017 04:01:01 PM UTC, comment #1:
René Genz <sobek>
Sun 12 Nov 2017 03:43:03 PM UTC, original submission:

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/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 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 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"
- ]
- }
- ]
-}

René Genz <sobek>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sobek (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item

    Back to the top


    Powered by Savane 3.1-cleanup1