Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Gratis Premium Krant
- // @version 1
- // @grant none
- // @author. Daniel
- // @include https://www.ad.nl/*
- // @include https://www.bd.nl/*
- // @include https://www.ed.nl/*
- // @include https://www.tubantia.nl/*
- // @include https://www.bndestem.nl/*
- // @include https://www.pzc.nl/*
- // @include https://www.destentor.nl/*
- // @include https://www.gelderlander.nl/*
- // @include https://www.nrc.nl/*
- // @include https://www.trouw.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 = '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