Greasy Fork

Open Sans for Google, Gmail, Facebook, Reddit

Sick of Arial and Verdana?

目前为 2020-02-08 提交的版本。查看 最新版本

// ==UserScript==
// @name          Open Sans for Google, Gmail, Facebook, Reddit
// @namespace     http://userstyles.org
// @description	  Sick of Arial and Verdana?
// @author        xichael
// @homepage      https://userstyles.org/styles/62702
// @include       http://www.google.com/search*
// @include       https://www.google.com/search*
// @include       http://www.google.com/webhp*
// @include       https://www.google.com/webhp*
// @include       http://www.google.com/#*
// @include       https://www.google.com/#*
// @include       http://mail.google.com/*
// @include       https://mail.google.com/*
// @include       http://*.mail.google.com/*
// @include       https://translate.google.com/*
// @include       https://mawdoo3.com/*
// @include       https://talkgadget.google.com/*
// @include       https://kooora.com*
// @include       https://*.kooora.com/*
// @include       http://news.google.com/*
// @include       https://news.google.com/*
// @include       http://*.news.google.com/*
// @include       https://*.news.google.com/*
// @include       https://*.wikipedia.org/*
// @include       https://twitter.com/*
// @include       http://facebook.com/*
// @include       https://facebook.com/*
// @include       http://*.facebook.com/*
// @include       https://*.facebook.com/*
// @include       https://www.youtube2.com/*
// @include       http://reddit.com/*
// @include       https://reddit.com/*
// @include       http://*.reddit.com/*
// @include       https://*.reddit.com/*
// @run-at        document-start
// @version       0.20140920214805
// ==/UserScript==
(function() {var css = "* {font-family: \'Droid Arabic Naskh\' !important; font-size:18px !important; line-height: 30px !important;}";
if (typeof GM_addStyle != "undefined") {
	GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
	PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
	addStyle(css);
} else {
	var node = document.createElement("style");
	node.type = "text/css";
	node.appendChild(document.createTextNode(css));
	var heads = document.getElementsByTagName("head");
	if (heads.length > 0) {
		heads[0].appendChild(node);
	} else {
		// no head yet, stick it whereever
		document.documentElement.appendChild(node);
	}
}
})();