Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Bryan Times Revealer
  3. // @namespace https://bryantimes.com
  4. // @version 0.1
  5. // @description Shows the full ariticle that they let you have in the background
  6. // @author news
  7. // @match https://www.bryantimes.com/*
  8. // @match https://www.crescent-news.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. if (document.domain == 'www.crescent-news.com'){
  15. document.getElementsByClassName('metering-modal')[0].className = 'hidden'; //hide crescent-news subscription popup
  16. document.getElementsByClassName('modal-backdrop')[0].className = 'hidden'; //hide crescent-news backdrop
  17. document.getElementsByTagName('body')[0].setAttribute('class','app-editorial blox-asset section-newssection-local-news type-article infinity-summary-siderail');
  18. }
  19. document.getElementsByClassName('redacted-overlay')[0].style = null; //reveal the partially faded text
  20. document.getElementsByClassName('subscription-required')[0].className = 'hidden'; //get ride of the subscrie box
  21. var hiddenparagraphs=document.getElementsByClassName('subscriber-only');
  22. for (var i = 0; i < hiddenparagraphs.length; i++){
  23. hiddenparagraphs[i].setAttribute('class','subscriber-only'); //remove the 'hidden' class from the paragraphs
  24. }
  25. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement