Greasy Fork is available in English.
删除元素,logo,达到极简效果
ของเมื่อวันที่
- // ==UserScript==// @name #奇艺,优#,腾讯视频 简洁画面,logo水印移除// @namespace http://tampermonkey.net/// @version 0.3// @description 删除元素,logo,达到极简效果// @author Xian// @match https://www.iqiyi.com/*.html?*// @match https://v.qq.com/x/cover/*.html// @match https://v.youku.com/v_show/*.html?*// @grant none// ==/UserScript==// 'use strict';setInterval(function(){try{var aqy_body = document.getElementsByTagName('body')[0];aqy_body.style.height = '2000px';aqy_body.style.backgroundColor = '#292929';aqy_body.style.overflow = 'hidden';}catch(e){}//头部try{// var aqy_a = document.getElementsByClassName('header-wrap')[0];// aqy_a.parentNode.style.backgroundColor = '#292929';// aqy_a.remove();}catch(e){}//花絮try{//document.getElementById('widget-movie-newtidbits').remove();}catch(e){}try{// document.getElementById('widget-movie-superseries').remove();}catch(e){}try{document.getElementById('block-V').remove();}catch(e){}try{document.getElementsByClassName('detail-sd')[0].remove();}catch(e){}try{document.getElementById('titleRow').remove();}catch(e){}try{document.getElementById('contentArea').remove();}catch(e){}try{document.getElementById('block-AR').remove();}catch(e){}//暂停广告try{document.getElementsByClassName('cupid-pause-close')[0].parentNode.remove();}catch(e){}try{document.getElementsByClassName('h5-ext-layer')[0].childNodes[1].remove();}catch(e){}try{document.getElementsByClassName('txp_ad txp_ad_center')[0].remove();}catch(e){}//水印logotry{document.getElementsByClassName('iqp-logo-top')[0].remove();}catch(e){}try{document.getElementsByClassName('logo-new')[0].remove();}catch(e){}//腾讯视频添加的脚本try{document.getElementsByClassName('txp_waterMark_pic')[0].remove();}catch(e){}try{document.getElementById('_vip_player_sec').remove();}catch(e){}try{document.getElementById('_vip_player_sec').remove();}catch(e){}try{document.getElementsByClassName('mod_ad')[0].remove();}catch(e){}try{document.getElementById('shortcut').remove();}catch(e){}try{document.getElementsByClassName('video_info_wrap')[0].remove();}catch(e){}try{document.getElementsByClassName('player_headline')[0].style.height = '2000px';}catch(e){}//优#添加的脚本try{document.getElementsByClassName('qr-wrap')[0].remove();}catch(e){}try{document.getElementById('right-title-ad-banner').remove();}catch(e){}try{document.getElementsByClassName('u-vip_3-BwE')[0].remove();}catch(e){}},2000);