Skip to content

Instantly share code, notes, and snippets.

@kidd
Last active September 11, 2022 20:05
Show Gist options
  • Select an option

  • Save kidd/d53ca34477c45ee927105fc03b417973 to your computer and use it in GitHub Desktop.

Select an option

Save kidd/d53ca34477c45ee927105fc03b417973 to your computer and use it in GitHub Desktop.

Revisions

  1. kidd revised this gist Jan 4, 2021. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions kill_paywall.user.js
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@
    // @match https://hbr.org/*
    // @match https://medium.com/*
    // @match https://*.medium.com/*
    // @match https://*.nytimes.com/*
    // @grant GM.openInTab
    // ==/UserScript==

    @@ -17,6 +18,7 @@
    "hbr.org": "paywall-overlay-panel" ,
    "towardsdatascience.com": "regwall-background-color",
    "medium.com": "regwall-background-color",
    "nytimes.com": "gateway-content",
    }
    if (! GM_info.isIncognito && document.getElementById(host_paywall[window.location.host] || "regwall-background-color")) {
    const tab = await GM.openInTab(window.location.href, { incognito: true });
  2. kidd revised this gist Dec 31, 2020. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions kill_paywall.user.js
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@
    // @grant GM.openInTab
    // ==/UserScript==


    // updates(?) at: https://puntoblogspot.blogspot.com/2020/12/disable-towardsdatascience-and-hbr.html
    (async () => {
    const host_paywall = {
    "hbr.org": "paywall-overlay-panel" ,
    @@ -21,4 +21,5 @@
    if (! GM_info.isIncognito && document.getElementById(host_paywall[window.location.host] || "regwall-background-color")) {
    const tab = await GM.openInTab(window.location.href, { incognito: true });
    }
    })();
    })();

  3. kidd revised this gist Dec 31, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion kill_paywall.user.js
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@
    // @match https://towardsdatascience.com/*
    // @match https://hbr.org/*
    // @match https://medium.com/*
    // @match https://*.medium.com/*
    // @grant GM.openInTab
    // ==/UserScript==

    @@ -17,7 +18,7 @@
    "towardsdatascience.com": "regwall-background-color",
    "medium.com": "regwall-background-color",
    }
    if (! GM_info.isIncognito && document.getElementById(host_paywall[window.location.host] || "regwall-backround-color")) {
    if (! GM_info.isIncognito && document.getElementById(host_paywall[window.location.host] || "regwall-background-color")) {
    const tab = await GM.openInTab(window.location.href, { incognito: true });
    }
    })();
  4. kidd revised this gist Dec 28, 2020. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions kill_paywall.user.js
    Original file line number Diff line number Diff line change
    @@ -2,10 +2,11 @@
    // @name TowardsDataScience/hbr/medium auto open in incognito
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description Disable paywall for hbr and tds
    // @description try to take over the world!
    // @author Raimon Grau
    // @match https://towardsdatascience.com/*
    // @match https://hbr.org/*
    // @match https://medium.com/*
    // @grant GM.openInTab
    // ==/UserScript==

    @@ -14,8 +15,9 @@
    const host_paywall = {
    "hbr.org": "paywall-overlay-panel" ,
    "towardsdatascience.com": "regwall-background-color",
    "medium.com": "regwall-background-color",
    }
    if (! GM_info.isIncognito && document.getElementById(host_paywall[window.location.host] || "doesnt-exist-123321")) {
    if (! GM_info.isIncognito && document.getElementById(host_paywall[window.location.host] || "regwall-backround-color")) {
    const tab = await GM.openInTab(window.location.href, { incognito: true });
    }
    })();
  5. kidd renamed this gist Dec 28, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. kidd created this gist Dec 28, 2020.
    21 changes: 21 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    // ==UserScript==
    // @name TowardsDataScience/hbr/medium auto open in incognito
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description Disable paywall for hbr and tds
    // @author Raimon Grau
    // @match https://towardsdatascience.com/*
    // @match https://hbr.org/*
    // @grant GM.openInTab
    // ==/UserScript==


    (async () => {
    const host_paywall = {
    "hbr.org": "paywall-overlay-panel" ,
    "towardsdatascience.com": "regwall-background-color",
    }
    if (! GM_info.isIncognito && document.getElementById(host_paywall[window.location.host] || "doesnt-exist-123321")) {
    const tab = await GM.openInTab(window.location.href, { incognito: true });
    }
    })();