Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- //@name Premium abbonnement omzeilen
- //@version 1.1
- //@grant none
- //@include https://www.ad.nl/*
- //@include https://trouw.nl*
- //@include https://tubantia.nl/*
- //@include https://stentor.nl/*
- //@include https://bd.nl/*
- //@include https://ed.nl/*
- //@include https://pzc.nl/*
- //@include https://gelderlander.nl/*
- //@include https://nrc.nl/*
- //@include https://speld.nl/*
- //@include https://volkskrant.nl/*
- //==/UserScript==
- (function (){
- var domain = window.location.host.replace('www.','');
- switch(domain){
- case 'nrc.nl': document.cookie = 'counter=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
- break;
- case 'trouw.nl': document.cookie = 'TROUW_TID=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
- removeByClass('paywall-notice');
- break;
- default: document.cookie = 'temtationTrackingId=;domain=.' + domain + '; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
- removeByClass('paywall-content-message');
- break;
- }
- })();
- function removeByClass(_class){
- window.addEventListener('load',function(){
- document.querySelectorAll('.' + _class)[0].remove();
- }, false);
- }
- (function (){
- var domain = window.location.host.replace('www.','');
- switch(domain){
- case 'nrc.nl':
- document.cookie = 'counter=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
- break;
- case 'trouw.nl':
- document.cookie = 'TROUW_TID=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
- removeByClass('paywall-notice');
- break;
- case 'speld.nl':
- document.cookie = 'speld-paywall=; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
- removeByClass('speld-paywall');
- case 'volkskrant.nl':
- document.cookie = 'TID_ID=; path=/; expires=Thus, 01 Jan 1970 00:00:01 GMT;';
- removeByClass('paywall-notice');
- default:
- document.cookie = 'temptationTrackingId=; domain=.' + domain + '; path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
- removeByClass('paywall-content-message');
- break;
- }
- })();
- function removeByClass(_class){
- window.addEventListener('load', function(){
- document.querySelectorAll('.' + _class)[0].remove();
- }, false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement