ORF.AT Klassische Schrift Userscript

Dieses Userscript ändert die Schrift auf orf.at von OrfOn zu Arial.

Download

// ==UserScript==
// @name	orf.at klassische Schrift
// @namespace	flowconsult.at
// @version	0.1
// @description	Ändert die reguläre orf.at Schrift
// @include	http://orf.at/*
// @include	http://*.orf.at/*
// @copyright	Rafael Gattringer
// @license	GPL version 3 or any later version; www.gnu.org/copyleft/gpl.htm
// @run-at      document-end
// ==/UserScript==


// source: https://stackoverflow.com/questions/462537/overriding-important-style/462603#462603
function addNewStyle(newStyle) {
    var styleElement = document.getElementById('styles_js');
    if (!styleElement) {
        styleElement = document.createElement('style');
        styleElement.type = 'text/css';
        styleElement.id = 'styles_js';
        document.getElementsByTagName('head')[0].appendChild(styleElement);
    }
    styleElement.appendChild(document.createTextNode(newStyle));
}

addNewStyle('body, .ss {font-family:Arial, Helvetica, \'Lucida Sans Unicode\', \'Lucida Grande\', sans-serif;}')