Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Bryan Times Revealer
- // @namespace https://bryantimes.com
- // @version 0.1
- // @description Shows the full ariticle that they let you have in the background
- // @author news
- // @match https://www.bryantimes.com/*
- // @match https://www.crescent-news.com/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- if (document.domain == 'www.crescent-news.com'){
- document.getElementsByClassName('metering-modal')[0].className = 'hidden'; //hide crescent-news subscription popup
- document.getElementsByClassName('modal-backdrop')[0].className = 'hidden'; //hide crescent-news backdrop
- document.getElementsByTagName('body')[0].setAttribute('class','app-editorial blox-asset section-newssection-local-news type-article infinity-summary-siderail');
- }
- document.getElementsByClassName('redacted-overlay')[0].style = null; //reveal the partially faded text
- document.getElementsByClassName('subscription-required')[0].className = 'hidden'; //get ride of the subscrie box
- var hiddenparagraphs=document.getElementsByClassName('subscriber-only');
- for (var i = 0; i < hiddenparagraphs.length; i++){
- hiddenparagraphs[i].setAttribute('class','subscriber-only'); //remove the 'hidden' class from the paragraphs
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement