Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Redirect to Not Stupid Status because Twitter SUCKS
- // @match *.twitter.com/*/status/*
- // @run-at document-start
- // @grant none
- // ==/UserScript==
- //-- Only redirect if the *path* ends in .html...
- if (/\?s=20$/.test (location.search) ) {
- var newHost = location.host
- var newSearch = location.search.replace (/\?s=20$/, "");
- var newURL = location.protocol + "//" +
- newHost +
- location.pathname +
- newSearch +
- location.hash
- ;
- console.log(newURL);
- location.replace (newURL);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement