/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// ==UserScript== // @name Helvetireader 2 // @description Helvetireader style for Google Reader that also removes a lot of features so you probably won't like it! // @include https://*.google.com/reader/view/* // @include http://*.google.com/reader/view/* // @include htt*://*.google.*/reader/view* // @author Helvetireader by Jon Hicks (http://www.hicksdesign.co.uk) with favicon override by MkFly // ==/UserScript== var favvy = document.createElement('link'); favvy.setAttribute('type', 'image/x-icon'); favvy.setAttribute('rel', 'shortcut icon'); favvy.setAttribute('href', 'http://www.helvetireader.com/favicon.png'); var head = document.getElementsByTagName('head')[0]; head.appendChild(favvy); var cssNode = document.createElement('link'); cssNode.type = 'text/css'; cssNode.rel = 'stylesheet'; cssNode.href = 'http://www.helvetireader.com/css/helvetireader.2.css'; cssNode.media = 'screen'; cssNode.title = 'dynamicLoadedSheet'; document.getElementsByTagName("head")[0].appendChild(cssNode); window.refreshVar = setTimeout(simulateRefresh,500); function simulateRefresh() { var e = document.createEvent('KeyboardEvent'); e.initKeyEvent('keypress', true, true, window, false, false, false, false, 82, 82); document.body.dispatchEvent(e); console.debug(window.refreshVar); }