Last active
August 29, 2015 14:17
-
-
Save tdhopper/d6758294096f6e6d6e2b to your computer and use it in GitHub Desktop.
Greasemonkey/Tampermonkey script to remove distractions from 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 Distraction-free Twitter | |
// @description Remove Discover button and side menus | |
// @namespace https://github.com/tdhopper | |
// @match https://twitter.com/* | |
// @version 0.1 | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== | |
f = function(){ | |
$(".topics").hide(); | |
$(".module").each(function(e){ | |
$(this).css({ 'opacity' : 0 }); | |
$(this).find('a').on('click.myDisable', function() { return false; }); | |
}); | |
} | |
$(document).ready(f); | |
setInterval(f, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment