r/Littux • u/Littux • Apr 09 '26
New reddit/d2x update New Reddit recovery progress
Search & Home feed: complete functionality
Post comments: partial functionality
Actions (Vote, subscribe, save etc): Mostly works
r/Littux • u/Littux • Apr 09 '26
Search & Home feed: complete functionality
Post comments: partial functionality
Actions (Vote, subscribe, save etc): Mostly works
r/Littux • u/Littux • Mar 19 '26
(Originally meant to be posted to r/ModSupport. Posted here since it can't be removed)
Install the Tamper Monkey extension (firefox / chromium), and install the userscript: https://greasyfork.org/en/scripts/570323-mod-reddit-com-revived
Then visit https://mod-reddit-com.netlify.app/mail/all OR self host it by just running a single python file: https://github.com/Littux-Dustux/mod-reddit-com/. The localhost version will be at http://localhost:44444/. Instructions are given on the git repo
The user pane doesn't display karma, profile picture and trophies
If on the website and it isn't localhost (self hosted), websockets won't function, so typing indicators in mod mail conversations won't work
Toolbox doesn't work (since it won't run on the URL)
I'm making a fix for this in my toolbox fork (since development stopped)
Bug fix: if you archive/highlight/mark read more than 50 conversations at once, it will split it into multiple network requests. You will no longer get an error
Performance improvement: Going from "All" to "Inbox" to "New" to "In Progress" etc no longer reloads the page, and immediately loads
What is the userscript for?
It handles the authentication and bypasses CORS policies. It redirects reddit.com/mail/* to the archive page
Is the website (netlify) safe?
The website only contains an index.html and this file, which redirects all URLs to the same file:
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
methods = ["GET"]You can self host for maximum safety
Why am I getting a white screen?
The app crashed for some reason. Please contact me if that happens
Why is it stuck at "Waiting for event from userscript"?
The userscript crashed or isn't running. Make sure it ran by checking the tampermonkey menu
Before Reddit shut down mod.reddit.com, I archived the full page source. Since it is a single page application, it only needs to load some JS bundles to display content.
But the complex part isn't that. During the first load, the data for a page is "preloaded" into the window.___r object. Normally, it's done by Reddit's servers. But there is no server to bundle it now, so the inline script on the page does the loading instead, and delays loading of the JS bundles until then. So it has a loading screen now.
Until yesterday, it worked 100% fine until Reddit killed "gql.reddit.com" right in front of me while I was finalizing the archived version. The conversations completely stopped loading. There was a constant error message on the top. It is an API used for mod notes, saved responses and the user pane. The new GraphQL endpoint they use is "gql-fed.reddit.com" in the mobile app. Luckily, I had extracted all the available query information from the mobile app. I was able to map most of the old operations to the new ones.
Except for one (RedditorsInfoByIds), which is used for the user pane. There is no equivalent for it that I can find and I would need to extract data from multiple places to create an equivalent response. And I also don't know how the object looks like (since the dumb me didn't archive it hoping that gql.reddit.com would stay around forever). gql.reddit.com is what powered new.reddit.com (RIP), so after mod.reddit.com was also sunset, there was nothing using it, except ancient reddit app versions.
I said I only had time to work on this after March 30, but I had time the last few days, so I completely used them for this, because otherwise I won't be able to look at mod mails
r/Littux • u/Littux • Aug 21 '26
Listing pages speed up
Comments page optimizations (now loads in ~1.1s)
Startup speed increase (from around 6s to 3.5s) by background fetch of blocked users and preferences (slow API requests) and only waiting for the main GetAccount GraphQL request
Use r2 instead of gql for r/popular (faster and fixes the issue with usernames being u/[deleted]. Though awards will no longer appear)
Fix submit page bug when no subreddits have been selected
Use r2 subreddit info instead of gql. Now, stuff like post flair position will no longer be hardcoded as "right"
Author cake day indicator now works again
Stop subscribed subreddits fetch from overwriting good state (solves issues like post flair templates not appearing)
migrate LanguageSelections to gql-fed
Change treeshake options in vite.config.ts
REST API requests can now expect a status code, and not throw an error
Avoid arctic-shift if possible (if profile curation is disabled)
React Redux devtools now work
Deduplicated gql requests
oauthPipe errors are now logged
GitHub: https://github.com/Littux-Dustux/new-reddit-com/
How to run: https://www.reddit.com/r/ReturnNewReddit/comments/1vmgvmt/beautiful_right_now_you_can_enjoy_it_too/
r/Littux • u/Littux • Jun 14 '26
r/Littux • u/Littux • Sep 23 '26
Contains 7 commits of changes
Fix crash when allowed_media_in_comments is null
Fix submit page crash if subreddit info has already loaded
Fix gql subreddit rules fetching
Use r2 subreddit for submit page (now the submit page text works again)
Better subreddit banned/private etc status
Fix bug where arctic-shift was unnecessarily used for current logged-in user
Fix cookie domain (now set to the current page's domain instead of .reddit.com)
Don't send cookies for gql-realtime POST requests to avoid 403
Fix trophy image size by limiting it
Fix thumbnails not appearing on posts with body text
Fix mistake where fixR2CommentsMedia is run during preload on post comments, slowing down loading
Fix deleted comments showing up as "Removed by moderator"
Fix no subreddit icons on listing pages by using sr_detail=1 when needed
Post
Improve r2 to gateway post mapping (add dismissed reports, fix obfuscatedUrl)
Show post quarantine flair
Improve regex used to enable chat mode on posts
Better live chat post emulation
Comment
Fetch moderation info for comments
Collapse/expand comment by clicking header
Comments page better context
Better detection whether if comment is removed by mod
Show if posts or comments are removed as spam
Always fetch r2 subreddit for subreddit pages and post comments, instead of only using it for profiles (now stuff like post flair position work again)
Handle submit page crossposts fetching better (the client fetches it to block you from posting if there is a recent crosspost made less than 24 hours ago on the subreddit)
Improve SPA navigation
Many styling improvements (reducing padding, increasing pfp size, using Reddit Sans as font etc)
Error
REST API expect more than 1 status code instead of raising error (no more error toasts when fetching flair if the subreddit doesn't have flair or subreddit doesn't exist)
Handle API interceptor errors instead of silently failing
Retry API fetch on network errors
Improved gql error logging
arctic-shift use sort date ascending if "Top" sort used (Top sort isn't supported by arctic-shift)
Migrate gateway user about endpoint
Disable treeshake for build
Live comments remove UPDATE_COMMENT (leaving only NEW_COMMENT) event
localhost API (work in progress)
Add reddit_user_id cookie for localhost API
Add types for gateway post, flair, media asset, comment and subreddit
Refactor subreddit mapping to separate gql mapping to another file
Move redux state types to separate file
Move richtext types to types folder
Add some gql types
https://www.reddit.com/r/ReturnNewReddit/comments/1vmgvmt/beautiful_right_now_you_can_enjoy_it_too/
r/Littux • u/Littux • Aug 14 '26
Emojis in flair
URL parameters being stripped on initial page load
URLs always going to www.reddit.com, regardless of domain (e.g: https://www.youtube.com/watch?v=dQw4w9WgXcQ redirecting to https://www.reddit.com/watch?v=dQw4w9WgXcQ)
Crash while logged-out (now works logged-out)
Post submission page
Some links causing the page to reload now opens without reloading
Toast messages are now reduced by default
You need to download assets.zip and extract it as a folder called "cached" in bundles/, which is inside release.zip (so you need to extract that first)
This release brings an update checker and update installer to the client. Since the previous release v0.8.0 had issues with the updater (as expected), I had to make a new release with some fixes. This is the release note of the previous release:
Migrate StoreUxTargetingAction (ability to dismiss the surveys in home feed)
GraphQL post feed fixes:
Empty captions on galleries
Errors due to lack of null checking|
null upvotes on AdPost
GraphQL moderationInfo mod actions showing up as made at 1970
Fix restoring of scroll position (now repeatedly scrolls until reaching target position)
New settings:
Use GraphQL for comments page
Comments max depth (GraphQL)
Migrate post comments to GraphQL (awards now appear, loading speed improved, now works logged out)
Speed up loading of redd.it links
More readable errors if statusText is empty (fixes large toast messages appearing due to network errors)
Reuse existing Reddit Sans font instead of loading new
Larger images in comments (same height but now uses the horizontal space better)
Update checker and installer
https://www.reddit.com/r/ReturnNewReddit/comments/1vmgvmt/beautiful_right_now_you_can_enjoy_it_too/
(The tutorial above may be replaced due to the new steps and features added since its creation)
To use this version or later version, you need to have a local copy of new.reddit.com assets. Download cachedv1.zip from below. After downloading and extracting release.zip, open the "bundles" folder. Copy and paste the "cachedv1.zip" there. Now extract the zip there (make sure contents are extracted to a subfolder named "cached"). Now you can delete the zip. Now, inside the "bundles" folder, there should be a "cached" folder. Inside of that, there should be lots of .js files and folders.
If you didn't do it correctly, you'll get a white screen.
Issue with the homepage has been fixed.
Fix comments threadline colour being invisible in light mode
Fix reddit premium being ignored
Fix search API being blocked (viewing a user's posts)
Fix old posts being marked as chat posts
New configuration UI (accessible at http://localhost:1264/config.html, access to enable features disabled by default)
Load JS bundles from your own storage (UI is now much faster)
GraphQL subreddit page (disabled by default)
Makes awards show up on posts. However, GIF images on galleries won't play as MP4s (like on the current official site) instead playing as .gif images, which are huge and take long time to load. Though GIFs in galleries are rare and only common on NSFW subreddits
Search within a user (buggy: if it doesn't show up in search bar, click back button and go forward after a short delay)
Enable experiments:
d2x_cdd_active_community_profile (Show "Active in Communities" list on profiles)
d2x_inbox_v2_post_embeds (Show preview of posts in notifications)
https://www.reddit.com/r/ReturnNewReddit/comments/1vmgvmt/beautiful_right_now_you_can_enjoy_it_too/
Subreddit page and comments page being blocked has been fixed: Reddit has started blocking some API endpoints. Those who have older versions may see "Reddit returned an HTML page (status: 403)" errors. This version will display a proper error, and provide the ability to report the error via a comment
Fix report form getting stuck loading
Fix post body text not appearing on link posts
Fix gallery image outbound URL not showing
Fix profile info not loading on profile posts
Fix redd.it short links not loading on current page
Fix gql realtime connection authorization
Make "SEE FULL IMAGE" button actually work
Restore original font
Improve custom styling, seperate custom styling to seperate file
To remove custom styling, just rename the .css file
Fix empty error messages
https://www.reddit.com/r/ReturnNewReddit/comments/1vmgvmt/beautiful_right_now_you_can_enjoy_it_too/
r/Littux • u/Littux • Oct 16 '26
Currently, Reddit is blocking some API endpoints. You may see "Reddit returned an HTML page (status: 403)" on the current version. The next release will fix some of them, and will properly display those errors. It will have a feature for reporting such errors via a comment, and those will be sent here
r/Littux • u/Littux • Apr 30 '26
r/Littux • u/HelloitsWojan • Aug 18 '26
It can transfer the current wiki page you have opened from old to new, but not the opposite. Most formatting will work, including images. The spoiler tag doesn't work. Here's the bookmarklet:
javascript:(async()=>{try{await (async()=>{const pingURL=url=>{return new Promise(resolve=>{const img=new Image;img.onload=()=>resolve();img.onerror=()=>resolve();img.src=url%2B(url.includes("?")?"&":"?")%2B"v="%2BDate.now()})};const getCookie=async name=>{if(typeof window.cookieStore?.get==="function"){return(await cookieStore.get(name))?.value??null}const cookie="; "%2Bdocument.cookie%2B";";const searchPattern="; "%2Bname%2B"=";const patternStartIndex=cookie.indexOf(searchPattern);if(patternStartIndex===-1)return null;const valueStartIndex=patternStartIndex%2BsearchPattern.length;return decodeURIComponent(cookie.substring(valueStartIndex,cookie.indexOf(";",valueStartIndex)))};const getCookiePing=async(name,pingSrc)=>{let cookieData=await getCookie(name);if(!cookieData){await pingURL(pingSrc);cookieData=await getCookie(name);if(!cookieData)throw new Error("Failed getting cookie '"%2Bname%2B"' by fetching "%2BpingSrc)}return cookieData};async function getREST(endpoint){const response=await fetch(endpoint,{method:"GET",headers:{Accept:"application/json"}});if(!response.ok)throw new Error(`Failed to fetch ${endpoint}: ${response.status}`);return await response.json()}async function svcGqlFetch(operation,variables){const csrfToken=await getCookiePing("csrf_token","https://sh.reddit.com/404");const response=await fetch("/svc/shreddit/graphql",{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({operation:operation,variables:variables,csrf_token:csrfToken})});if(!response.ok)throw new Error(`GraphQL request failed for ${operation}: ${response.status}`);const responseData=await response.json();if(responseData.errors?.length)throw new Error(`GraphQL request for ${operation} returned errors: ${JSON.stringify(responseData.errors)}`);return responseData.data}const wikiUrlMatch=location.pathname.match(/^/r/([^/]%2B)/wiki/(?:(?:edit|settings)/)?(.%2B)$/);if(!wikiUrlMatch)throw new Error("Not a wiki page URL");const subredditName=wikiUrlMatch[1];const pageName=wikiUrlMatch[2];const wikiPageData=await getREST(`/r/${subredditName}/wiki/${pageName}.json?raw_json=1`);if(!wikiPageData||wikiPageData.kind!=="wikipage")throw new Error("Failed to fetch wiki page data");const{content_html,reason}=wikiPageData.data;const contentDoc=(new DOMParser).parseFromString(content_html,"text/html");contentDoc.querySelectorAll("td, th").forEach(col=>{const align=col.getAttribute("align");if(align){col.style.textAlign=align;col.removeAttribute("align")}});const{upsertWikiPage}=await svcGqlFetch("UpsertWikiPage",{input:{page:pageName,subredditName:subredditName,reason:reason||"Sync wiki page with old reddit",content:{markdown:contentDoc.body.innerHTML},postToCommunity:false,pageTitle:pageName}});if(!upsertWikiPage.ok){if(upsertWikiPage.isRateLimited){throw new Error(`Rate limited. Try again after: ${upsertWikiPage.rateLimitEndsAt}`)}const{errors,fieldErrors}=upsertWikiPage;throw new Error(`Failed to upsert wiki page: ${JSON.stringify({errors:errors,fieldErrors:fieldErrors},null,2)}`)}alert(`SUCCESS: Wiki page '${pageName}' in subreddit '${subredditName}' has been successfully upserted.`)})();}catch(e){console.error("Bookmarklet failed:", e.message);alert("Bookmarklet failed: " %2B e.message)}})();On a desktop browser, you can right click on the top bar and add a bookmark. Call it something like "Wiki Old => New". Paste the code above as the URL. Now, go to the wiki page you want to transfer. Then click on the bookmark to run it.
On a mobile browser, go to any page and bookmark it with the star button. Then go to all bookmarks and find the newly created bookmark. Edit it and change the title to your liking and enter the code as URL. Now, open the wiki page you want to transfer, and click on the address bar. Enter whatever you entered as the title of the bookmark on the address bar. On the bottom of the search suggestions, you should see the bookmark. Just tap on it to run it
The script is fairly basic. The new wiki uses raw HTML for formatting instead of markdown. The script fetches the wiki page rendered HTML and revision reason from the API, and just creates the new wiki page with the old reddit rendered HTML and the same revision reason. It does some modifications to the old reddit HTML so that table column alignment options work (converts align='left' to style="text-align: left;" etc)
r/Littux • u/HelloitsWojan • Aug 13 '26
So I would like to crosspost a post, but after I click on it, it redirects me to the blank submit page.
I can't upload a video of it because it's stuck on 0% too
r/Littux • u/Littux • Mar 27 '26
https://greasyfork.org/en/scripts/571318-fix-processing-img-id-on-old-reddit
Ultra fast loading
Uses mp4 instead of gif: higher quality with lower bandwidth (gif is a shit format)
Automatically pauses videos when they go off-screen
r/Littux • u/Littux • Jun 27 '25
Basically, I made a joke comment saying "COMMENT DOXXING OP" on a post made by a person on r/SUBREDDITNAME who was responsible for the suicide of the SaveAFox YouTuber. Apparently, that comment was punishable among the many other comments literally just telling OP to k!ll themselves