Last active
June 24, 2016 02:17
-
-
Save stowball/d2f3441a5e9b4096c1ca10641a38b13b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name BBC EU Referendum Cleaner and Reloader | |
| // @namespace http://mattstow.com/ | |
| // @version 0.1.1 | |
| // @description Live reload of BBC's EU Referendum Results | |
| // @author Matt Stow | |
| // @match http://www.bbc.com/news/politics/eu_referendum/results | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| var reloadInMinutes = 1; | |
| var css = '<style>z {} #orb-header, .site-brand, .eu-referendum-2016-logo, .politics-header--eu-ref, .bbccom_advert, .eu-ref-editorial__headline, .eu-ref-editorial__text, .eu-ref-results-map__title, .eu-ref-nation-results__title { display: none !important; }'; | |
| var style = document.createElement('style'); | |
| style.type = 'text/css'; | |
| style.appendChild(document.createTextNode(css)); | |
| document.getElementsByTagName('head')[0].appendChild(style); | |
| setTimeout(function () { | |
| window.location.reload(); | |
| }, reloadInMinutes * 60000); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment