I seem to ask these sorts of questions a lot, so, in short, Reddit recently got uglier for some reason like so many sites and services are doing these days and I'd like to change it back. Is there a script for Violent Monkey/Tamper Monkey/Grease Monkey that can change Reddit back to the older UI, not the old.reddit UI but the slightly older one they had just before putting in that left sidebar? Or even just the one from last year?
I've got a script that automatically switches Reddit to the old.reddit UI
function test(url){
return !!url.match(/^(|http(s?):\/\/)(|www.)reddit.com(\/.*|$)/gim);
}
function getNewPagePlease(url){
return 'https://old.reddit.com' + url.split('reddit.com').pop();
}
function fixRedditStuff(){
var links = Array.prototype.slice.call(document.links, 0);
links.filter(function(link){
if(test(link.href)){
var greatNewLink = getNewPagePlease(link.href);
if(link.hasAttribute('data-outbound-url')) link.setAttribute('data-outbound-url', greatNewLink);
link.setAttribute('href', greatNewLink);
}
});
}
if(test(window.location.href)){window.location.assign(getNewPagePlease(window.location.href));}
window.onload = fixRedditStuff;
setInterval(fixRedditStuff, 50);
and have already attempted modifying it to no avail.