Created
March 9, 2012 16:29
-
-
Save pcomans/2007359 to your computer and use it in GitHub Desktop.
Changes Georgia to Vollkorn on Instapaper
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 Instapaper Fonts | |
// @namespace http://www.philippcomans.de/userscripts | |
// @description Changes fonts on Instapaper | |
// @match http://www.instapaper.com/read/* | |
// ==/UserScript== | |
(function() { | |
var head = document.getElementsByTagName('head')[0]; | |
var wf = document.createElement('link'); | |
wf.href = 'http://fonts.googleapis.com/css?family=Vollkorn:400italic,700italic,400,700'; | |
wf.rel = 'stylesheet'; | |
wf.type = 'text/css'; | |
head.appendChild(wf); | |
var divCollection = document.getElementsByTagName("div"); | |
for (var i=0; i<divCollection.length; i++) { | |
if(divCollection[i].getAttribute("class") == "button georgiamodebutton") { | |
var button = divCollection[i].children[0]; | |
button.textContent = 'Vollkorn'; | |
button.style = 'font-family: Vollkorn; font-size: 14px; vertical-align: 2px;'; | |
} | |
} | |
})(); | |
GM_addStyle("body.georgiamode #titlebar h1, body.georgiamode #story, body.georgiamode .popover { font-family: Vollkorn, Times, serif; !important }"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment