Greasy Fork

Droid Arabic Naskh for Google, Facebook, twitter...

Droid Arabic Naskh for Google, Facebook, twitter, wikipedia...

目前为 2020-04-01 提交的版本。查看 最新版本

// ==UserScript==
// @name          Droid Arabic Naskh for Google, Facebook, twitter...
// @namespace     DroidArabicNaskh
// @description	  Droid Arabic Naskh for Google, Facebook, twitter, wikipedia...
// @author        adil
// @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       4
// @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;}');
GM_addStyle ('.fbx #globalContainer  {width: 1330px !important;}');
GM_addStyle ('._1ql0 {width: 1130px !important;}');
GM_addStyle ('._14iw {right: 812px !important;}');
GM_addStyle ('._1qkx {width: 800px !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);
	}
}
})();