Skip to content

Instantly share code, notes, and snippets.

@mpyw
Last active June 15, 2017 18:14
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpyw/199917673d4eef200e0532af2aadda85 to your computer and use it in GitHub Desktop.
Save mpyw/199917673d4eef200e0532af2aadda85 to your computer and use it in GitHub Desktop.
Twitterは四角っぽいほうが好き
// ==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