Generous Gazette

Removes paywall on Colorado Springs based Gazette newspaper.

目前为 2016-10-14 提交的版本,查看 最新版本

// ==UserScript==
// @name         Generous Gazette
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Removes paywall on Colorado Springs based Gazette newspaper.
// @author       thebspatrol
// @match        http*://gazette.com/*
// @match        http*://*.gazette.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var _html;
    function pollPage(){
        _html = document.getElementsByClassName("troyShow")[0];
        if (_html !== undefined){
            console.log("paywall caught!");
            _html.classList.remove("troyShow");
            clearInterval(interval);
        }
    }
    var interval = setInterval(pollPage, 250);
})();