木杉·自用

本脚本支持去除 腾讯视频、爱奇艺、X主页的非内嵌水印,支持去除 csdn 右侧小广告,樱花动漫(yinghuacd.com)全部广告

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         木杉·自用
// @namespace    http://tampermonkey.net/
// @version      0.5
// @description  本脚本支持去除 腾讯视频、爱奇艺、X主页的非内嵌水印,支持去除 csdn 右侧小广告,樱花动漫(yinghuacd.com)全部广告
// @author       木杉qq1515585503
// @match        https://v.qq.com/*
// @match        https://blog.csdn.net/*
// @match        https://www.iqiyi.com/*
// @match        http://www.yinghuacd.com/*
// @match        https://wxnan.gitee.io/x_home_page/*
// @grant        授权非商业使用,未经允许,禁止复制粘贴相关源码
// @license MIT
// ==/UserScript==

(function() {
    var check = setInterval(function () {
        var tencent = document.getElementsByClassName("txp_waterMark_pic")[0]
        if (tencent != null) {
            tencent.remove()
            return
        }
        var csdn = document.getElementsByClassName("csdn-common-logo-advert")[0]
        if (csdn != null) {
            csdn.remove()
            return
        }
        var iqy = document.getElementsByClassName("iqp-logo-box")[0]
        if (iqy != null) {
            iqy.remove()
            return
        }
        var x = document.getElementsByClassName("logo")[0]
        if (x != null) {
            x.remove()
            return
        }
        var yinghua = document.getElementById("HMRichBox")
        var yhleft = document.getElementById("HMcoupletDivleft")
        var yhright = document.getElementById("HMcoupletDivright")
        if (yinghua && yhleft && yhright) {
            yinghua.remove()
            yhleft.remove()
            yhright.remove()
            return
        }

    },1000)

})();