Last active
June 22, 2017 14:17
-
-
Save LongHairedHacker/6b7b1cb59eb73b7a0fc23d902c56debe to your computer and use it in GitHub Desktop.
None of that round corner rubbish
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 Edgy Twitter | |
// @namespace https://twitter.com/l_h_hacker | |
// @version 19.84 | |
// @description None of that round corner rubbish | |
// @author sebastian (@l_h_hacker) | |
// @include https://twitter.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var body = document.getElementsByTagName('body')[0]; | |
body.classList.remove('edge-design'); | |
var bodyObserver = new MutationObserver(function(mutations) { | |
if(body.classList.contains('edge-design')) { | |
body.classList.remove('edge-design'); | |
} | |
}); | |
bodyObserver.observe(body, {attributes: true, attributeFilter: ['class']}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment