Last active
December 14, 2022 04:10
-
-
Save cohan/4dabe6b44edbe97dc5b59d71935129d1 to your computer and use it in GitHub Desktop.
Remove "More Tweets" by removing Twitter url params - Greasemonkey script
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 Remove "More Tweets" | |
// @version 1 | |
// @grant none | |
// @run-at document-start | |
// @match *://*.twitter.com/* | |
// ==/UserScript== | |
function removeURLParameters(url) { | |
var urlParts = url.split('?'); | |
return urlParts[0]; | |
} | |
var url = window.location.href | |
var removed = removeURLParameters(url) | |
if (url != removed) { | |
window.location.href = removed | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pinched from here and mostly deleted all the smart bits cause Twitter doesn't seem to use ?s= for everything now, there's other ref params out there these days
https://www.reddit.com/r/uBlockOrigin/comments/faqqxx/remove_more_tweets_from_a_tweet_opened_in_a_new/fkubhrw/