Skip to content

Instantly share code, notes, and snippets.

@cohan
Last active December 14, 2022 04:10
Show Gist options
  • Save cohan/4dabe6b44edbe97dc5b59d71935129d1 to your computer and use it in GitHub Desktop.
Save cohan/4dabe6b44edbe97dc5b59d71935129d1 to your computer and use it in GitHub Desktop.
Remove "More Tweets" by removing Twitter url params - Greasemonkey script
// ==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
}
@cohan
Copy link
Author

cohan commented Dec 31, 2021

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/

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