Last active
April 6, 2019 22:43
-
-
Save leonelsr/b105375be316540dbcc7e76dabcd02c6 to your computer and use it in GitHub Desktop.
Twitter and Tweetdeck #OldTwitter Avatar
This file contains hidden or 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 and Tweetdeck #OldTwitter Avatar | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1.2 | |
// @downloadURL https://gist.githubusercontent.com/leonelsr/b105375be316540dbcc7e76dabcd02c6/raw/OldTwitterAvatar.user.js | |
// @description Bring the old square Avatar back to Twitter and TweetDeck! | |
// @author @leonelsr | |
// @match https://tweetdeck.twitter.com/ | |
// @match https://twitter.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var NSE = document.createElement('style'); | |
document.head.append(NSE); | |
NSE.sheet.insertRule('.avatar, .ProfileAvatar, .ProfileAvatar-image { border-radius: 5% !important; }', 0); | |
var bd = document.querySelector('.edge-design'); | |
if (bd) { | |
bd.classList.remove('edge-design'); | |
} | |
//window.NSE = NSE; | |
var btn = document.createElement('button'); | |
btn.innerHTML = '◙';// | |
btn.style = 'position: fixed; top: 30px; right: 10px; border: 1px solid #000; opacity: .05'; | |
document.body.append(btn); | |
btn.onclick = function () { NSE.disabled = !NSE.disabled }; | |
btn.onmouseenter = function () { this.style.opacity = 1 }; | |
btn.onmouseleave = function () { this.style.opacity = 0.05 }; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// == UserScript ==
// @name Twitter ve Tweetdeck #OldTwitter Avatarı
// @ alan adı http://tampermonkey.net/
// @Version 0.1.1
// @description Eski kare Avatar'ı Twitter ve TweetDeck'e geri getir!
// @author @leonelsr
// https://tweetdeck.twitter.com/
// @match https://twitter.com/*
// @ yok
// == / UserScript ==
( işlev () {
' katı kullanın ' ;
}) ();