Greasy Fork

Telegraaf.nl see all articles

try to take the world

目前为 2019-10-27 提交的版本。查看 最新版本

// ==UserScript==
// @name         Telegraaf.nl see all articles
// @namespace    ladroop is lazy
// @version      0.1
// @description  try to take the world
// @author       someguy
// @match        https://www.telegraaf.nl/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var observer = new MutationObserver(paytest);
    var observerConfig = {childList: true};
    var observenode=document.querySelector('title');
    observer.observe(observenode, observerConfig);
    setTimeout(paytest, 3000);

    function paytest(){
        if (document.getElementById("TEMPRORARY_METERING_ID")){
            var push = window.localStorage.getItem('WebpushOptin.Shown');
            localStorage.clear();
            window.localStorage.setItem('WebpushOptin.Shown', push);
            location.reload(true);
        }
    }

})();