WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2024 Poal.co

1.3K

Just putting this here for posterity.

Reddit started what Twitter ramped up and what Facebook did further. Use the old.reddit.com domain to view as many comments as possible.

Maybe I'll make it with a drop-down to select the comment sorting. Whatever.

I don't know enough about Tampermonkey to muck with the headers. This is just a first version. I just got tired of the ww.reddit.com hiding of all comments with infinite scroll.


// ==UserScript==
// [@name](/u/name)         Old reddit redirect
// [@namespace](/u/namespace)    http://tampermonkey.net/
// [@version](/u/version)      0.1
// [@description](/u/description)  Redirect reddit links to the old domain in order to see all comments and disable certain stylings
// [@author](/u/author)       You
// [@match](/u/match)        *://*.reddit.com/*
// [@exclude](/u/exclude)      *://old.reddit.com/*
// [@grant](/u/grant)        GM.xmlHttpRequest
// [@connect](/u/connect)      reddit.com
// [@grant](/u/grant)        GM_addStyle
// [@icon](/u/icon)         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// ==/UserScript==

(function() {
    'use strict';
    var reg = new RegExp('(.*)://www.reddit.com/(.*)');
        if (reg.test(document.URL))
    {
        //alert(document.URL);
        var newURL = 'https://old.reddit.com/'+window.location.pathname;
        window.location.href = newURL;
    }

})();

tHIS DOESN'T SWITCH THE LINKS IN ANY SITES; IT JUST REDIRECTS TO THE OLD.REDDIT.COM DOMAIN WHEN WWW.REDDIT.COM IS LOADED. wON'T MESS WITH THE IMAGES, EITHER, SINCE IT DEALS WITH THE WINDOw (crap caps lock was on) on just the www subdomain.

tested in current version 4.14

https://pastebin.com/uS0ueVxC https://archive.ph/h2vzZ

next up figure out how to use Tampermonkey to open Private Window on certain domains to circumvent the splash screen on Twitter after scrolling down to the relevant tweets limit.

Just putting this here for posterity. Reddit started what Twitter ramped up and what Facebook did further. Use the old.reddit.com domain to view as many comments as possible. Maybe I'll make it with a drop-down to select the comment sorting. Whatever. I don't know enough about Tampermonkey to muck with the headers. This is just a first version. I just got tired of the ww.reddit.com hiding of all comments with infinite scroll. -------- // ==UserScript== // @name Old reddit redirect // @namespace http://tampermonkey.net/ // @version 0.1 // @description Redirect reddit links to the old domain in order to see all comments and disable certain stylings // @author You // @match *://*.reddit.com/* // @exclude *://old.reddit.com/* // @grant GM.xmlHttpRequest // @connect reddit.com // @grant GM_addStyle // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // ==/UserScript== (function() { 'use strict'; var reg = new RegExp('(.*)://www.reddit.com/(.*)'); if (reg.test(document.URL)) { //alert(document.URL); var newURL = 'https://old.reddit.com/'+window.location.pathname; window.location.href = newURL; } })(); -------- tHIS DOESN'T SWITCH THE LINKS IN ANY SITES; IT JUST REDIRECTS TO THE OLD.REDDIT.COM DOMAIN WHEN WWW.REDDIT.COM IS LOADED. wON'T MESS WITH THE IMAGES, EITHER, SINCE IT DEALS WITH THE WINDOw (crap caps lock was on) on just the www subdomain. tested in current version 4.14 https://pastebin.com/uS0ueVxC https://archive.ph/h2vzZ next up figure out how to use Tampermonkey to open Private Window on certain domains to circumvent the splash screen on Twitter after scrolling down to the relevant tweets limit.

(post is archived)

[–] 0 pt

@AOU is this in the right place???