rjno1.com Clean Script

clean rjno1.com's ad-disable plugin warning.

Version vom 23.04.2020. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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 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.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

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         rjno1.com Clean Script
// @name:zh-CN      rjno1.com 清理脚本
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  clean rjno1.com's ad-disable plugin warning.
// @description:zh-CN 清理rjno1.com的广告屏蔽插件警告
// @author       ZhangHua
// @match        https://www.rjno1.com/*
// @grant        none
// ==/UserScript==
(function()
{
    var target = document.getElementsByTagName("img")[0]
    if (target.getAttribute("style")=="display:none")
    {
        target.parentNode.removeChild(target)
    }
    var divTarget=document.getElementsByTagName("div")[0]
    if (divTarget.getAttribute("style")=="width: 0px;height: 0px;overflow: hidden;visibility: hidden;")
    {
        divTarget.parentNode.removeChild(divTarget)
    }
    var textTarget1=document.getElementsByTagName("div")[0]
    textTarget1.remove()
    var textTarget2=document.getElementsByTagName("div")[0]
    textTarget2.remove()
}
)();