Last active
December 18, 2016 10:50
-
-
Save kzelda/b37ee6eede55924bce9080d676fab512 to your computer and use it in GitHub Desktop.
twitter.user.js *Monkey Script
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 kzelda.mytwitter | |
// @namespace kzelda.mytwitter | |
// @description Customise a twitter look | |
// @author kzelda | |
// @homepage https://gist.github.com/kzelda/b37ee6eede55924bce9080d676fab512 | |
// @include http://twitter.com/* | |
// @include https://twitter.com/* | |
// @include http://*.twitter.com/* | |
// @include https://*.twitter.com/* | |
// @run-at document-start | |
// @version 0.1 | |
// ==/UserScript== | |
(function() { | |
//------------------- <Remove some profil images> ------------------ | |
setInterval(function(){ | |
var tt = document.querySelectorAll("img[src='https://pbs.twimg.com/profile_images/773261989539786753/HrKN3Sir_bigger.jpg']"); | |
for(var i = 0 ; i < tt.length ; i++) tt[i].remove(); | |
},1000); | |
//------------------- </Remove some profil images> ------------------ | |
var css = ` | |
.TweetTextSize.TweetTextSize--16px { | |
font-size: 22px; | |
line-height: 22px; | |
font-weight: 400; | |
} | |
.TweetTextSize { | |
font-size: 18px !important; | |
line-height: 22px !important; | |
white-space: pre-wrap; | |
word-wrap: break-word; | |
} | |
`; | |
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); | |
} | |
} | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment