Last active
September 11, 2022 20:05
-
-
Save kidd/d53ca34477c45ee927105fc03b417973 to your computer and use it in GitHub Desktop.
Revisions
-
kidd revised this gist
Jan 4, 2021 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 }); -
kidd revised this gist
Dec 31, 2020 . 1 changed file with 3 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 }); } })(); -
kidd revised this gist
Dec 31, 2020 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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-background-color")) { const tab = await GM.openInTab(window.location.href, { incognito: true }); } })(); -
kidd revised this gist
Dec 28, 2020 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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] || "regwall-backround-color")) { const tab = await GM.openInTab(window.location.href, { incognito: true }); } })(); -
kidd renamed this gist
Dec 28, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
kidd created this gist
Dec 28, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 }); } })();