Skip to content

Instantly share code, notes, and snippets.

@mence
Forked from tdhopper/gist:d6758294096f6e6d6e2b
Last active August 29, 2015 14:19
Show Gist options
  • Save mence/a85df30e26e7a46dee3e to your computer and use it in GitHub Desktop.
Save mence/a85df30e26e7a46dee3e to your computer and use it in GitHub Desktop.
// ==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