Remove Reddit various suggested posts

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Remove Reddit various suggested posts
// @namespace    NetNeg
// @version      0.5
// @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();
  $("h3:contains('What do you want to see more of?')").parents().eq(upElems).remove();
  $("div").hasAttribute('data-survey').remove();
}
hidesuggestions();
document.addEventListener("DOMNodeInserted", hidesuggestions);