Skip to content

Instantly share code, notes, and snippets.

@notetiene
Last active March 10, 2024 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notetiene/9492c0baef8ebaad13005362facf8cfb to your computer and use it in GitHub Desktop.
Save notetiene/9492c0baef8ebaad13005362facf8cfb to your computer and use it in GitHub Desktop.
Prevent Tech Target from showing a paywall (or whatever we call that).
// ==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