RP+ Remover

Remove RP+ article from rp-online.de ### Takes some time to remove on mainpage

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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         RP+ Remover
// @namespace    http://tampermonkey.net/
// @require      https://code.jquery.com/jquery-1.12.4.min.js
// @version      0.1.1
// @description  Remove RP+ article from rp-online.de ### Takes some time to remove on mainpage
// @include      https://rp-online.de/*
// @grant        none
// ==/UserScript==

  window.addEventListener("load", function(event) {
    console.log("DOM fully loaded and parsed");

var allImages = [];
var images = [];

var classMatcher = /(?:^|\s)park-icon-paid(?:\s|$)/;
var els = document.getElementsByTagName('*');
for (var i=els.length;i--;){
  if (classMatcher.test(els[i].className)){
       els[i].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.remove('header');
       }
     }
});