Skip to content

Instantly share code, notes, and snippets.

@LongHairedHacker
Last active June 22, 2017 14:17
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 LongHairedHacker/6b7b1cb59eb73b7a0fc23d902c56debe to your computer and use it in GitHub Desktop.
Save LongHairedHacker/6b7b1cb59eb73b7a0fc23d902c56debe to your computer and use it in GitHub Desktop.
None of that round corner rubbish
// ==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