Skip to content

Instantly share code, notes, and snippets.

@fortserious
Last active November 5, 2015 20:48
Show Gist options
  • Select an option

  • Save fortserious/e2dc91ded85f0a1141a2 to your computer and use it in GitHub Desktop.

Select an option

Save fortserious/e2dc91ded85f0a1141a2 to your computer and use it in GitHub Desktop.
userscript: move twitter tweet compose box back to the left side of the page
// ==UserScript==
// @name old twitter box
// @namespace www.rossdoran.com
// @version 3.5
// @description twitter going public is the worst thing to happen to 21st century communication
// @match https://twitter.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @copyright ross doran 2014
// ==/UserScript==
waitForKeyElements (".timeline-tweet-box", function(){
$(".DashboardProfileCard-content").append($("div.timeline-tweet-box")) // move tweet box
$(".top-timeline-tweet-box-user-image").addClass("visuallyhidden") // remove 32x32 avatar image
$(".content-header").removeClass("visuallyhidden") // restore 'Tweets' header
$(".wtf-module").remove() // remove Who to Follow
});
waitForKeyElements (".Trends", function(){
$(".Trends").remove() // remove Trends
});
waitForKeyElements (".WhoToFollow", function(){
$(".WhoToFollow").remove() // remove Who to Follow on profiles
});
waitForKeyElements(".Icon--bird", function(){
$(".Icon--bird").remove() // remove bird
});
@fortserious
Copy link
Author

V3.5 parcels out waitforkeyelements so that page elements are hidden on profile pages as well, also hides "Trends" and "Who To Follow" boxes because simplicity reigns on this page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment