ignore cookiewall for transip, age and contentfilter for steam - firefox-fix-web - Firefox extension: fix web
 (HTM) git clone git://git.codemadness.org/firefox-fix-web
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 8cee29a8f6e7b17a211e7ed855d702fca577c399
 (DIR) parent 811b6ccb33519cc9dd18fba6bb9f03e0a757bd31
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun,  2 Sep 2018 21:48:01 +0200
       
       ignore cookiewall for transip, age and contentfilter for steam
       
       Diffstat:
         M extension/manifest.json             |       8 ++++++++
         M extension/site/hardwareinfo.js      |       4 ----
         A extension/site/steam.js             |       9 +++++++++
         A extension/site/transip.js           |       4 ++++
       
       4 files changed, 21 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/extension/manifest.json b/extension/manifest.json
       @@ -42,6 +42,14 @@
                                "css": [ "site/xs4all.css" ]
                        },
                        {
       +                        "matches": [ "*://*.transip.nl/*", "*://*.transip.eu/*" ],
       +                        "js": [ "site/transip.js" ]
       +                },
       +                {
       +                        "matches": [ "*://*.steampowered.com/*" ],
       +                        "js": [ "site/steam.js" ]
       +                },
       +                {
                                "matches": [ "*://*.hardware.info/*" ],
                                "css": [ "site/hardwareinfo.css" ],
                                "js": [ "site/hardwareinfo.js" ]
 (DIR) diff --git a/extension/site/hardwareinfo.js b/extension/site/hardwareinfo.js
       @@ -1,9 +1,5 @@
       -(function() {
       -
        var c = document.getElementById("cookiecontainer");
        if (typeof(c) != "undefined" && (document.cookie || "").match("cookiebar=1") === null) {
                document.cookie = "cookiebar=1";
                window.location.reload(true);
        }
       -
       -})();
 (DIR) diff --git a/extension/site/steam.js b/extension/site/steam.js
       @@ -0,0 +1,9 @@
       +if ((document.cookie || "").match("mature_content=1") === null) {
       +        /* show "violent" games */
       +        document.cookie = "mature_content=1; expires=Tue, 5 Jan 2038 00:00:00 GMT;path=/";
       +        /* no age check */
       +        document.cookie = "birthtime=-3599; expires=Tue, 5 Jan 2038 00:00:00 GMT;path=/";
       +        document.cookie = "lastagecheckage=1-January-1970; expires=Tue, 5 Jan 2038 00:00:00 GMT;path=/";
       +
       +        window.location.reload(true);
       +}
 (DIR) diff --git a/extension/site/transip.js b/extension/site/transip.js
       @@ -0,0 +1,4 @@
       +if ((document.cookie || "").match("cookie-consent-dismissed=1") === null) {
       +        document.cookie = "cookie-consent-dismissed=1; expires=Tue, 5 Jan 2038 00:00:00 GMT;path=/";
       +        window.location.reload(true);
       +}