Greasy Fork

Open Sans for Google, Gmail, Facebook, Reddit

Sick of Arial and Verdana?

目前为 2020-03-31 提交的版本。查看 最新版本

// ==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       https://www.dw.com/*
// @include       https://maktoob.yahoo.com/*
// @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://*.reuters.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       3
// @grant          GM_addStyle
// ==/UserScript==
(function() {var css = "* {font-family: \'Droid Arabic Naskh\' !important; font-size:18px !important; line-height: 30px !important;}";
GM_addStyle ('.r-o96wvk {width: 275px !important;}');
GM_addStyle ('.css-1dbjc4n.r-obd0qt.r-16y2uox.r-1g40b8q {width: 160px !important;}');
GM_addStyle ('.r-1hycxz {width: 250px !important;}');
GM_addStyle ('.r-1ye8kvj {max-width: 840px !important;}');
GM_addStyle ('.css-1dbjc4n.r-1awozwy.r-18kxxzh.r-5f2r5o {flex-basis: 5px !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);
	}
}
})();