Greasy Fork is available in English.
删除元素,logo,达到极简效果
当前为
// ==UserScript==
// @name 爱奇艺,优酷,腾讯视频 简洁画面,logo水印移除
// @namespace http://tampermonkey.net/
// @version 1.510
// @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)){
setInterval(()=>{
if($('.iqp-logo-top').hasClass('logoShowAnimation')){
$('.iqp-logo-top').addClass("logoHideAnimation");
$('.iqp-logo-top').removeClass("logoShowAnimation ");
}
if($('.iqp-logo-bottom').hasClass('logoShowAnimation')){
$('.iqp-logo-bottom').addClass("logoHideAnimation");
$('.iqp-logo-bottom').removeClass("logoShowAnimation ");
}
$('.cupid-pause-close').parent().css('display', 'none')
},500)
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
setTimeout(()=>{
},4000)
}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
}
})();