Remove Reddit various suggested posts

An attempt to get rid of the various suggested posts from Reddit main page.

As of 20/05/2022. See the latest version.

// ==UserScript==
// @name         Remove Reddit various suggested posts
// @namespace    NetNeg
// @version      0.4
// @description  An attempt to get rid of the various suggested posts from Reddit main page.
// @author       NetNeg
// @match        https://www.reddit.com/
// @icon         https://www.google.com/s2/favicons?domain=reddit.com
// @grant        none
// @require      https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js
// @license      MIT
// ==/UserScript==
var upElems = 3;
function hidesuggestions() {
  $("p:contains('shown interest in')").parents().eq(upElems).remove();
  $("p:contains('Popular on Reddit right now')").parents().eq(upElems).remove();
  $("p:contains('Because you visited this community before')").parents().eq(upElems).remove();
  $("p:contains('Similar to r/')").parents().eq(upElems).remove();
  $("p:contains('Videos that redditors liked')").parents().eq(upElems).remove();
  $("p:contains('Some redditors find this funny')").parents().eq(upElems).remove();
  $("div").hasAttribute('data-survey').remove();
}
hidesuggestions();
document.addEventListener("DOMNodeInserted", hidesuggestions);
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元