Greasy Fork

Greasy Fork is available in English.

爱奇艺,优酷,腾讯视频 简洁画面,logo水印移除

删除元素,logo,达到极简效果

当前为 2021-06-27 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         爱奇艺,优酷,腾讯视频 简洁画面,logo水印移除
// @namespace    http://tampermonkey.net/
// @version      1.511
// @description  删除元素,logo,达到极简效果
// @author       Xian
// @match        https://www.iqiyi.com/*.html*
// @match        https://v.qq.com/*
// @match        https://v.youku.com/v_show/*.html*
//         https://y.qq.com/n/yqq/mv/v/*.html
// @grant        none
// ==/UserScript==

//**********************************************************************
//删除了视频下方花絮或评论部分
//删除了视频上的logo
//删除了无用广告
//移除了用户控制面板
//头部默认隐藏,鼠标移入显示头部标题栏
//**********************************************************************


(function() {
	'use strict';
    var $ = $ || window.$;
    // 爱奇艺
    if(/iqiyi.com/.test(window.location)){
        const style='<style>.header-wrap{transform:translateY(-100%);transition: transform .2s linear;}'+
              '#block-A, body{background-color:#191a20 !important}'+
              '#block-A:hover .header-wrap{transform:translateY(0);}'+
              '.cupid-pause-close + *, #contentArea, #block-AR, .detail-sd, #block-V, .iqp-integral-txt{display:none !important}'+
              '</style>'
        const jqueryJs = '<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>'

        document.getElementsByTagName('head')[0].innerHTML+=style+jqueryJs

        setInterval(()=>{
            if(/logoShowAnimation/.test(document.getElementsByClassName('iqp-logo-top')[0].className)){
                document.getElementsByClassName('iqp-logo-top')[0].className='iqp-logo-top logoHideAnimation'
            }
            if(/logoShowAnimation/.test(document.getElementsByClassName('iqp-logo-bottom')[0].className)){
                document.getElementsByClassName('iqp-logo-bottom')[0].className='iqp-logo-bottom logoHideAnimation'
            }
            document.getElementsByClassName('cupid-pause-close')[0].parentNode.style.display='none'
        },500)
    }else if(/youku.com/.test(window.location)){ //优酷
        const style = '<style>#header-contain{transform:translateY(-100%);transition: transform .2s linear;}'+
              '#top-header > div:hover #header-contain{transform:translateY(0);}'+
              '#top-header > div, body, html{background-color:#1e1e24 !important}'+
              '.info-bottom_3C0mQ,.qr-wrap, .youku-layer-logo, .fixed_bar_2rZMG, .bottom-area-wrap, .youku-foot_2B1OU{display:none !important}</style>'
        document.getElementsByTagName('head')[0].innerHTML+=style
    }else if(/v.qq.com/.test(window.location)){//腾讯视频
        const style = '<style>.head_inner{transform:translateY(-100%);transition: transform .2s linear;}'+
              '#new_vs_header:hover .head_inner{transform:translateY(0);}'+
              '#new_vs_header, body, html{background-color:#0f0f1e !important}'+
              '#shortcut, .mod_ad , .txp_waterMark_pic, .txp_ad, .container_main, .site_footer{display:none !important}</style>'
        document.getElementsByTagName('head')[0].innerHTML+=style

    }

})();