r/SegaSaturn • u/Littux • 7h ago
XL2 is back with a new impressive demo: Mars city from Doom 3 PC version on the Sega Saturn
r/SegaSaturn • u/Littux • 7h ago
r/spezholedesign • u/Littux • 17h ago
5
You can on Android with Morphe
1
It's over 10,000 characters so I can't paste it on a comment. See: https://pastebin.com/psEkTDq2
1
1
>> '4+' > '13+'
truer/spezholedesign • u/Littux • 3d ago
15
Markdown is the standard format. The rich text editor has less formatting features
I made a bookmarklet for it:
javascript:(async()=>{try{await (async()=>{"use strict";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};const loid=(await getCookie("loid"))?.split(".",1)?.[0];if(!loid&&location.hostname!=="localhost"){alert("Error getting loid");return}const TOKEN_KEY=`rAPI:accessToken~${loid}`;const EXPIRY_KEY=`rAPI:accessTokenExpiry~${loid}`;const getToken=async()=>{if(window?.___r?.session?.accessToken&&window.___r.session?.expires>Date.now())return window.___r.session.accessToken;let token=localStorage.getItem(TOKEN_KEY);let expiry=Number(localStorage.getItem(EXPIRY_KEY));if(token&&expiry>Date.now()){console.log("Using previously cached access token from localStorage");return token}else{token=expiry=null;localStorage.removeItem(TOKEN_KEY);localStorage.removeItem(EXPIRY_KEY);console.debug("No valid access token in localStorage. Deleted cached token.")}if(location.host==="www.reddit.com"||location.host==="sh.reddit.com"){let csrf_token=await getCookiePing("csrf_token","https://sh.reddit.com/404");await fetch("/svc/shreddit/token",{headers:{"Content-Type":"application/json"},method:"POST",body:`{"csrf_token":"${csrf_token}"}`}).then(resp=>resp.text()).then(text=>{const data=JSON.parse(text);console.debug("Got data from /svc/shreddit/token, token expires at "%2Bnew Date(data.expires).toString());token=data.token,expiry=data.expires})}if(!token){throw new Error("error getting access token with /svc/shreddit/token")}localStorage.setItem(TOKEN_KEY,token);localStorage.setItem(EXPIRY_KEY,expiry.toString());return token};window.gqlFetch??=async function gqlFetch(operationName,hash,variables){const response=await fetch("https://gql-fed.reddit.com/?"%2BoperationName,{headers:{"Content-Type":"application/json",Authorization:"Bearer "%2Bawait getToken(),Accept:"application/json"},method:"POST",body:JSON.stringify({operationName:operationName,variables:variables,extensions:{persistedQuery:{version:1,sha256Hash:hash}}})});if(!response.ok){throw new Error(`GraphQL request failed: ${response.status} ${response.statusText}`)}const result=await response.json();if(result.errors?.length){throw new Error(result.errors.map(error=>error.message||"Unknown GraphQL error").join("; "))}if(!result.data){throw new Error("GraphQL response did not contain data")}return result.data};const HOST_ID="clb-leaderboard-modal-host";const DEFAULT_AVATAR_URL="/static/shreddit/assets/snoovatar-back-64x64px.png";function safeUrl(url){if(typeof url!=="string")return"";try{const parsed=new URL(url,window.location.origin);if(parsed.protocol==="https:"||parsed.protocol==="http:"){return parsed.href}}catch{return""}return""}function detectSubredditFromUrl(){const match=window.location.pathname.match(/^/r/([^/]%2B)/i);return match?decodeURIComponent(match[1]):""}function el(tag,className,text){const node=document.createElement(tag);if(className)node.className=className;if(text!==undefined&&text!==null)node.textContent=String(text);return node}const STYLES=`%0A:host {%0A%09all: initial;%0A%09font-family: RedditSans, 'Reddit Sans', IBMPlexSans, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;%0A%09color-scheme: var(--clb-color-scheme);%0A%09--clb-color-scheme: dark;%0A%09--clb-surface: %230e1113;%0A%09--clb-text: %23eef1f3;%0A%09--clb-text-strong: %23ffffff;%0A%09--clb-text-secondary: %238ba2ad;%0A%09--clb-text-muted: %237b8f99;%0A%09--clb-border: %23242c31;%0A%09--clb-border-subtle: %2322292e;%0A%09--clb-control-bg: %231a2126;%0A%09--clb-control-text: %23b8c4ca;%0A%09--clb-control-hover: %23273138;%0A%09--clb-tab-border: %232a3339;%0A%09--clb-tab-bg: %23151b1f;%0A%09--clb-tab-hover: %231d252a;%0A%09--clb-tab-active: %23253038;%0A%09--clb-tab-active-border: %23465763;%0A%09--clb-divider: %23181f24;%0A%09--clb-divider-border: %23232b30;%0A%09--clb-row-hover: %23151b1f;%0A%09--clb-row-current: %2317232b;%0A%09--clb-scrollbar-thumb: %232a3339;%0A%09--clb-avatar-bg: %231d252a;%0A%09--clb-link: %236a9bff;%0A%09--clb-score-change: %2300c29d;%0A%09--clb-error: %23ff6b6b;%0A%09--clb-button-border: %232b353c;%0A%09--clb-button-hover: %23232d34;%0A%09--clb-shadow: rgba(0, 0, 0, 0.65);%0A}%0A%0A@media (prefers-color-scheme: light) {%0A%09:host {%0A%09%09color-scheme: light;%0A%09%09--clb-color-scheme: light;%0A%09%09--clb-surface: %23ffffff;%0A%09%09--clb-text: %231a1a1b;%0A%09%09--clb-text-strong: %231a1a1b;%0A%09%09--clb-text-secondary: %23576f76;%0A%09%09--clb-text-muted: %236b7280;%0A%09%09--clb-border: %23d7dadc;%0A%09%09--clb-border-subtle: %23edeff1;%0A%09%09--clb-control-bg: %23f6f7f8;%0A%09%09--clb-control-text: %23576f76;%0A%09%09--clb-control-hover: %23e9ebed;%0A%09%09--clb-tab-border: %23d7dadc;%0A%09%09--clb-tab-bg: %23f6f7f8;%0A%09%09--clb-tab-hover: %23e9ebed;%0A%09%09--clb-tab-active: %23e3f0ff;%0A%09%09--clb-tab-active-border: %238bb9e8;%0A%09%09--clb-divider: %23f6f7f8;%0A%09%09--clb-divider-border: %23edeff1;%0A%09%09--clb-row-hover: %23f6f7f8;%0A%09%09--clb-row-current: %23eaf3f8;%0A%09%09--clb-scrollbar-thumb: %23d7dadc;%0A%09%09--clb-avatar-bg: %23f0f2f3;%0A%09%09--clb-link: %232463eb;%0A%09%09--clb-score-change: %2300856f;%0A%09%09--clb-error: %23d93025;%0A%09%09--clb-button-border: %23d7dadc;%0A%09%09--clb-button-hover: %23e9ebed;%0A%09%09--clb-shadow: rgba(0, 0, 0, 0.2);%0A%09}%0A}%0A%0A* {%0A%09box-sizing: border-box;%0A}%0A%0A.clb-backdrop {%0A%09position: fixed;%0A%09inset: 0;%0A%09z-index: 2147483647;%0A%09background: rgba(0, 0, 0, 0.72);%0A%09display: flex;%0A%09align-items: center;%0A%09justify-content: center;%0A%09padding: 16px;%0A%09backdrop-filter: blur(2px);%0A}%0A%0A.clb-modal {%0A%09width: 480px;%0A%09height: 100%25;%0A%09max-height: 1080px;%0A%09background: var(--clb-surface);%0A%09color: var(--clb-text);%0A%09border: 1px solid var(--clb-border);%0A%09border-radius: 16px;%0A%09box-shadow: 0 20px 60px var(--clb-shadow);%0A%09display: flex;%0A%09flex-direction: column;%0A%09overflow: hidden;%0A}%0A%0A.clb-header {%0A%09padding: 18px 20px 14px;%0A%09background: var(--clb-surface);%0A%09border-bottom: 1px solid var(--clb-border-subtle);%0A%09position: relative;%0A}%0A%0A.clb-header-top {%0A%09display: flex;%0A%09align-items: flex-start;%0A%09justify-content: space-between;%0A%09gap: 12px;%0A}%0A%0A.clb-title {%0A%09margin: 0;%0A%09font-size: 22px;%0A%09font-weight: 700;%0A%09line-height: 1.25;%0A%09color: var(--clb-text-strong);%0A%09letter-spacing: -0.01em;%0A}%0A%0A.clb-close-btn {%0A%09appearance: none;%0A%09border: none;%0A%09background: var(--clb-control-bg);%0A%09color: var(--clb-control-text);%0A%09width: 32px;%0A%09height: 32px;%0A%09border-radius: 999px;%0A%09font-size: 20px;%0A%09line-height: 1;%0A%09cursor: pointer;%0A%09display: inline-flex;%0A%09align-items: center;%0A%09justify-content: center;%0A%09flex-shrink: 0;%0A%09transition: background 0.15s ease, color 0.15s ease;%0A}%0A%0A.clb-close-btn:hover {%0A%09background: var(--clb-control-hover);%0A%09color: var(--clb-text-strong);%0A}%0A%0A.clb-subtitle {%0A%09margin: 6px 0 0;%0A%09font-size: 14px;%0A%09line-height: 1.4;%0A%09color: var(--clb-text-secondary);%0A}%0A%0A.clb-learn-more {%0A%09color: var(--clb-link);%0A%09text-decoration: none;%0A%09font-weight: 500;%0A}%0A%0A.clb-learn-more:hover {%0A%09text-decoration: underline;%0A}%0A%0A.clb-tabs {%0A%09display: flex;%0A%09gap: 8px;%0A%09margin-top: 14px;%0A%09flex-wrap: wrap;%0A}%0A%0A.clb-tab {%0A%09appearance: none;%0A%09border: 1px solid var(--clb-tab-border);%0A%09background: var(--clb-tab-bg);%0A%09color: var(--clb-control-text);%0A%09font-size: 13px;%0A%09font-weight: 600;%0A%09padding: 6px 12px;%0A%09border-radius: 999px;%0A%09cursor: pointer;%0A%09transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;%0A}%0A%0A.clb-tab:hover {%0A%09background: var(--clb-tab-hover);%0A%09color: var(--clb-text-strong);%0A}%0A%0A.clb-tab.is-active {%0A%09background: var(--clb-tab-active);%0A%09color: var(--clb-text-strong);%0A%09border-color: var(--clb-tab-active-border);%0A}%0A%0A.clb-body {%0A%09overflow-y: auto;%0A%09flex: 1 1 auto;%0A%09background: var(--clb-surface);%0A}%0A%0A.clb-body::-webkit-scrollbar {%0A%09width: 8px;%0A}%0A%0A.clb-body::-webkit-scrollbar-track {%0A%09background: var(--clb-surface);%0A}%0A%0A.clb-body::-webkit-scrollbar-thumb {%0A%09background: var(--clb-scrollbar-thumb);%0A%09border-radius: 4px;%0A}%0A%0A.clb-delimiter {%0A%09display: flex;%0A%09align-items: center;%0A%09justify-content: space-between;%0A%09padding: 10px 18px;%0A%09background: var(--clb-divider);%0A%09border-top: 1px solid var(--clb-divider-border);%0A%09border-bottom: 1px solid var(--clb-divider-border);%0A%09position: sticky;%0A%09top: 0;%0A%09z-index: 2;%0A}%0A%0A.clb-delimiter-left {%0A%09display: flex;%0A%09align-items: center;%0A%09gap: 8px;%0A%09min-width: 0;%0A}%0A%0A.clb-delimiter-icon {%0A%09width: 20px;%0A%09height: 20px;%0A%09object-fit: contain;%0A%09flex-shrink: 0;%0A}%0A%0A.clb-delimiter-title {%0A%09font-size: 15px;%0A%09font-weight: 700;%0A%09color: var(--clb-text-strong);%0A%09white-space: nowrap;%0A%09overflow: hidden;%0A%09text-overflow: ellipsis;%0A}%0A%0A.clb-delimiter-score {%0A%09font-size: 15px;%0A%09font-weight: 700;%0A%09color: var(--clb-text-strong);%0A%09flex-shrink: 0;%0A}%0A%0A.clb-row {%0A%09display: flex;%0A%09align-items: center;%0A%09justify-content: space-between;%0A%09padding: 9px 18px;%0A%09gap: 12px;%0A%09transition: background 0.12s ease;%0A}%0A%0A.clb-row:hover {%0A%09background: var(--clb-row-hover);%0A}%0A%0A.clb-row.is-current-user {%0A%09background: var(--clb-row-current);%0A%09margin-bottom: 9px;%0A%09border-radius: 8px;%0A}%0A%0A.clb-row-left {%0A%09display: flex;%0A%09align-items: center;%0A%09gap: 12px;%0A%09min-width: 0;%0A%09flex: 1 1 auto;%0A}%0A%0A.clb-rank {%0A%09width: 24px;%0A%09text-align: center;%0A%09font-size: 15px;%0A%09font-weight: 700;%0A%09color: var(--clb-text-strong);%0A%09font-variant-numeric: tabular-nums;%0A%09flex-shrink: 0;%0A}%0A%0A.clb-avatar-wrap {%0A%09position: relative;%0A%09width: 34px;%0A%09height: 34px;%0A%09flex-shrink: 0;%0A}%0A%0A.clb-avatar {%0A%09width: 34px;%0A%09height: 34px;%0A%09border-radius: 999px;%0A%09object-fit: cover;%0A%09background: var(--clb-avatar-bg);%0A%09display: block;%0A}%0A%0A.clb-pos-icon {%0A%09position: absolute;%0A%09right: -3px;%0A%09bottom: -3px;%0A%09width: 14px;%0A%09height: 14px;%0A%09object-fit: contain;%0A}%0A%0A.clb-username {%0A%09height: 18px;%0A%09font-size: 16px;%0A%09font-weight: bold;%0A%09color: var(--clb-text);%0A%09text-decoration: none;%0A%09white-space: nowrap;%0A%09overflow: hidden;%0A%09text-overflow: ellipsis;%0A}%0A%0Aa.clb-username:hover {%0A%09text-decoration: underline;%0A%09color: var(--clb-text-strong);%0A}%0A%0A.clb-username.is-deleted {%0A%09color: var(--clb-text-muted);%0A}%0A%0A.clb-row-right {%0A%09display: flex;%0A%09align-items: baseline;%0A%09gap: 6px;%0A%09flex-shrink: 0;%0A%09font-variant-numeric: tabular-nums;%0A}%0A%0A.clb-score-change {%0A%09font-size: 14px;%0A%09font-weight: 600;%0A%09color: var(--clb-score-change);%0A}%0A%0A.clb-score {%0A%09font-size: 15px;%0A%09font-weight: 500;%0A%09color: var(--clb-text);%0A}%0A%0A.clb-status {%0A%09padding: 28px 20px;%0A%09text-align: center;%0A%09font-size: 14px;%0A%09color: var(--clb-text-secondary);%0A}%0A%0A.clb-status.is-error {%0A%09color: var(--clb-error);%0A}%0A%0A.clb-load-more-wrap {%0A%09padding: 12px 18px 16px;%0A%09display: flex;%0A%09justify-content: center;%0A}%0A%0A.clb-load-more-btn {%0A%09appearance: none;%0A%09border: 1px solid var(--clb-button-border);%0A%09background: var(--clb-divider);%0A%09color: var(--clb-text);%0A%09font-size: 13px;%0A%09font-weight: 600;%0A%09padding: 8px 18px;%0A%09border-radius: 999px;%0A%09cursor: pointer;%0A%09transition: background 0.15s ease;%0A}%0A%0A.clb-load-more-btn:hover:not(:disabled) {%0A%09background: var(--clb-button-hover);%0A}%0A%0A.clb-load-more-btn:disabled {%0A%09opacity: 0.6;%0A%09cursor: default;%0A}%0A%0A.clb-footer {%0A%09padding: 10px 18px 14px;%0A%09border-top: 1px solid var(--clb-border-subtle);%0A%09background: var(--clb-surface);%0A%09font-size: 12px;%0A%09line-height: 1.45;%0A%09color: var(--clb-text-muted);%0A%09display: flex;%0A%09flex-direction: column;%0A%09gap: 2px;%0A}`;function buildDelimiterRow(node){const row=el("div","clb-delimiter");const left=el("div","clb-delimiter-left");const iconUrl=safeUrl(node.icon?.url);if(iconUrl){const img=el("img","clb-delimiter-icon");img.src=iconUrl;img.alt="";img.loading="lazy";left.appendChild(img)}left.appendChild(el("span","clb-delimiter-title",node.title||""));row.appendChild(left);row.appendChild(el("span","clb-delimiter-score",node.scoreLabel||""));return row}function buildUserRow(node,isCurrentUser=false){const row=el("div",isCurrentUser?"clb-row is-current-user":"clb-row");const left=el("div","clb-row-left");left.appendChild(el("span","clb-rank",node.rankLabel??""));const avatarWrap=el("div","clb-avatar-wrap");const avatar=el("img","clb-avatar");let displayName="[deleted]";let profileHref="";let avatarUrl="";let isDeleted=false;if(node.user&&node.user.__typename==="Redditor"){displayName=node.user.prefixedName||(node.user.name?`u/${node.user.name}`:"[deleted]");avatarUrl=safeUrl(node.user.icon?.url||node.user.snoovatarIcon?.url);if(node.user.name){profileHref=`https://www.reddit.com/user/${encodeURIComponent(node.user.name)}`}}else if(node.maskedUser){displayName=node.maskedUser.name||"Hidden Redditor";avatarUrl=safeUrl(node.maskedUser.icon?.url)}else{isDeleted=true}avatar.src=avatarUrl||DEFAULT_AVATAR_URL;avatar.alt=displayName;avatar.loading="lazy";avatar.onerror=()=>{if(avatar.src!==DEFAULT_AVATAR_URL)avatar.src=DEFAULT_AVATAR_URL};avatarWrap.appendChild(avatar);const posIconUrl=safeUrl(node.positionChangeIcon?.url||node.rankIcon?.url);if(posIconUrl){const posIcon=el("img","clb-pos-icon");posIcon.src=posIconUrl;posIcon.alt="";avatarWrap.appendChild(posIcon)}left.appendChild(avatarWrap);if(profileHref){const link=el("a","clb-username",displayName);link.href=profileHref;link.target="_blank";link.rel="noopener noreferrer";left.appendChild(link)}else{left.appendChild(el("span",isDeleted?"clb-username is-deleted":"clb-username",displayName))}row.appendChild(left);const right=el("div","clb-row-right");if(node.scoreInfo?.scoreChangeLabel){const change=el("span","clb-score-change",node.scoreInfo.scoreChangeLabel);if(node.scoreInfo.textColor){change.style.color=node.scoreInfo.textColor}right.appendChild(change)}right.appendChild(el("span","clb-score",node.currentScoreLabel??""));row.appendChild(right);return row}async function openCommunityLeaderboardModal(subredditName,initialCategoryId=null){const existing=document.getElementById(HOST_ID);if(existing)existing.remove();const targetSubreddit=subredditName&&String(subredditName).trim()||detectSubredditFromUrl()||window.prompt("Enter subreddit name (without r/):","spezholedesign")?.trim();if(!targetSubreddit)return;const host=document.createElement("div");host.id=HOST_ID;const shadow=host.attachShadow({mode:"open"});const style=document.createElement("style");style.textContent=STYLES;shadow.appendChild(style);const backdrop=el("div","clb-backdrop");const modal=el("div","clb-modal");modal.setAttribute("role","dialog");modal.setAttribute("aria-modal","true");const header=el("div","clb-header");const headerTop=el("div","clb-header-top");const titleEl=el("h2","clb-title",`r/${targetSubreddit}`);const closeBtn=el("button","clb-close-btn","×");closeBtn.type="button";closeBtn.setAttribute("aria-label","Close modal");headerTop.appendChild(titleEl);headerTop.appendChild(closeBtn);header.appendChild(headerTop);const subtitleEl=el("p","clb-subtitle");header.appendChild(subtitleEl);const tabsEl=el("div","clb-tabs");header.appendChild(tabsEl);const body=el("div","clb-body");const footer=el("div","clb-footer");footer.hidden=true;modal.appendChild(header);modal.appendChild(body);modal.appendChild(footer);backdrop.appendChild(modal);shadow.appendChild(backdrop);document.body.appendChild(host);let activeCategoryId=initialCategoryId;let endCursor="";let hasNextPage=false;let isLoading=false;let requestToken=0;function closeModal(){document.removeEventListener("keydown",onKeyDown);host.remove()}function onKeyDown(e){if(e.key==="Escape")closeModal()}closeBtn.addEventListener("click",closeModal);backdrop.addEventListener("click",e=>{if(e.target===backdrop)closeModal()});document.addEventListener("keydown",onKeyDown);function renderEdges(edges){const fragment=document.createDocumentFragment();for(const edge of edges||[]){const node=edge?.node;if(!node)continue;if(node.__typename==="RankingDelimiter"){fragment.appendChild(buildDelimiterRow(node))}else if(node.__typename==="CommunityLeaderboardUser"){fragment.appendChild(buildUserRow(node))}}return fragment}function updateLoadMoreControl(){const prevWrap=body.querySelector(".clb-load-more-wrap");if(prevWrap)prevWrap.remove();if(!hasNextPage)return;const wrap=el("div","clb-load-more-wrap");const btn=el("button","clb-load-more-btn",isLoading?"Loading…":"Load more");btn.type="button";btn.disabled=isLoading;btn.addEventListener("click",()=>loadNextPage());wrap.appendChild(btn);body.appendChild(wrap)}function renderHeaderAndFooter(categories,currentCat){const activePeriod=currentCat?.periodList?.find(p=>p.isActive)||currentCat?.periodList?.[0];titleEl.textContent=activePeriod?.name||currentCat?.name||`r/${targetSubreddit}`;subtitleEl.textContent="";if(currentCat?.description){subtitleEl.appendChild(document.createTextNode(`${currentCat.description} `))}const learnUrl=safeUrl(currentCat?.deeplinkUrl);if(learnUrl){const a=el("a","clb-learn-more","Learn more");a.href=learnUrl;a.target="_blank";a.rel="noopener noreferrer";subtitleEl.appendChild(a)}tabsEl.textContent="";if(Array.isArray(categories)&&categories.length>1){tabsEl.hidden=false;for(const cat of categories){const btn=el("button",cat.id===activeCategoryId?"clb-tab is-active":"clb-tab",cat.name);btn.type="button";btn.addEventListener("click",()=>{if(cat.id!==activeCategoryId){loadLeaderboard(cat.id)}});tabsEl.appendChild(btn)}}else{tabsEl.hidden=true}const metaParts=[currentCat?.updateIntervalLabel,currentCat?.lastUpdatedLabel].filter(Boolean);if(metaParts.length>0){footer.appendChild(el("div","",metaParts.join(" • ")))}if(currentCat?.footerText){footer.appendChild(el("div","",currentCat.footerText))}footer.hidden=footer.childElementCount===0}async function loadLeaderboard(categoryId){const token=%2B%2BrequestToken;isLoading=true;hasNextPage=false;endCursor="";body.textContent="";body.appendChild(el("div","clb-status","Loading leaderboard…"));try{const variables={subredditName:targetSubreddit};if(categoryId)variables.categoryId=categoryId;const data=await window.gqlFetch("CommunityLeaderboard","2453122c624fc5675ee3fc21f59372a6ae9ef63be3cb4f3072038b162bf21280",variables);if(token!==requestToken)return;const lb=data?.subredditInfoByName?.communityLeaderboard;if(!lb){body.textContent="";body.appendChild(el("div","clb-status",`No community leaderboard found for r/${targetSubreddit}.`));return}const categories=lb.categories||[];const currentCat=categories.find(c=>c.id===categoryId)||categories.find(c=>c.isActive)||categories[0]||null;activeCategoryId=currentCat?.id||categoryId||null;body.textContent="";footer.textContent="";const ranking=lb.ranking;if(ranking?.currentUserRank){footer.appendChild(buildUserRow(ranking.currentUserRank,true))}renderHeaderAndFooter(categories,currentCat);const edges=ranking?.edges||[];if(edges.length===0){body.appendChild(el("div","clb-status","No rankings available yet."))}else{body.appendChild(renderEdges(edges))}endCursor=ranking?.pageInfo?.endCursor||"";hasNextPage=Boolean(ranking?.pageInfo?.hasNextPage&&endCursor);updateLoadMoreControl()}catch(err){if(token!==requestToken)return;body.textContent="";body.appendChild(el("div","clb-status is-error",`Failed to load leaderboard: ${err?.message||err}`))}finally{if(token===requestToken){isLoading=false;updateLoadMoreControl()}}}async function loadNextPage(){if(isLoading||!hasNextPage||!endCursor)return;const token=requestToken;isLoading=true;updateLoadMoreControl();try{const variables={subredditName:targetSubreddit,after:endCursor};if(activeCategoryId)variables.categoryId=activeCategoryId;const data=await window.gqlFetch("CommunityLeaderboardPage","ef6d0a4d10971569834a07c01c3c4afa408ef22f4c062a9e8d7d45da4c800a81",variables);if(token!==requestToken)return;const ranking=data?.subredditInfoByName?.communityLeaderboard?.ranking;const wrap=body.querySelector(".clb-load-more-wrap");if(wrap)wrap.remove();body.appendChild(renderEdges(ranking?.edges||[]));endCursor=ranking?.pageInfo?.endCursor||"";hasNextPage=Boolean(ranking?.pageInfo?.hasNextPage&&endCursor)}catch(err){if(token!==requestToken)return;body.appendChild(el("div","clb-status is-error",`Failed to load more: ${err?.message||err}`))}finally{if(token===requestToken){isLoading=false;updateLoadMoreControl()}}}body.addEventListener("scroll",()=>{if(!hasNextPage||isLoading)return;if(body.scrollTop%2Bbody.clientHeight>=body.scrollHeight-120){loadNextPage()}});await loadLeaderboard(initialCategoryId)}window.openCommunityLeaderboardModal=openCommunityLeaderboardModal;await openCommunityLeaderboardModal()})();}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 "Subreddit Leaderboard". Paste the code above as the URL. Now, go to the subreddit where you want to view the leaderboard. 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 subreddit page of your choosing, 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
Edit: added light mode support
2
Any update?
1
new.reddit.com. Was discontinued on 2024 but I managed to recover it (r/ReturnNewReddit). Luckily, the custom backgrounds and upvote icons aren't gone. And infact, you can upload new ones (like I did for r/6TEEN, though you need to open it on new.reddit to view them)
1
Reddit deletes comments with such images
2
Yeah, they're just people with a lot of money to burn on AI tokens
1
Is this the data that you want?
{
"modInsights": {
"__typename": "ModInsights",
"dailySummaries": {
"__typename": "ModInsightsSummaries",
"commentsPublished": { "delta": -18, "metric": 7 },
"commentsRemoved": { "delta": -2, "metric": 1 },
"pageViews": { "delta": -377, "metric": 1192 },
"postsPublished": { "delta": 0, "metric": 0 },
"postsRemoved": { "delta": 0, "metric": 1 },
"subscribes": { "delta": 0, "metric": 0 },
"uniques": { "delta": -10, "metric": 20 },
"unsubscribes": { "delta": 0, "metric": 0 }
},
"monthlySummaries": {
"__typename": "ModInsightsSummaries",
"commentsPublished": { "delta": 336, "metric": 671 },
"commentsRemoved": { "delta": 3, "metric": 82 },
"pageViews": { "delta": 32916, "metric": 69582 },
"postsPublished": { "delta": 17, "metric": 99 },
"postsRemoved": { "delta": 3, "metric": 29 },
"subscribes": { "delta": 129, "metric": 207 },
"uniques": { "delta": 529, "metric": 1033 },
"unsubscribes": { "delta": 7, "metric": 16 }
},
"totalMembers": {
"__typename": "ModInsightsRanges",
"members": {
"slices": [
{ "startsAt": "2026-10-24T00:00:00.000000+0000", "values": [{ "metric": 7323, "name": "Members" }] },
{ "startsAt": "2026-10-25T00:00:00.000000+0000", "values": [{ "metric": 7328, "name": "Members" }] },
{ "startsAt": "2026-10-26T00:00:00.000000+0000", "values": [{ "metric": 7331, "name": "Members" }] },
{ "startsAt": "2026-10-27T00:00:00.000000+0000", "values": [{ "metric": 7334, "name": "Members" }] },
{ "startsAt": "2026-10-28T00:00:00.000000+0000", "values": [{ "metric": 7337, "name": "Members" }] },
{ "startsAt": "2026-10-29T00:00:00.000000+0000", "values": [{ "metric": 7346, "name": "Members" }] },
{ "startsAt": "2026-10-30T00:00:00.000000+0000", "values": [{ "metric": 7353, "name": "Members" }] },
/* truncated */
]
}
},
"weeklySummaries": {
"__typename": "ModInsightsSummaries",
"commentsPublished": { "delta": -6, "metric": 117 },
"commentsRemoved": { "delta": -18, "metric": 8 },
"pageViews": { "delta": -5666, "metric": 10534 },
"postsPublished": { "delta": -23, "metric": 11 },
"postsRemoved": { "delta": 3, "metric": 10 },
"subscribes": { "delta": -27, "metric": 28 },
"uniques": { "delta": -234, "metric": 600 },
"unsubscribes": { "delta": 0, "metric": 4 }
},
"yearlySummaries": {
"__typename": "ModInsightsSummaries",
"commentsPublished": { "delta": 2053, "metric": 5237 },
"commentsRemoved": { "delta": 420, "metric": 599 },
"pageViews": { "delta": 156327, "metric": 398699 },
"postsPublished": { "delta": 538, "metric": 886 },
"postsRemoved": { "delta": 133, "metric": 156 },
"subscribes": { "delta": 585, "metric": 1494 },
"uniques": { "delta": 3139, "metric": 9915 },
"unsubscribes": { "delta": 81, "metric": 153 }
}
},
"trafficStats": {
"__typename": "TrafficStats",
"dayStats": [
{
"__typename": "StatsSlice",
"client": "MOBILE_WEB",
"pageViews": 269,
"startsAt": "2026-10-20T00:00:00.000000",
"uniqueUsers": 122
},
{ "__typename": "StatsSlice", "client": "OLD_REDDIT", "pageViews": 22, "startsAt": "2026-10-20T00:00:00.000000", "uniqueUsers": 8 },
{ "__typename": "StatsSlice", "client": "DESKTOP", "pageViews": 187, "startsAt": "2026-10-20T00:00:00.000000", "uniqueUsers": 97 },
{ "__typename": "StatsSlice", "client": "ANDROID", "pageViews": 138, "startsAt": "2026-10-20T00:00:00.000000", "uniqueUsers": 71 },
{ "__typename": "StatsSlice", "client": "TOTAL", "pageViews": 778, "startsAt": "2026-10-20T00:00:00.000000", "uniqueUsers": 402 },
{ "__typename": "StatsSlice", "client": "IOS", "pageViews": 162, "startsAt": "2026-10-20T00:00:00.000000", "uniqueUsers": 104 },
{
"__typename": "StatsSlice",
"client": "MOBILE_WEB",
"pageViews": 242,
"startsAt": "2026-10-27T00:00:00.000000",
"uniqueUsers": 122
},
{ "__typename": "StatsSlice", "client": "OLD_REDDIT", "pageViews": 59, "startsAt": "2026-10-27T00:00:00.000000", "uniqueUsers": 25 },
{ "__typename": "StatsSlice", "client": "DESKTOP", "pageViews": 383, "startsAt": "2026-10-27T00:00:00.000000", "uniqueUsers": 171 },
{ "__typename": "StatsSlice", "client": "ANDROID", "pageViews": 297, "startsAt": "2026-10-27T00:00:00.000000", "uniqueUsers": 120 },
{ "__typename": "StatsSlice", "client": "TOTAL", "pageViews": 1253, "startsAt": "2026-10-27T00:00:00.000000", "uniqueUsers": 556 },
{ "__typename": "StatsSlice", "client": "IOS", "pageViews": 272, "startsAt": "2026-10-27T00:00:00.000000", "uniqueUsers": 118 }
/* truncated */
],
"hourStats": [
/* truncated */
],
"monthStats": [
/* truncated */
],
"subscriptionData": [
{ "startsAt": "2026-10-20T00:00:00.000000", "subscribers": 2, "unsubscribers": 0 },
{ "startsAt": "2026-10-27T00:00:00.000000", "subscribers": 3, "unsubscribers": 1 },
{ "startsAt": "2026-09-29T00:00:00.000000", "subscribers": 1, "unsubscribers": 0 },
{ "startsAt": "2026-10-19T00:00:00.000000", "subscribers": 6, "unsubscribers": 0 },
{ "startsAt": "2026-11-11T00:00:00.000000", "subscribers": 24, "unsubscribers": 2 },
{ "startsAt": "2026-11-03T00:00:00.000000", "subscribers": 12, "unsubscribers": 0 },
{ "startsAt": "2026-10-21T00:00:00.000000", "subscribers": 1, "unsubscribers": 0 },
/* truncated */
]
},
"yearlyViewPost": {
"__typename": "ModInsightsPostsActivity",
"postsByEngagementRate": [
{
"engagementRate": 0.8,
"postInfo": {
"__typename": "SubredditPost",
"authorInfo": { "displayName": "buzzburger23e" },
"createdAt": "2025-09-20T06:55:31.509000+0000",
"id": "t3_1nlraff",
"isNsfw": false,
"isOriginalContent": false,
"isSpoiler": false,
"thumbnailV2": { "image": null, "isObfuscatedDefault": true, "obfuscatedImage": null },
"title": "It is WAY too easy to accidentally delete notifications on Mobile reddit"
}
},
{
"engagementRate": 0.5893719806763285,
"postInfo": {
"__typename": "SubredditPost",
"authorInfo": { "displayName": "reddit33450" },
"createdAt": "2026-03-05T04:39:22.622000+0000",
"id": "t3_1rl860l",
"isNsfw": false,
"isOriginalContent": false,
"isSpoiler": false,
"thumbnailV2": {
"image": { "url": "/preview/pre/ufdcspsao5ng1.jpeg?width=320&auto=webp&s=676c0e37370fe6ee022da8b71c686829347bb72b" },
"isObfuscatedDefault": true,
"obfuscatedImage": null
},
"title": "I hate how in newer versions of the reddit app they changed the vote number from orange to this crappy duller color (old on top, new on bottom)"
}
},
/* truncated */
],
"postsByViewCount": [
{
"postInfo": {
"__typename": "SubredditPost",
"authorInfo": { "displayName": "Littux" },
"createdAt": "2026-08-20T14:50:00.105000+0000",
"id": "t3_1vtlmkv",
"isNsfw": false,
"isOriginalContent": false,
"isSpoiler": false,
"thumbnailV2": {
"image": {
"url": "/preview/external-pre/cDZ1dGRtZGRtamtoMf13aBSiofZ4r9y9Vz9Cm4yhTUd2o2-UZ4NwyW54NQU2.png?width=320&auto=webp&s=2a0553c26335ea9a536d8e6b8c1b1374dae32ecc"
},
"isObfuscatedDefault": true,
"obfuscatedImage": null
},
"title": "Old reddit still works logged out as long as you don't use old.reddit.com to access old reddit"
},
"viewCount": 39192
},
{
"postInfo": {
"__typename": "SubredditPost",
"authorInfo": { "displayName": "CybyAPI" },
"createdAt": "2026-04-27T23:27:28.082000+0000",
"id": "t3_1sxkcto",
"isNsfw": false,
"isOriginalContent": false,
"isSpoiler": false,
"thumbnailV2": {
"image": { "url": "/preview/pre/z68p82oshtxg1.png?width=320&auto=webp&s=0fe6e542c964e0e0e55d64e298eeab0603280bfa" },
"isObfuscatedDefault": true,
"obfuscatedImage": null
},
"title": "You can no longer use reddit on the browser on mobile"
},
"viewCount": 37794
},
/* truncated */
]
},
"dailyViewPosts": { /* truncated */ },
"weeklyViewPosts": { /* truncated */ },
"monthlyViewPosts": { /* truncated */ }
}2
Try this bookmarklet:
javascript:(async()=>{try{await (async()=>{if(!r.config.modhash)throw new Error("must be run on old reddit");const subredditMatch=location.pathname.match(/^/r/([^/]%2B)(?:/|$)/i);if(!subredditMatch)throw new Error("Open a subreddit page before running this bookmarklet.");const subreddit=subredditMatch[1];const panel=document.createElement("section");panel.id="reorder-flair-panel";panel.setAttribute("role","dialog");panel.setAttribute("aria-modal","true");panel.setAttribute("aria-labelledby","reorder-flair-title");panel.innerHTML=`%0A<style>%0A%09%23reorder-flair-panel {%0A%09%09position: fixed;%0A%09%09z-index: 2147483647;%0A%09%09top: 24px;%0A%09%09right: 24px;%0A%09%09width: min(420px, calc(100vw - 48px));%0A%09%09max-height: calc(100vh - 48px);%0A%09%09overflow: auto;%0A%09%09box-sizing: border-box;%0A%09%09padding: 16px;%0A%09%09border: 1px solid %23888;%0A%09%09border-radius: 6px;%0A%09%09background: %23fff;%0A%09%09color: %23222;%0A%09%09box-shadow: 0 4px 20px %230005;%0A%09%09font: 14px/1.4 sans-serif;%0A%09}%0A%09%23reorder-flair-panel * { box-sizing: border-box; }%0A%09%23reorder-flair-panel header {%0A%09%09display: flex;%0A%09%09align-items: center;%0A%09%09justify-content: space-between;%0A%09%09gap: 12px;%0A%09}%0A%09%23reorder-flair-panel h2 { margin: 0; font-size: 18px; }%0A%09%23reorder-flair-panel button {%0A%09%09padding: 5px 9px;%0A%09%09border: 1px solid %23aaa;%0A%09%09border-radius: 4px;%0A%09%09background: %23f7f7f7;%0A%09%09color: inherit;%0A%09%09cursor: pointer;%0A%09%09font: inherit;%0A%09}%0A%09%23reorder-flair-panel button:disabled { cursor: default; opacity: .45; }%0A%09%23reorder-flair-panel ul {%0A%09%09display: grid;%0A%09%09gap: 6px;%0A%09%09margin: 14px 0;%0A%09%09padding: 0;%0A%09%09list-style: none;%0A%09}%0A%09%23reorder-flair-panel li {%0A%09%09display: flex;%0A%09%09align-items: center;%0A%09%09justify-content: space-between;%0A%09%09gap: 8px;%0A%09%09min-height: 34px;%0A%09%09padding: 4px 6px 4px 10px;%0A%09%09border: 1px solid %23ddd;%0A%09%09border-radius: 4px;%0A%09}%0A%09%23reorder-flair-panel .flair-text {%0A%09%09min-width: 0;%0A%09%09overflow-wrap: anywhere;%0A%09}%0A%09%23reorder-flair-panel .flair-controls { display: flex; gap: 4px; }%0A%09%23reorder-flair-panel %23reorder-flair-status { min-height: 1.4em; }%0A</style>%0A<header>%0A%09<h2 id="reorder-flair-title">Reorder link flairs</h2>%0A%09<button type="button" id="reorder-flair-close" aria-label="Close">Close</button>%0A</header>%0A<ul id="reorder-flair-list"></ul>%0A<p id="reorder-flair-status" role="status">Loading flair templates…</p>%0A<button type="button" id="reorder-flair-save" disabled>Save order</button>`;document.getElementById("reorder-flair-panel")?.remove();document.body.appendChild(panel);const list=panel.querySelector("%23reorder-flair-list");const status=panel.querySelector("%23reorder-flair-status");const saveButton=panel.querySelector("%23reorder-flair-save");panel.querySelector("%23reorder-flair-close").addEventListener("click",()=>panel.remove());let flairs=[];let saving=false;const render=()=>{list.replaceChildren();flairs.forEach((flair,index)=>{const row=document.createElement("li");const text=document.createElement("span");text.className="flair-text";text.textContent=flair.text;const controls=document.createElement("span");controls.className="flair-controls";[{label:"Move flair up",icon:"↑",offset:-1},{label:"Move flair down",icon:"↓",offset:1}].forEach(({label,icon,offset})=>{const button=document.createElement("button");button.type="button";button.textContent=icon;button.setAttribute("aria-label",label);button.disabled=saving||index%2Boffset<0||index%2Boffset>=flairs.length;button.addEventListener("click",()=>{const[movedFlair]=flairs.splice(index,1);flairs.splice(index%2Boffset,0,movedFlair);status.textContent="Unsaved changes.";render()});controls.appendChild(button)});row.append(text,controls);list.appendChild(row)});saveButton.disabled=saving||flairs.length===0};try{const response=await fetch(`/r/${subreddit}/api/link_flair.json?raw_json=1`,{headers:{Accept:"application/json"}});if(!response.ok)throw new Error(`Failed to load flair templates (${response.status}).`);const data=await response.json();const templates=Array.isArray(data)?data:null;if(!Array.isArray(templates))throw new Error("The flair template response was not a list.");flairs=templates.map(template=>({id:template.id,text:String(template.text??"")}));if(flairs.some(flair=>typeof flair.id!=="string"||!flair.id)){throw new Error("A flair template is missing its template ID.")}status.textContent=flairs.length?"":"No link flair templates found.";render()}catch(error){status.textContent=`Failed to load flair templates: ${error.message}`;return}saveButton.addEventListener("click",async()=>{const modhash=window.r.config.modhash;saving=true;status.textContent="Saving order…";render();try{const response=await fetch(`/api/v1/${subreddit}/flair_template_order/LINK_FLAIR?raw_json=1`,{method:"PATCH",headers:{"Content-Type":"application/json","x-modhash":modhash},body:JSON.stringify(flairs.map(flair=>flair.id))});const responseText=await response.text();if(!response.ok){throw new Error(`Request failed (${response.status}): ${responseText||response.statusText}`)}if(responseText){const result=JSON.parse(responseText);const errors=result.errors??result.data?.errors;if(Array.isArray(errors)&&errors.length){throw new Error(`Reddit rejected the order: ${JSON.stringify(errors)}`)}}status.textContent="Order saved."}catch(error){status.textContent=`Failed to save order: ${error.message}`}finally{saving=false;render()}})})();}catch(e){console.error("Bookmarklet failed:", e.message);alert("Bookmarklet failed: " %2B e.message)}})();To use the bookmark, bookmark this page and go to Bookmarks > Mobile Bookmarks (on chrome, may differ for others) and click on the newly created bookmark. Edit it and change the title to "Reorder flair". Change the URL to the code above. Save it and go to the subreddit where you want to reorder the flairs on old reddit (old.reddit.com/r/subreddit). Enter "Reorder flair" on the address bar and you should see a bookmark suggestion on the bottom. Click on it and a pop-up for reordering the flairs should show up
Messed up the previous release (didn't update the version in the code and didn't push a commit with some fixes). Here's the changelog of the previous release: https://www.reddit.com/r/Littux/comments/1y2pljn/newredditcom_recovery_release_v090_now_with/
r/ReturnNewReddit • u/Littux • 12d ago
The client now supports keyword filtering of posts. After updating, check out http://localhost:1264/config.html#filters. There are two options there: "Fully hide filtered posts" and "Show a toast when posts are filtered". Enable "Fully hide filtered posts" if you don't want to see "Post hidden (Unhide)" cards, and disable "Show a toast when posts are filtered" if you don't want to see "Filtered x posts by post filter 'Filter name'" messages
You can import JSON filters using the "Import" button next to "Subreddit filters" and "Post filters" in the filters menu. This makes it possible to share filters with people, and ask AI to make filters for you. You can use this Gemini skill to ask Gemini to make filters for you: https://gemini.google.com/customize/skills/d/16dCj4CILzA5CJ6DIlDynYTvNjMJqLKlZ
cf.v.redd.it experiment active ("Video no longer available" or endless buffering)removedByCategory being ignored due to being uppercase (removed posts no longer always show "Removed by spam filter")r/redditdev • u/Littux • 13d ago
This URL seems to always return the most popular posts in your region: https://oauth.reddit.com/r/popular/hot.json?rtj=only&redditWebClient=web2x&app=web2x-client-production&allow_over18=1&geo_filter=GLOBAL&forceGeopopular=true&sr_detail=1&raw_json=1&limit=7. After removing the ".json" and keeping the URL parameters, it gives you an old reddit HTML page where the geo_filter is respected. Any idea what's happening?
10

Edit: quoting u/ Finish-Spiritual from the post:
It's so ironic that your agent fucked you up by saying "PlayGTAVI_Scarlett_Shipping.exe" and inventing API calls. That's a common structure of Unreal Engine binaries, which CAN'T be even remotely related to GTA VI, game_scarlett_master.exe is known from manifest file itself, nowhere in source there is string with this _Shipping crap. Your answers are just technical nonsense in hopes that your complex wording will make people around "confuse-nod".
"that translates the Xbox d3d12_xs.dll and XMemAllocPhysical calls straight to desktop DirectX 12 Agile SDK + VirtualAlloc2" - Oh, sure! Exactly! "XMemAllocPhysical", a function that never existed in GDK!
3
The filtering is done on the API side, so the client doesn't render them at all
1
It doesn't look like just "assisted" here
1
Markdown support was removed from the Reddit app. You need to use an older app version or the website with markdown mode enabled
r/spezholedesign • u/Littux • 14d ago
3
The filters can also be shared and imported as JSON. Here's the "GTA 6" filter I made as a test:
{
"enabled": true,
"title": "GTA 6",
"author": "Littux",
"page": [
"home",
"sub",
"user",
"all",
"popular",
"search"
],
"keywords": [
"gta",
"grand theft auto"
],
"isRegex": false,
"surface": [
"title",
"body",
"galleryCaption",
"postFlair",
"userFlair"
],
"subreddit": {
"nameExact": [
"GTA6",
"GTA6unmoderated"
],
"enabled": true
},
"invertSubreddit": true
}r/ReturnNewReddit • u/Littux • 14d ago
The "Filtered x posts" toast message and the "Post hidden" messages can both be disabled in settings. A new version will come out soon (and will be the first test for the update checker and updater feature added in v0.8.1). Planned to be released before GTA 6 but took longer
1
Can you try disabling "Post comments" and "Subreddit page" under "Use GraphQL for:" in settings (http://localhost:1264/config.html) and then see what you get when:
Also try both with "Post comments" and "Subreddit page" enabled
12
Girl Crush | Anime Teaser Visual
in
r/anime
•
1d ago
And go around making "pedophilia" comments under BL anime and calling hetero relationships "boring"