-
Notifications
You must be signed in to change notification settings - Fork 0
/
hidden-logo-script.user.js
34 lines (33 loc) · 1.5 KB
/
hidden-logo-script.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// ==UserScript==
// @name 隐藏徽标
// @namespace https://github.com/GuoChen-thlg
// @version 0.2.2
// @description 隐藏视频播放时出现的网站LOGO (支持:腾讯,爱奇艺,优酷,PP)
// @author THLG
// @supportURL [email protected]
// @updateURL https://github.com/GuoChen-thlg/grease-monkey-script/raw/master/hidden-logo-script.user.js
// @installURL https://github.com/GuoChen-thlg/grease-monkey-script/raw/master/hidden-logo-script.user.js
// @downloadURL https://github.com/GuoChen-thlg/grease-monkey-script/raw/master/hidden-logo-script.user.js
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CK755FJ9PSBZ8
// @contributionAmount 1
// @match *://v.qq.com/*
// @match *://*.iqiyi.com/*
// @match *://v.youku.com/*
// @match *://v.pptv.com/*
// @match *://*.mgtv.com/*
// @grant none
// @run-at document-end
// ==/UserScript==
(function () {
'use strict';
var style = [
"[data-role='txp-ui-watermark-mod']",
".txp-watermark",
".iqp-player [data-player-hook='logo'].iqp-logo-box",
"#ykPlayer .youku-layer-logo",
".w-video #p-mark",
].join(',') + "{ display:none !important }"
var n_style = document.createElement('style')
n_style.innerHTML = style
document.getElementsByTagName('head')[0].appendChild(n_style)
})();