= typeof GM && "undefined" != typeof unsafeWindow;
if (isTop && /vwecam.tc.qq.com|\.titan.mgtv.com/.test(location.href) && !document.querySelector("video")) return location.reload();
const HTML = document.getElementsByTagName("html")[0];
if (HTML.getAttribute(PLUGIN_ATTR) === PLUGIN_ID) return;
HTML.setAttribute(PLUGIN_ATTR, PLUGIN_ID);
const MAX_Z_INDEX = 2147483647, BETTER_ADDONS = [ {
name: "腾讯·播放页",
match: /v\.qq\.com\/(cover|play|x\/cover|x\/page|x\/play|x\/m\/cover|x\/m\/page|x\/m\/play)/,
vip: "#vip_title, .U_box_bg_a, .player_headline, .mod_video_info",
title: ".mod_video_info .video_title, ._main_title, .player_title",
fixUrl(n) {
if (n.includes("cid=")) {
const o = n.match(/cid=(\w+)/)[1];
let e = n.match(/vid=(\w+)/);
return e = e ? "/" + e[1] : "", "https://v.qq.com/x/cover/".concat(o).concat(e, ".html");
}
return n.includes("/x/cover") ? n.replace(/\.html.*/, ".html") : n;
},
hide: '.mod_source, .video_function, .mod_promotion, #vip_privilege, #vip_activity, .U_bg_b, .btn_open_v, .btn_openapp, #vip_header, .btn_user_hd, .mod_sideslip_privileges, .mod_game_rec, .mod_source, .mod_promotion, .mod_sideslip_h, .btn_open, .btn_pay, .mod_box_lastview, .mod_vip_popup, .mod_vip_popup + .mask_layer, txpdiv[data-role="hd-ad-adapter-interactivelayer"], .mod_ad',
css: "body, #vip_title {padding-bottom: 0 !important;}.mod_episodes_numbers.is-vip .item {width: auto;padding: 0 1em;}.U_html_bg .container {padding-bottom: 30px;}.mod_play .mod_player_viptips .btn_try {left: 30%;}"
}, {
name: "爱奇艺·播放页",
match: /\.iqiyi\.com\/v_/,
vip: 'div[name="m-videoInfo"], #block-C',
title: "#widget-videotitle, .video-title, .c-title-link, .player-title a",
fixUrl: !0,
sign: ".m-footer",
hide: '.m-iqyDown, .header-login + div, .m-video-action, div[name="m-vipRights"], div[name="m-extendBar"], .m-iqylink-diversion, .m-iqylink-guide, .c-openVip, .c-score-btn, .m-videoUser-spacing, .m-pp-entrance, .m-hotWords-bottom, div[template-type="ALBUM"] .m-player-tip, .iqp-box-integral, body > div[style]',
css: '\n.page_play {padding-bottom: 0;}div[name="m-videoInfo"] {padding-top: 1em;}.m-box-items .o--album-item {border-radius: 0.05em;background-color: #e9ecef;color: #495057;padding: 0.5em 1em;display: inline-flex;justify-content: center;align-items: center;margin: 0.25em;font-weight: bold;}.m-video-player #o--player-iframe {padding-top: 56.25%;top: 50%;transform: translateY(-50%);}.qy-header .header-wrap {z-index: '.concat(MAX_Z_INDEX, ";}"),
js() {
log("修复爱奇艺选集");
let n = [], o = ($('[name="apple-itunes-app"]').attr("content") || "").match(/aid=\d{2,}/);
if (o) {
fetch("https://pcw-api.iqiyi.com/albums/album/avlistinfo?page=1&size=9999&" + o[0]).then((function(n) {
return n.json();
})).then((function(o) {
n = o.data.epsodelist;
}));
let e = 0;
setInterval((function() {
let o = Number($(".qy-episode-num .select-item.selected .select-link").text() || 0);
if (o && o !== e) {
log("change episode num: ".concat(e, " → ").concat(o)), e = o;
let i = n[e - 1];
if (i) {
let n = i.playUrl.replace(/https?:/, location.protocol);
if (n !== ooPlayUrl) {
const o = ooPlayUrl || location.href;
ooPlayUrl = n, log("change episode to:", n), E.emit("url.change", {
oldUrl: o,
newUrl: n,
autoPlay: !0
});
}
}
}
}), 100);
}
}
}, {
name: "优酷·播放页",
match: /m\.youku\.com\/a|m\.youku\.com\/v|v\.youku\.com\/v_/,
vip: ".h5-detail-info, .player-title",
title: ".player-title .subtitle a, .module-name, .anthology-title-wrap .title, .title-link",
fixUrl: !0,
sign: ".copyright",
hide: ".h5-detail-guide, .h5-detail-ad, .brief-btm, .smartBannerBtn, .cmt-user-action, #right-title-ad-banner, .Corner-container",
css: "#bpmodule-playpage-lefttitle {height: auto !important;}"
}, {
name: "土豆·播放页",
match: /\.tudou.com\/v\//,
vip: ".play-video-desc, .td-play__baseinfo",
title: ".td-listbox__title, .video-desc-title",
fixUrl: !0,
hide: ".video-player-topbar, .td-h5__player__appguide, #tudou-footer, .dropdown__panel__con"
}, {
name: "芒果·播放页",
match: /\.mgtv\.com\/(b|l)\//,
vip: [ ".xuanji | before", ".v-panel-box, .control-left" ],
title: ".v-panel-title, .vt-txt",
fixUrl: !0,
sign: ".mg-footer-copyright",
hide: ".ad-banner, .video-area-bar, .video-error .btn, .m-vip-list, .m-vip-list + div:not([class]), .toapp, .video-comment .ft, .mg-app-swip"
}, {
name: "搜狐·播放页",
match: /film\.sohu\.com\/album\/|tv\.sohu\.com\/(v|phone_play_film|\d+\/n\d+.shtml)/,
vip: ".title-wrap, .videoInfo, .tw-info, .player-detail, .movie-info-content",
title: "#vinfobox h2, .t-info, .movie-t h3",
fixUrl(n) {
if (/phone_play_film.+channeled=/.test(n)) {
const o = n.match(/channeled=(\w+)/)[1], e = n.match(/aid=(\w+)/)[1];
return "https://film.sohu.com/album/".concat(e, ".html?channeled=").concat(o);
}
return n;
},
sign: ".links",
hide: ".actv-banner, .btn-xz-app, .twinfo_iconwrap, .btn-comment-app, #ad_banner, .advertise, .main-ad-view-box, .foot.sohu-swiper, .app-star-vbox, .app-guess-vbox, .main-rec-view-box, .app-qianfan-box, .comment-empty-bg, .copyinfo, .ph-vbox, .btn_m_action, .btn-xz-app, #film_top_banner, .btn-comment-app",
css: ".comment-empty-txt {margin-bottom: 0;}.app-view-box + footer {padding: 0;opacity: 0.5;}#sohuplayer #menu {z-index: ".concat(MAX_Z_INDEX, ";}")
}, {
name: "乐视·播放页",
match: /\.le\.com\/(ptv\/vplay\/|vplay_)/,
vip: ".introduction_box, .briefIntro_left .info_list",
title: ".briefIntro_info .info_tit, #j-introduction h2",
fixUrl: !0,
hide: ".gamePromotion, .gamePromotionTxt, #j-leappMore, .lbzDaoliu, .arkBox"
}, {
name: "咪咕·播放页",
match: /miguvideo\.com\/.+\/detail\.html/,
vip: ".

Prev | Next
Pg.: 1 2 3 4 5 6 7 8 9 10


Back to home | File page

Subscribe | Register | Login | N