Skip to content

Instantly share code, notes, and snippets.

@leonelsr
Last active April 6, 2019 22:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leonelsr/b105375be316540dbcc7e76dabcd02c6 to your computer and use it in GitHub Desktop.
Save leonelsr/b105375be316540dbcc7e76dabcd02c6 to your computer and use it in GitHub Desktop.
Twitter and Tweetdeck #OldTwitter Avatar
// ==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 };
})();
@sheelaan
Copy link

// == 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 ' ;

var nse =  belge . createElement ( ' stil ' );
Belge . Kafa . ekleyin (NSE);
nse . tabaka . insertRule ( ' .avatar, .ProfileAvatar, .ProfileAvatar-image {border-radius:% 5! önemli;} ' , 0 );

var bd =  belge . querySelector ( ' .edge-design ' );
eğer (bd) {
    bd . sınıflistesi . kaldırmak ( ' kenar-tasarım ' );
}

}) ();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment