Last active
June 15, 2017 18:14
-
-
Save mpyw/199917673d4eef200e0532af2aadda85 to your computer and use it in GitHub Desktop.
Twitterは四角っぽいほうが好き
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 we_love_square_twitter | |
// @namespace https://gist.github.com/mpyw/199917673d4eef200e0532af2aadda85 | |
// @version 0.0.3 | |
// @description ● → ■ | |
// @author foooomio (より優れているので拝借させていただきました: http://qiita.com/foooomio/items/a8307820aabab37e02f2 ) | |
// @match https://twitter.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
document.body.className = document.body.className.replace('edge-design'); | |
new MutationObserver(function(mutations) { | |
if (!mutations.some(function(mutation) { | |
return mutation.oldValue.indexOf('edge-design') !== -1; | |
})) return; | |
document.body.className = document.body.className.replace('edge-design'); | |
}).observe( | |
document.body, | |
{ attributes: true, attributeOldValue: true, attributeFilter: ['class'] } | |
); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment