Last active
November 5, 2015 20:48
-
-
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
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 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 | |
}); |
newest version prevents errors displaying if content-header object isn't found
V3 greatly improves script by making it actually use jquery and removing the blue bird they added with the recent hearts/like travesty
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
this version re-enables the "Tweets" tab that was hidden at the top of the timeline