Last active
March 10, 2024 01:56
-
-
Save notetiene/9492c0baef8ebaad13005362facf8cfb to your computer and use it in GitHub Desktop.
Prevent Tech Target from showing a paywall (or whatever we call that).
This file contains 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 characters
// ==UserScript== | |
// @name Tech Target Paywall Removal | |
// @run-at context-menu | |
// @version 2.0 | |
// @description Remove paywall from tech target site | |
// @author Etienne Prud'homme (https://gist.github.com/notetiene) | |
// @match https://*.techtarget.com/* | |
// @match https://*.theserverside.com/* | |
// @match https://*.lemagit.fr/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
console.log("Removing paywall from tech target"); | |
document.getElementById('content-body').id = 'content-body-new' | |
Array.from(document.getElementsByClassName('paywall')).forEach(function(el) { | |
// TODO | |
el.classList.remove('paywall') | |
}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment