rjno1.com Clean Script

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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()
}
)();