Greasy Fork is available in English.

게시판 » 제작 요청

Adding a virtual pagebreak in Reddit

§
작성: 2019-08-23

Adding a virtual pagebreak in Reddit

I don't like the endless scrolling on the new version of Reddit, I'd love a script would insert a mark/line every 20 posts so I could see how many posts I've scrolled through.

woxxom관리자
§
작성: 2019-08-23
수정: 2019-08-23

You can use Stylish/Stylus extension or just plain vanilla usercontent.css in your Firefox profile:

@-moz-document domain("www.reddit.com") {
div[style*="max-width"] div[class] > div:not([class]):nth-child(20n) {
  border-bottom: 4px solid red;
}
}

Of course it can be used as userscript too:

// ==UserScript==
// @name   reddit mark
// @grant  GM_addStyle
// @match  https://www.reddit.com/*
// ==/UserScript==

GM_addStyle(`
div[style*="max-width"] div[class] > div:not([class]):nth-child(20n) {
  border-bottom: 4px solid red;
}
`);

댓글 남기기

댓글을 남기려면 로그인하세요.