rjno1.com Clean Script

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

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

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

คุณจะต้องติดตั้งส่วนขยาย เช่น 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         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()
}
)();