Last active
August 10, 2022 21:01
-
-
Save yaronf/8973fa48ead88b519988d21484e5c730 to your computer and use it in GitHub Desktop.
GreaseMonkey user script: change Twitter font (solve Hebrew font issue)
This file contains 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 Twitter change font 695737 | |
// @description Change font for Hebrew content on Twitter | |
// @version 1 | |
// @grant none | |
// @match https://twitter.com/* | |
// ==/UserScript== | |
// Note: obsolete! | |
console.log("Twitter Font Changer: Loaded") | |
function GM_addStyle(cssStr) { | |
var D = document; | |
var newNode = D.createElement ('style'); | |
newNode.textContent = cssStr; | |
var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement; | |
targ.appendChild (newNode); | |
} | |
GM_addStyle(` | |
.r-poiln3 { | |
font-family: arial; | |
}`); | |
console.log("Twitter Font Changer: Done") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment