Skip to content

Instantly share code, notes, and snippets.

@yaronf
Last active August 10, 2022 21:01
Show Gist options
  • Save yaronf/8973fa48ead88b519988d21484e5c730 to your computer and use it in GitHub Desktop.
Save yaronf/8973fa48ead88b519988d21484e5c730 to your computer and use it in GitHub Desktop.
GreaseMonkey user script: change Twitter font (solve Hebrew font issue)
// ==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