腾讯视频、爱奇艺、优酷、芒果TV、乐视、PPTV、Bilibili解锁大会员、A站B站视频下载等几乎全网VIP会员视频解析脚本,持续完善更新

VIP视频解析脚本,涵盖绝大多数视频网站,基于现有脚本修改,会持续更新接口等

  1. // ==UserScript==
  2. // @name 腾讯视频、爱奇艺、优酷、芒果TV、乐视、PPTV、Bilibili解锁大会员、A站B站视频下载等几乎全网VIP会员视频解析脚本,持续完善更新
  3. // @namespace https://0xf.cc
  4. // @version 1.0.2
  5. // @description VIP视频解析脚本,涵盖绝大多数视频网站,基于现有脚本修改,会持续更新接口等
  6. // @antifeature ads 微信公众号推广
  7. // @author 0xfcc
  8. // @icon data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTkzOC42NjcgNTEyLjIxM2MwIDIzNS4wNTEtMTkxLjQ4OCA0MjYuNDU0LTQyNi42NjcgNDI2LjQ1NFM4NS4zMzMgNzQ3LjI2NCA4NS4zMzMgNTEyLjIxM2MwLTIzNS40NzcgMTkxLjQ4OC00MjYuODggNDI2LjY2Ny00MjYuODhzNDI2LjY2NyAxOTEuNDAzIDQyNi42NjcgNDI2Ljg4eiIgZmlsbD0iIzllYzRmNCIgb3BhY2l0eT0iLjkiLz48cGF0aCBkPSJNNjgyLjY2NyA1MTIuMjEzYzAgMTAuNzk1LTMuNDE0IDIxLjU5LTEwLjE5OCAzMC4yOTQtMS4yOCAxLjcwNi03LjIxIDguNzA0LTExLjg2MSAxMy4yMjZsLTIuNTYgMi41MThjLTM1LjYyNyAzNy43Ni0xMjQuMjg4IDk0LjU5Mi0xNjkuMjU5IDExMi44MSAwIC40MjctMjYuNzUyIDExLjIyMi0zOS40NjYgMTEuNjA2aC0xLjcwN2MtMTkuNDk5IDAtMzcuNzE3LTEwLjc1Mi00Ny4wNjEtMjguMTYtNS4xMi05LjYtOS43NzEtMzcuMzc2LTEwLjE5OC0zNy43Ni0zLjg0LTI0LjkxOC02LjM1Ny02My4wNjItNi4zNTctMTA0Ljk2IDAtNDMuOTQ3IDIuNTYtODMuNzU1IDcuMjEtMTA4LjI0NiAwLS40MjYgNC42OTQtMjIuODI2IDcuNjM4LTMwLjI5MyA0LjY5My0xMC43MSAxMy4xNDEtMTkuODgzIDIzLjc2NS0yNS42ODUgOC40OTEtNC4wOTYgMTcuNDA4LTYuMjMgMjYuNzEtNi4yMyA5Ljc3LjQyNyAyNy45ODkgNi42NTYgMzUuMiA5LjU1OCA0Ny41MyAxOC4yMTggMTM4LjMyNSA3Ny45NTIgMTczLjA5OCAxMTQuNDMyIDUuOTc0IDUuODAyIDEyLjMzMSAxMi45MjggMTQuMDM4IDE0LjUwNiA3LjE2OCA5LjEzMSAxMS4wMDggMjAuMzUyIDExLjAwOCAzMi4zODR6IiBmaWxsPSIjMGE4ZGZkIi8+PC9zdmc+
  9. // @require https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js
  10. // @match *://xbeibeix.com/api/bilibili*
  11. // @match *://v.qq.com/x/cover/*
  12. // @match *://v.qq.com/x/page/*
  13. // @match *://www.iqiyi.com/v*
  14. // @match *://www.iqiyi.com/*
  15. // @match *://www.iqiyi.com/kszt/*
  16. // @match *://v.youku.com/v_show/*
  17. // @match *://w.mgtv.com/b/*
  18. // @match *://www.mgtv.com/b/*
  19. // @match *://tv.sohu.com/v/*
  20. // @match *://film.sohu.com/album/*
  21. // @match *://www.le.com/ptv/vplay/*
  22. // @match *://v.pptv.com/show/*
  23. // @match *://vip.pptv.com/show/*
  24. // @match *://www.acfun.cn/v/*
  25. // @match *://www.bilibili.com/video/*
  26. // @match *://www.bilibili.com/anime/*
  27. // @match *://www.bilibili.com/bangumi/play/*
  28. // @match *://vip.1905.com/play/*
  29. // @match *://www.wasu.cn/Play/show/*
  30. // @license GPL License
  31. // @grant unsafeWindow
  32. // @grant GM_openInTab
  33. // @grant GM.openInTab
  34. // @grant GM_xmlhttpRequest
  35. // @grant GM.xmlHttpRequest
  36. // @grant GM_registerMenuCommand
  37. // ==/UserScript==
  38.  
  39. (function () {
  40. "use strict";
  41. let $ = window.$ || $;
  42. let host = location.host;
  43. let localurl = location.href;
  44.  
  45. function innerParse(url) {
  46. $("#iframe-player").attr("src", url);
  47. }
  48.  
  49. // function GMopenInTab(url, open_in_background) {
  50. // if (typeof GM_openInTab === "function") {
  51. // GM_openInTab(url, open_in_background);
  52. // } else {
  53. // GM.openInTab(url, open_in_background);
  54. // }
  55. // }
  56.  
  57. let GMaddStyle = (css) => {
  58. let myStyle = document.createElement("style");
  59. myStyle.textContent = css;
  60. let doc = document.head || document.documentElement;
  61. doc.appendChild(myStyle);
  62. };
  63.  
  64. let node = "";
  65. let player_nodes = [
  66. { url: "v.qq.com", node: "#mod_player" },
  67. { url: "www.iqiyi.com", node: "#flashbox" },
  68. { url: "v.youku.com", node: "#player" },
  69. { url: "w.mgtv.com", node: "#mgtv-player-wrap" },
  70. { url: "www.mgtv.com", node: "#mgtv-player-wrap" },
  71. { url: "tv.sohu.com", node: "#player" },
  72. { url: "film.sohu.com", node: "#playerWrap" },
  73. { url: "www.le.com", node: "#le_playbox" },
  74. { url: "video.tudou.com", node: ".td-playbox" },
  75. { url: "v.pptv.com", node: "#pptv_playpage_box" },
  76. { url: "vip.pptv.com", node: ".w-video" },
  77. { url: "www.wasu.cn", node: "#flashContent" },
  78. { url: "www.acfun.cn", node: "#player" },
  79. { url: "www.bilibili.com", node: "#player_module" },
  80. { url: "vip.1905.com", node: "#player" },
  81. ];
  82. for (let i in player_nodes) {
  83. if (player_nodes[i].url == host) {
  84. node = player_nodes[i].node;
  85. }
  86. }
  87.  
  88. let videoPlayer = $(
  89. "<div id='iframe-div' style='width:100%;height:100%;z-index:1000;'><iframe id='iframe-player' frameborder='0' allowfullscreen='true' width='100%' height='100%'></iframe></div>"
  90. );
  91.  
  92. GMaddStyle(
  93. `body #sideBtn { position: fixed; left: 0; top: 30%; width: 50px; height: 50px; -webkit-transform: translateX(-30%); transform: translateX(-30%); -webkit-transition: 0.3s all ease-in-out; transition: 0.3s all ease-in-out; cursor: pointer; z-index: 9999; } body #sideBtn svg { height: 100%; width: 100%; } body #sideBtn:hover { -webkit-transform: translateX(0) scale(1.15); transform: translateX(0) scale(1.15); } body #videoToolBox ::-webkit-scrollbar { width: 3px; } body #videoToolBox ::-webkit-scrollbar-track { background-color: rgba(255, 255, 255, 0); } body #videoToolBox ::-webkit-scrollbar-thumb { background-color: rgba(117, 117, 117, 0.5); } body #videoToolBox .container { z-index: 9999; -webkit-box-sizing: border-box; box-sizing: border-box; position: fixed; left: 50%; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); max-width: 720px; width: 90%; max-height: 85%; border-radius: 20px; background-color: rgba(250, 250, 250, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); overflow: hidden; -webkit-box-shadow: 0px 2px 9px 3px #8d8d8d66; box-shadow: 0px 2px 9px 3px #8d8d8d66; padding: 25px; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-transition: 0.5s all ease-in-out; transition: 0.5s all ease-in-out; } body #videoToolBox .container .close { position: absolute; top: 20px; right: 20px; width: 30px; height: 30px; cursor: pointer; z-index: 10000; } body #videoToolBox .container .close svg { width: 100%; height: 100%; } body #videoToolBox .container .tabs { position: relative; padding: 0px 50px 20px 50px; top: 0; left: 0; font-size: 15px; } body #videoToolBox .container .tabs ul { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: space-evenly; -ms-flex-pack: space-evenly; justify-content: space-evenly; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; position: relative; color: #464646; font-weight: 600; } body #videoToolBox .container .tabs ul li { list-style: none; background-color: #f3f3f3; padding: 10px 20px; border-radius: 9px; cursor: pointer; -webkit-transition: 0.25s all ease-in-out; transition: 0.25s all ease-in-out; } body #videoToolBox .container .tabs ul li:hover { background-color: #e2e2e2; } body #videoToolBox .container .tabs ul .active { color: white; background-color: #0a8dfd !important; -webkit-box-shadow: 2px 2px 7px 1px #0a8dfd99; box-shadow: 2px 2px 7px 1px #0a8dfd99; } body #videoToolBox .container .types { width: 100%; min-height: 300px; -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; overflow-y: scroll; } body #videoToolBox .container .types .part .partTitle { color: #000; font-weight: 600; font-size: 20px; padding-bottom: 10px; } body #videoToolBox .container .types .part ul { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-wrap: wrap; flex-wrap: wrap; font-size: 15px; padding-bottom: 5px; } body #videoToolBox .container .types .part ul li { list-style: none; padding: 5px 9px; background-color: #dbdbdb; margin: 0 6px 6px 0; border-radius: 6px; color: #000; -webkit-transition: 0.25s all ease-in-out; transition: 0.25s all ease-in-out; cursor: pointer; } body #videoToolBox .container .types .part ul li a { text-decoration: none; color: #000; } body #videoToolBox .container .types .part ul li:hover { color: #fff; background-color: #0a8dfd; } body #videoToolBox .container .types .part ul li:hover a { color: #fff; } body #videoToolBox .container .types .more .about { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } body #videoToolBox .container .types .more .about .title { font-size: 20px; margin-bottom: 15px; } body #videoToolBox .container .types .more .about .title strong { color: #ffb74a; } body #videoToolBox .container .types .more .about .content .qr { float: left; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; margin-right: 10px; } body #videoToolBox .container .types .more .about .content .qr img { width: 200px; height: 200px; margin-bottom: 5px; } body #videoToolBox .container .types .more .about .content .qr p { text-align: center; font-size: 13px; color: #fff; font-weight: 600; background-color: #ffb74a; padding: 2px 0; border-radius: 5px; } body #videoToolBox .container .types .more .about .content .info p { font-size: 17px; line-height: 25px; padding-bottom: 5px; } body #videoToolBox .container .types .more .about .content .thanks { color: #757575; clear: both; font-size: 15px; text-align: center; margin-top: 20px; } body #videoToolBox .container .types .more .about .content .thanks a { text-decoration: none; color: #0a8dfd; }`
  94. );
  95. let html = $(
  96. `<div id="sideBtn"> <svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200" > <path d="M938.667 512.213c0 235.051-191.488 426.454-426.667 426.454S85.333 747.264 85.333 512.213c0-235.477 191.488-426.88 426.667-426.88s426.667 191.403 426.667 426.88z" fill="#9ec4f4" opacity=".9" /> <path d="M682.667 512.213c0 10.795-3.414 21.59-10.198 30.294-1.28 1.706-7.21 8.704-11.861 13.226l-2.56 2.518c-35.627 37.76-124.288 94.592-169.259 112.81 0 .427-26.752 11.222-39.466 11.606h-1.707c-19.499 0-37.717-10.752-47.061-28.16-5.12-9.6-9.771-37.376-10.198-37.76-3.84-24.918-6.357-63.062-6.357-104.96 0-43.947 2.56-83.755 7.21-108.246 0-.426 4.694-22.826 7.638-30.293 4.693-10.71 13.141-19.883 23.765-25.685 8.491-4.096 17.408-6.23 26.71-6.23 9.77.427 27.989 6.656 35.2 9.558 47.53 18.218 138.325 77.952 173.098 114.432 5.974 5.802 12.331 12.928 14.038 14.506 7.168 9.131 11.008 20.352 11.008 32.384z" fill="#0a8dfd" /> </svg> </div> <div id="videoToolBox" style="display: none"> <div class="container"> <div class="close"> <svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200" > <path d="M805.12 868.48c-8.32 0-16.64-3.2-22.4-9.6L572.16 648.32c-12.8-12.8-12.8-32.64 0-45.44s32.64-12.8 45.44 0l210.56 210.56c12.8 12.8 12.8 32.64 0 45.44-6.4 6.4-14.72 9.6-23.04 9.6zM513.28 576c-8.32 0-16.64-3.2-22.4-9.6L201.6 277.76c-12.8-12.8-12.8-32.64 0-45.44s32.64-12.8 45.44 0L536.32 521.6c12.8 12.8 12.8 32.64 0 45.44-6.4 5.76-14.72 8.96-23.04 8.96z" fill="#515151" /> <path d="M224 868.48c-8.32 0-16.64-3.2-22.4-9.6-12.8-12.8-12.8-32.64 0-45.44l581.76-581.76c12.8-12.8 32.64-12.8 45.44 0s12.8 32.64 0 45.44L247.04 858.88c-7.04 6.4-14.72 9.6-23.04 9.6z" fill="#515151" /> </svg> </div> <div class="tabs"> <ul> <li class="active">解析端口</li> <li>在线电视</li> <li>更多帮助</li> </ul> </div> <div class="types"> <div class="interface" style="display: block"> <div class="part embed"> <div class="partTitle">内嵌播放</div> <ul></ul> </div> <!-- <div class="part external"> <div class="partTitle">弹窗播放</div> <ul></ul> </div> --> </div> <div class="onlineTv" style="display: none"> <div class="part hd"> <div class="partTitle">高清直播</div> <ul></ul> </div> <div class="part sd"> <div class="partTitle">标清直播</div> <ul></ul> </div> </div> <div class="more" style="display: none"> <div class="about"> <div class="title"> 此脚本由<strong>轻梦</strong>公众号制作并维护 </div> <div class="content"> <div class="qr"> <img src="https://gitee.com/opoet/md-nice-pic/raw/master/2021-1-19/1611050462976-XONqlQGC5oYTyWu.png" alt="微信搜索“轻梦”" /> <p>求老爷们的关注呀 ( •̀ ω •́ )✧</p> </div> <div class="info"> <p> 这个脚本是我放假在家在利用空闲时间编写的,其中部分代码来自于原有脚本,我对其魔改以及重写UI,解析接口均来自于网络,感谢大家的使用。 </p> <p> 如果您对这个脚本感兴趣的话,不妨关注我,您的关注对我来说是莫大的鼓励~ </p> <p> 微信扫一扫关注我,获取使用指南和最新版本和功能,反馈问题,获取最新开发动向。我可不止这点能耐,每天都会分享免费实用工具哦~ </p> </div> <div class="thanks"> 鸣谢原作者 <a target="_blank" href="https://greasyfork.org/zh-CN/users/466206-die-wang" >die wang</a > </div> </div> </div> </div> </div> </div> </div>`
  97. );
  98. $("body").append(html);
  99. $("#sideBtn").click(() => {
  100. $("#videoToolBox").css("display") == "none"
  101. ? $("#videoToolBox").show()
  102. : $("#videoToolBox").hide();
  103. });
  104. $("#videoToolBox .container .close").click(() => {
  105. $("#videoToolBox").hide();
  106. });
  107. $(".tabs ul li").click(function () {
  108. $(".tabs ul li")
  109. .eq($(this).index())
  110. .addClass("active")
  111. .siblings()
  112. .removeClass("active");
  113. $(".types > div").eq($(this).index()).show().siblings().hide();
  114. });
  115.  
  116. let channel = [
  117. {
  118. type: 0,
  119. name: "CCTV-1",
  120. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv1hd",
  121. },
  122. {
  123. type: 0,
  124. name: "CCTV-2",
  125. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv2hd",
  126. },
  127. {
  128. type: 0,
  129. name: "CCTV-3",
  130. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv3hd",
  131. },
  132. {
  133. type: 0,
  134. name: "CCTV-4",
  135. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv4hd",
  136. },
  137. {
  138. type: 0,
  139. name: "CCTV-5",
  140. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv5hd",
  141. },
  142. {
  143. type: 0,
  144. name: "CCTV-6",
  145. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv6hd",
  146. },
  147. {
  148. type: 0,
  149. name: "CCTV-7",
  150. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv7hd",
  151. },
  152. {
  153. type: 0,
  154. name: "CCTV-8",
  155. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv8hd",
  156. },
  157. {
  158. type: 0,
  159. name: "CCTV-9",
  160. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv9hd",
  161. },
  162. {
  163. type: 0,
  164. name: "CCTV-10",
  165. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv10hd",
  166. },
  167. {
  168. type: 0,
  169. name: "CCTV-12",
  170. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv12hd",
  171. },
  172. {
  173. type: 0,
  174. name: "CCTV-14",
  175. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv14hd",
  176. },
  177. {
  178. type: 0,
  179. name: "CCTV-17",
  180. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv17hd",
  181. },
  182. {
  183. type: 0,
  184. name: "北京卫视",
  185. url: "http://ivi.bupt.edu.cn/player.html?channel=btv1hd",
  186. },
  187. {
  188. type: 0,
  189. name: "北京文艺",
  190. url: "http://ivi.bupt.edu.cn/player.html?channel=btv2hd",
  191. },
  192. {
  193. type: 0,
  194. name: "北京影视",
  195. url: "http://ivi.bupt.edu.cn/player.html?channel=btv4hd",
  196. },
  197. {
  198. type: 0,
  199. name: "北京新闻",
  200. url: "http://ivi.bupt.edu.cn/player.html?channel=btv9hd",
  201. },
  202. {
  203. type: 0,
  204. name: "北京冬奥",
  205. url: "http://ivi.bupt.edu.cn/player.html?channel=btv11hd",
  206. },
  207. {
  208. type: 0,
  209. name: "湖南卫视",
  210. url: "http://ivi.bupt.edu.cn/player.html?channel=hunanhd",
  211. },
  212. {
  213. type: 0,
  214. name: "浙江卫视",
  215. url: "http://ivi.bupt.edu.cn/player.html?channel=zjhd",
  216. },
  217. {
  218. type: 0,
  219. name: "江苏卫视",
  220. url: "http://ivi.bupt.edu.cn/player.html?channel=jshd",
  221. },
  222. {
  223. type: 0,
  224. name: "东方卫视",
  225. url: "http://ivi.bupt.edu.cn/player.html?channel=dfhd",
  226. },
  227. {
  228. type: 0,
  229. name: "安徽卫视",
  230. url: "http://ivi.bupt.edu.cn/player.html?channel=ahhd",
  231. },
  232. {
  233. type: 0,
  234. name: "黑龙江卫视",
  235. url: "http://ivi.bupt.edu.cn/player.html?channel=hljhd",
  236. },
  237. {
  238. type: 0,
  239. name: "辽宁卫视",
  240. url: "http://ivi.bupt.edu.cn/player.html?channel=lnhd",
  241. },
  242. {
  243. type: 0,
  244. name: "深圳卫视",
  245. url: "http://ivi.bupt.edu.cn/player.html?channel=szhd",
  246. },
  247. {
  248. type: 0,
  249. name: "广东卫视",
  250. url: "http://ivi.bupt.edu.cn/player.html?channel=gdhd",
  251. },
  252. {
  253. type: 0,
  254. name: "天津卫视",
  255. url: "http://ivi.bupt.edu.cn/player.html?channel=tjhd",
  256. },
  257. {
  258. type: 0,
  259. name: "湖北卫视",
  260. url: "http://ivi.bupt.edu.cn/player.html?channel=hbhd",
  261. },
  262. {
  263. type: 0,
  264. name: "山东卫视",
  265. url: "http://ivi.bupt.edu.cn/player.html?channel=sdhd",
  266. },
  267. {
  268. type: 0,
  269. name: "重庆卫视",
  270. url: "http://ivi.bupt.edu.cn/player.html?channel=cqhd",
  271. },
  272. {
  273. type: 0,
  274. name: "福建东南",
  275. url: "http://ivi.bupt.edu.cn/player.html?channel=dnhd",
  276. },
  277. {
  278. type: 0,
  279. name: "四川卫视",
  280. url: "http://ivi.bupt.edu.cn/player.html?channel=schd",
  281. },
  282. {
  283. type: 0,
  284. name: "河北卫视",
  285. url: "http://ivi.bupt.edu.cn/player.html?channel=hbhd",
  286. },
  287. {
  288. type: 0,
  289. name: "江西卫视",
  290. url: "http://ivi.bupt.edu.cn/player.html?channel=jxhd",
  291. },
  292. {
  293. type: 0,
  294. name: "河南卫视",
  295. url: "http://ivi.bupt.edu.cn/player.html?channel=hnhd",
  296. },
  297. {
  298. type: 0,
  299. name: "广西卫视",
  300. url: "http://ivi.bupt.edu.cn/player.html?channel=gxhd",
  301. },
  302. {
  303. type: 0,
  304. name: "吉林卫视",
  305. url: "http://ivi.bupt.edu.cn/player.html?channel=jlhd",
  306. },
  307. {
  308. type: 0,
  309. name: "海南卫视",
  310. url: "http://ivi.bupt.edu.cn/player.html?channel=lyhd",
  311. },
  312. {
  313. type: 0,
  314. name: "贵州卫视",
  315. url: "http://ivi.bupt.edu.cn/player.html?channel=gzhd",
  316. },
  317. {
  318. type: 1,
  319. name: "CCTV-1综合",
  320. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv1",
  321. },
  322. {
  323. type: 1,
  324. name: "CCTV-2财经",
  325. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv2",
  326. },
  327. {
  328. type: 1,
  329. name: "CCTV-3综艺",
  330. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv3",
  331. },
  332. {
  333. type: 1,
  334. name: "CCTV-4国际",
  335. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv4",
  336. },
  337. {
  338. type: 1,
  339. name: "CCTV-6电影",
  340. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv6",
  341. },
  342. {
  343. type: 1,
  344. name: "CCTV-7军事",
  345. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv7",
  346. },
  347. {
  348. type: 1,
  349. name: "CCTV-8电视剧",
  350. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv8",
  351. },
  352. {
  353. type: 1,
  354. name: "CCTV-9纪录",
  355. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv9",
  356. },
  357. {
  358. type: 1,
  359. name: "CCTV-10科教",
  360. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv10",
  361. },
  362. {
  363. type: 1,
  364. name: "CCTV-11戏曲",
  365. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv11",
  366. },
  367. {
  368. type: 1,
  369. name: "CCTV-12社会",
  370. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv12",
  371. },
  372. {
  373. type: 1,
  374. name: "CCTV-13新闻",
  375. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv13",
  376. },
  377. {
  378. type: 1,
  379. name: "CCTV-14少儿",
  380. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv14",
  381. },
  382. {
  383. type: 1,
  384. name: "CCTV-15音乐",
  385. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv15",
  386. },
  387. {
  388. type: 1,
  389. name: "CGTN",
  390. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv16",
  391. },
  392. {
  393. type: 1,
  394. name: "CCTV-17农业",
  395. url: "http://ivi.bupt.edu.cn/player.html?channel=cctv17",
  396. },
  397. {
  398. type: 1,
  399. name: "北京卫视",
  400. url: "http://ivi.bupt.edu.cn/player.html?channel=btv1",
  401. },
  402. {
  403. type: 1,
  404. name: "北京文艺",
  405. url: "http://ivi.bupt.edu.cn/player.html?channel=btv2",
  406. },
  407. {
  408. type: 1,
  409. name: "北京科教",
  410. url: "http://ivi.bupt.edu.cn/player.html?channel=btv3",
  411. },
  412. {
  413. type: 1,
  414. name: "北京影视",
  415. url: "http://ivi.bupt.edu.cn/player.html?channel=btv4",
  416. },
  417. {
  418. type: 1,
  419. name: "北京财经",
  420. url: "http://ivi.bupt.edu.cn/player.html?channel=btv5",
  421. },
  422. {
  423. type: 1,
  424. name: "北京生活",
  425. url: "http://ivi.bupt.edu.cn/player.html?channel=btv7",
  426. },
  427. {
  428. type: 1,
  429. name: "北京青年",
  430. url: "http://ivi.bupt.edu.cn/player.html?channel=btv8",
  431. },
  432. {
  433. type: 1,
  434. name: "北京新闻",
  435. url: "http://ivi.bupt.edu.cn/player.html?channel=btv9",
  436. },
  437. {
  438. type: 1,
  439. name: "北京卡酷少儿",
  440. url: "http://ivi.bupt.edu.cn/player.html?channel=btv10",
  441. },
  442. {
  443. type: 1,
  444. name: "北京冬奥纪实",
  445. url: "http://ivi.bupt.edu.cn/player.html?channel=btv11",
  446. },
  447. {
  448. type: 1,
  449. name: "浙江卫视",
  450. url: "http://ivi.bupt.edu.cn/player.html?channel=zjtv",
  451. },
  452. {
  453. type: 1,
  454. name: "湖南卫视",
  455. url: "http://ivi.bupt.edu.cn/player.html?channel=hunantv",
  456. },
  457. {
  458. type: 1,
  459. name: "江苏卫视",
  460. url: "http://ivi.bupt.edu.cn/player.html?channel=jstv",
  461. },
  462. {
  463. type: 1,
  464. name: "东方卫视",
  465. url: "http://ivi.bupt.edu.cn/player.html?channel=dftv",
  466. },
  467. {
  468. type: 1,
  469. name: "深圳卫视",
  470. url: "http://ivi.bupt.edu.cn/player.html?channel=sztv",
  471. },
  472. {
  473. type: 1,
  474. name: "安徽卫视",
  475. url: "http://ivi.bupt.edu.cn/player.html?channel=ahtv",
  476. },
  477. {
  478. type: 1,
  479. name: "河南卫视",
  480. url: "http://ivi.bupt.edu.cn/player.html?channel=hntv",
  481. },
  482. {
  483. type: 1,
  484. name: "陕西卫视",
  485. url: "http://ivi.bupt.edu.cn/player.html?channel=sxtv",
  486. },
  487. {
  488. type: 1,
  489. name: "吉林卫视",
  490. url: "http://ivi.bupt.edu.cn/player.html?channel=jltv",
  491. },
  492. {
  493. type: 1,
  494. name: "广东卫视",
  495. url: "http://ivi.bupt.edu.cn/player.html?channel=gdtv",
  496. },
  497. {
  498. type: 1,
  499. name: "山东卫视",
  500. url: "http://ivi.bupt.edu.cn/player.html?channel=sdtv",
  501. },
  502. {
  503. type: 1,
  504. name: "湖北卫视",
  505. url: "http://ivi.bupt.edu.cn/player.html?channel=hbtv",
  506. },
  507. {
  508. type: 1,
  509. name: "河北卫视",
  510. url: "http://ivi.bupt.edu.cn/player.html?channel=hebtv",
  511. },
  512. {
  513. type: 1,
  514. name: "西藏卫视",
  515. url: "http://ivi.bupt.edu.cn/player.html?channel=xztv",
  516. },
  517. {
  518. type: 1,
  519. name: "内蒙古卫视",
  520. url: "http://ivi.bupt.edu.cn/player.html?channel=nmtv",
  521. },
  522. {
  523. type: 1,
  524. name: "青海卫视",
  525. url: "http://ivi.bupt.edu.cn/player.html?channel=qhtv",
  526. },
  527. {
  528. type: 1,
  529. name: "四川卫视",
  530. url: "http://ivi.bupt.edu.cn/player.html?channel=sctv",
  531. },
  532. {
  533. type: 1,
  534. name: "天津卫视",
  535. url: "http://ivi.bupt.edu.cn/player.html?channel=tjtv",
  536. },
  537. {
  538. type: 1,
  539. name: "山西卫视",
  540. url: "http://ivi.bupt.edu.cn/player.html?channel=sxrtv",
  541. },
  542. {
  543. type: 1,
  544. name: "辽宁卫视",
  545. url: "http://ivi.bupt.edu.cn/player.html?channel=lntv",
  546. },
  547. {
  548. type: 1,
  549. name: "厦门卫视",
  550. url: "http://ivi.bupt.edu.cn/player.html?channel=xmtv",
  551. },
  552. {
  553. type: 1,
  554. name: "新疆卫视",
  555. url: "http://ivi.bupt.edu.cn/player.html?channel=xjtv",
  556. },
  557. {
  558. type: 1,
  559. name: "黑龙江卫视",
  560. url: "http://ivi.bupt.edu.cn/player.html?channel=hljtv",
  561. },
  562. {
  563. type: 1,
  564. name: "云南卫视",
  565. url: "http://ivi.bupt.edu.cn/player.html?channel=yntv",
  566. },
  567. {
  568. type: 1,
  569. name: "江西卫视",
  570. url: "http://ivi.bupt.edu.cn/player.html?channel=jxtv",
  571. },
  572. {
  573. type: 1,
  574. name: "福建东南卫视",
  575. url: "http://ivi.bupt.edu.cn/player.html?channel=dntv",
  576. },
  577. {
  578. type: 1,
  579. name: "贵州卫视",
  580. url: "http://ivi.bupt.edu.cn/player.html?channel=gztv",
  581. },
  582. {
  583. type: 1,
  584. name: "宁夏卫视",
  585. url: "http://ivi.bupt.edu.cn/player.html?channel=nxtv",
  586. },
  587. {
  588. type: 1,
  589. name: "甘肃卫视",
  590. url: "http://ivi.bupt.edu.cn/player.html?channel=gstv",
  591. },
  592. {
  593. type: 1,
  594. name: "重庆卫视",
  595. url: "http://ivi.bupt.edu.cn/player.html?channel=cqtv",
  596. },
  597. {
  598. type: 1,
  599. name: "兵团卫视",
  600. url: "http://ivi.bupt.edu.cn/player.html?channel=bttv",
  601. },
  602. {
  603. type: 1,
  604. name: "延边卫视",
  605. url: "http://ivi.bupt.edu.cn/player.html?channel=ybtv",
  606. },
  607. {
  608. type: 1,
  609. name: "三沙卫视",
  610. url: "http://ivi.bupt.edu.cn/player.html?channel=sstv",
  611. },
  612. {
  613. type: 1,
  614. name: "海南卫视",
  615. url: "http://ivi.bupt.edu.cn/player.html?channel=lytv",
  616. },
  617. {
  618. type: 1,
  619. name: "山东教育",
  620. url: "http://ivi.bupt.edu.cn/player.html?channel=sdetv",
  621. },
  622. {
  623. type: 1,
  624. name: "CETV-1",
  625. url: "http://ivi.bupt.edu.cn/player.html?channel=cetv1",
  626. },
  627. {
  628. type: 1,
  629. name: "CETV-3",
  630. url: "http://ivi.bupt.edu.cn/player.html?channel=cetv3",
  631. },
  632. {
  633. type: 1,
  634. name: "CETV-4",
  635. url: "http://ivi.bupt.edu.cn/player.html?channel=cetv4",
  636. },
  637. ];
  638.  
  639. for (let item of channel) {
  640. item.type
  641. ? $(".onlineTv .part.sd ul").append(
  642. `<li><a target="_blank" href = ${item.url}>${item.name}</a></li>`
  643. )
  644. : $(".onlineTv .part.hd ul").append(
  645. `<li><a target="_blank" href = ${item.url}>${item.name}</a></li>`
  646. );
  647. }
  648. for (let item of $(".onlineTv .part ul li")) {
  649. item.addEventListener("click", () => {
  650. $("#videoToolBox").hide();
  651. });
  652. }
  653.  
  654. let interfaceList = [
  655. { name: "纯净线路", url: "https://z1.m1907.cn/?jx=" },
  656. { name: "B站", url: "https://vip.parwix.com:4433/player/?url=" },
  657. { name: "B站2", url: "https://jx.yingxiangbao.cn/vip.php?url=" },
  658. { name: "B站3", url: "https://vip.52jiexi.top/?url=" },
  659. { name: "B站4", url: "https://jx.yparse.com/index.php?url=" },
  660. { name: "B站5", url: "https://jx.116kan.com/?url=" },
  661. { name: "B站7", url: "https://www.cuan.la/m3u8.php?url=" },
  662. { name: "bl解析", url: "https://vip.bljiex.com/?v=" },
  663. { name: "冰豆", url: "https://api.bingdou.net/?url=" },
  664. { name: "八八", url: "https://vip.88jiexi.com/?url=" },
  665. { name: "爸比云", url: "http://jx.1ff1.cn/?url=" },
  666. { name: "百域", url: "https://jx.618g.com/?url=" },
  667. { name: "clouse6", url: "http://jx.clousx6.cn/player/?url=" },
  668. { name: "ckmov", url: "https://www.ckmov.vip/api.php?url=" },
  669. { name: "大幕", url: "https://jx.52damu.com/dmjx/jiexi.php?url=" },
  670. { name: "二度1", url: "https://jx.du2.cc/?url=" },
  671. { name: "二度2", url: "http://jx.drgxj.com/?url=" },
  672. { name: "福星", url: "https://jx.popo520.cn/jiexi/?url=" },
  673. { name: "跟剧", url: "https://www.5igen.com/dmplayer/player/?url=" },
  674. { name: "ha12", url: "https://py.ha12.xyz/sos/index.php?url=" },
  675. { name: "Hk", url: "https://jx.rdhk.net/?v=" },
  676. { name: "H8", url: "https://www.h8jx.com/jiexi.php?url=" },
  677. { name: "豪华啦", url: "https://api.lhh.la/vip/?url=" },
  678. { name: "黑米", url: "https://www.myxin.top/jx/api/?url=" },
  679. { name: "黑云", url: "https://jiexi.380k.com/?url=" },
  680. { name: "蝴蝶", url: "https://api.hdworking.top/?url=" },
  681. { name: "IDC", url: "https://jx.idc126.net/jx/?url=" },
  682. { name: "IK解析", url: "https://vip.ikjiexi.top/?url=" },
  683. { name: "久播(明日)", url: "https://jx.jiubojx.com/vip.php?url=" },
  684. { name: "九八看", url: "https://jx.youyitv.com/?url=" },
  685. { name: "凉城", url: "https://jx.mw0.cc/?url=" },
  686. { name: "蓝影", url: "http://huiwanka.xyz/jx/?url=" },
  687. { name: "流氓凡", url: "https://jx.wslmf.com/?url=" },
  688. { name: "m3u8", url: "https://jx.m3u8.tv/jiexi/?url=" },
  689. { name: "m3u8tv", url: "https://jiexi.janan.net/jiexi/?url=" },
  690. { name: "Mao", url: "https://titan.mgtv.com.kunlanys.com/m3u8.php?url=" },
  691. { name: "磨菇", url: "https://jx.wzslw.cn/?url=" },
  692. { name: "诺诺", url: "https://www.ckmov.com/?url=" },
  693. { name: "诺讯", url: "https://www.nxflv.com/?url=" },
  694. { name: "OK", url: "https://okjx.cc/?url=" },
  695. { name: "千忆", url: "https://v.qianyicp.com/v.php?url=" },
  696. { name: "千叶", url: "https://yi29f.cn/vip.php?url=" },
  697. { name: "思云", url: "https://jx.ap2p.cn/?url=" },
  698. { name: "思古1", url: "https://api.sigujx.com/?url=" },
  699. { name: "思古2", url: "https://jx.quanmingjiexi.com/?url=" },
  700. { name: "思古3", url: "https://api.bbbbbb.me/jx/?url=" },
  701. { name: "思古4", url: "https://jsap.attakids.com/?url=" },
  702. { name: "tv920", url: "https://api.tv920.com/vip/?url=" },
  703. { name: "通用", url: "https://jx.598110.com/index.php?url=" },
  704. { name: "维多", url: "https://jx.ivito.cn/?url=" },
  705. { name: "无名", url: "https://www.administratorw.com/video.php?url=" },
  706. { name: "xx", url: "https://chkkk.top/jiexi/ys?url=" },
  707. { name: "小蒋极致", url: "https://www.kpezp.cn/jlexi.php?url=" },
  708. { name: "小狼", url: "https://jx.yaohuaxuan.com/?url=" },
  709. { name: "新线路", url: "https://vip.kurumit3.top/?v=" },
  710. { name: "星驰", url: "https://vip.cjys.top/?url=" },
  711. { name: "星空", url: "https://jx.fo97.cn/?url=" },
  712. { name: "云端", url: "https://jx.ergan.top/?url=" },
  713. { name: "17云", url: "https://www.1717yun.com/jx/ty.php?url=" },
  714. { name: "33t", url: "https://www.33tn.cn/?url=" },
  715. { name: "41", url: "https://jx.f41.cc/?url=" },
  716. { name: "180", url: "https://jx.000180.top/jx/?url=" },
  717. { name: "200", url: "https://vip.66parse.club/?url=" },
  718. { name: "973", url: "https://jx.973973.xyz/?url=" },
  719. { name: "8090", url: "https://www.8090g.cn/?url=" },
  720. { name: "41478", url: "https://www.41478.net/?url=" },
  721. ];
  722.  
  723. for (let item of interfaceList) {
  724. $(".interface .part.embed ul").append(`<li>${item.name}</li>`);
  725. }
  726.  
  727. $(".interface .part.embed ul li").each((index, item) => {
  728. item.addEventListener("click", () => {
  729. if (document.getElementById("iframe-player") == null) {
  730. let player = $(node);
  731. player.empty();
  732. player.append(videoPlayer);
  733. }
  734. innerParse(interfaceList[index].url + location.href);
  735. $("#videoToolBox").hide();
  736. });
  737. });
  738. // $(".interface .part.external ul li").each((index, item) => {
  739. // item.addEventListener("click", () => {
  740. // GMopenInTab(parseInterface[index].url + location.href, false);
  741. // $("#videoToolBox").hide();
  742. // });
  743. // });
  744. // -----------------------
  745. let acfun = () => {
  746. let ele,
  747. content = "",
  748. videolist = [];
  749. videolist = JSON.parse(videoInfo.currentVideoInfo.ksPlayJson)
  750. .adaptationSet[0].representation;
  751. if (videolist.length > 0 && $("div#dlList").length == 0) {
  752. for (let item of videolist) {
  753. content += `<li style=" list-style: none; display: -webkit-box; display: -ms-flexbox; display: flex; margin-bottom: 15px; font-size: 15px; -webkit-box-align: center; -ms-flex-align: center; align-items: center; " > <div style="width: 75px">${item.qualityLabel}</div> <input style=" -webkit-box-flex: 1; -ms-flex-positive: 1; flex-grow: 1; border: none; background-color: #f0f0f0; border-radius: 5px; outline: none; padding: 5px 10px; color: #1875f0; " type="text" class="acdlLink" value="${item.url}" /> </li>`;
  754. }
  755. ele = `<div id="dlList" style=" background-color: #fff; border-radius: 15px; -webkit-box-shadow: 0px 1px 15px 5px #f0f0f0; box-shadow: 0px 1px 15px 5px #f0f0f0; padding: 20px; margin-bottom: 25px; " > <div style=" display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; font-size: 20px; font-weight: 600; margin-bottom: 20px; " > <svg style="height: 25px; width: 25px; margin-right: 5px" class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="200" height="200" > <path d="M896 576c-17.7 0-32 14.3-32 32v137.8c0 22.9-9 44.5-25.3 60.8s-38 25.4-60.9 25.4H246.2c-22.9 0-44.5-9-60.8-25.3-16.4-16.4-25.4-38-25.4-60.9V608c0-17.7-14.3-32-32-32s-32 14.3-32 32v137.8C96 828.6 163.4 896 246.2 896h531.7c82.8 0 150.2-67.4 150.2-150.2V608c-.1-17.7-14.4-32-32.1-32z" fill="#1875F0" /> <path d="M489.4 662.6c12.5 12.5 32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L544 562.7V160c0-17.6-14.4-32-32-32s-32 14.4-32 32v402.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0-6.2 6.2-9.4 14.4-9.4 22.6s3.1 16.4 9.4 22.6l112.1 112.1z" fill="#1875F0" /></svg >视频下载 </div> <ul style="width: 100%">${content} </ul> </div>`;
  756. }
  757. $("h1.title").after(ele);
  758. $("#dlList ul li").click(function () {
  759. let value = $("#dlList .acdlLink")[$(this).index()];
  760. value.select();
  761. document.execCommand("copy");
  762. });
  763. };
  764. let bilibili = () => {
  765. let ele;
  766. ele = `<span id="dlbtn" style="cursor: pointer; height: 25px; width: 25px; position: absolute; top: 50%; transform: translateY(-75%); margin-left: 20px;"><svg style="height:25px;width:25px" class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-spm-anchor-id="a313x.7781069.0.i10" width="200" height="200"><path d="M160 32c-12 0-24.8 4.8-33.6 14.4S112 68 112 80v864c0 12 4.8 24.8 14.4 33.6C136 987.2 148 992 160 992h704c12 0 24.8-4.8 33.6-14.4C907.2 968 912 956 912 944V304L640 32H160z" fill="#00a1d6" data-spm-anchor-id="a313x.7781069.0.i8"/><path d="M912 304H688c-12 0-24.8-4.8-33.6-14.4-9.6-8.8-14.4-21.6-14.4-33.6V32l272 272z" fill="#69d3f6" data-spm-anchor-id="a313x.7781069.0.i9"/><path d="M500.8 684.8c3.2 2.4 6.4 4.8 11.2 4.8 4 0 8-1.6 11.2-4.8l142.4-136c2.4-2.4 3.2-5.6 1.6-8.8-1.6-3.2-4-4.8-7.2-4.8h-84v-136c0-4-1.6-8-4.8-11.2-3.2-3.2-7.2-4.8-11.2-4.8h-96c-4 0-8 1.6-11.2 4.8-3.2 3.2-4.8 7.2-4.8 11.2v136h-84c-3.2 0-6.4 1.6-7.2 4.8-1.6 3.2 0 6.4 1.6 8.8l142.4 136zM712 751.2H312c-8.8 0-16 7.2-16 16s7.2 16 16 16h400c8.8 0 16-7.2 16-16s-7.2-16-16-16z" fill="#fff" data-spm-anchor-id="a313x.7781069.0.i2"/></svg></span>`;
  767. setTimeout(() => {
  768. $("#arc_toolbar_report .ops").append(ele);
  769. $("#dlbtn").click(function () {
  770. let patt1 = new RegExp("(BV|av)[a-zA-Z0-9]*");
  771. let bvid = patt1.exec(window.location.href);
  772. let tempwindow = window.open("_blank");
  773. tempwindow.location =
  774. "https://xbeibeix.com/api/bilibili/?monkey=" + bvid[0];
  775. });
  776. }, 5000);
  777. };
  778.  
  779. let reg_bili = /www.bilibili.com\/video.*/;
  780. let reg_acfun = /www.acfun.cn\/v\/.*/;
  781. window.onload = function () {
  782. if (reg_bili.test(localurl)) {
  783. bilibili();
  784. } else if (reg_acfun.test(localurl)) {
  785. acfun();
  786. }
  787. };
  788.  
  789. switch (host) {
  790. case "www.iqiyi.com":
  791. //--------------------------------------------------------------------------------
  792. unsafeWindow.rate = 0;
  793. unsafeWindow.Date.now = () => {
  794. return new unsafeWindow.Date().getTime() + (unsafeWindow.rate += 1000);
  795. };
  796. setInterval(() => {
  797. unsafeWindow.rate = 0;
  798. }, 600000);
  799. //--------------------------------------------------------------------------------
  800. setInterval(() => {
  801. if (document.getElementsByClassName("cupid-public-time")[0] != null) {
  802. $(".skippable-after").css("display", "block");
  803. document.getElementsByClassName("skippable-after")[0].click();
  804. }
  805. $(".qy-player-vippay-popup").css("display", "none");
  806. $(".black-screen").css("display", "none");
  807. }, 500);
  808. break;
  809. case "v.qq.com":
  810. //--------------------------------------------------------------------------------
  811. setInterval(() => {
  812. //视频广告加速
  813. $(".txp_ad").find("txpdiv").find("video")[0].currentTime = 1000;
  814. $(".txp_ad").find("txpdiv").find("video")[1].currentTime = 1000;
  815. }, 1000);
  816. //--------------------------------------------------------------------------------
  817. setInterval(() => {
  818. let txp_btn_volume = $(".txp_btn_volume");
  819. if (txp_btn_volume.attr("data-status") === "mute") {
  820. $(".txp_popup_volume").css("display", "block");
  821. txp_btn_volume.click();
  822. $(".txp_popup_volume").css("display", "none");
  823. }
  824. //$("txpdiv[data-role='hd-ad-adapter-adlayer']").attr("class", "txp_none");
  825. $(".mod_vip_popup").css("display", "none");
  826. $(".tvip_layer").css("display", "none");
  827. $("#mask_layer").css("display", "none");
  828. }, 500);
  829. break;
  830. case "v.youku.com":
  831. //--------------------------------------------------------------------------------
  832. window.onload = function () {
  833. if (!document.querySelectorAll("video")[0]) {
  834. setInterval(() => {
  835. document.querySelectorAll("video")[1].playbackRate = 16;
  836. }, 100);
  837. }
  838. };
  839. //--------------------------------------------------------------------------------
  840. setInterval(() => {
  841. let H5 = $(".h5-ext-layer").find("div");
  842. if (H5.length != 0) {
  843. $(".h5-ext-layer div").remove();
  844. let control_btn_play = $(".control-left-grid .control-play-icon");
  845. if (control_btn_play.attr("data-tip") === "播放") {
  846. $(".h5player-dashboard").css("display", "block");
  847. control_btn_play.click();
  848. $(".h5player-dashboard").css("display", "none");
  849. }
  850. }
  851. $(".information-tips").css("display", "none");
  852. }, 500);
  853. break;
  854. case "www.mgtv.com":
  855. break;
  856. case "tv.sohu.com":
  857. setInterval(() => {
  858. $(".x-video-adv").css("display", "none");
  859. $(".x-player-mask").css("display", "none");
  860. $("#player_vipTips").css("display", "none");
  861. }, 500);
  862. break;
  863. case "www.bilibili.com":
  864. setInterval(() => {
  865. $(".player-limit-mask").remove();
  866. }, 500);
  867. break;
  868. case "xbeibeix.com":
  869. setInterval(() => {
  870. $("#boxs").remove(".adsbygoogle");
  871. $("#text-box").remove();
  872. $("#aswift_1_expand").remove();
  873. $(".adsbygoogle").remove();
  874. $("#accordionExample").remove();
  875. $("#text1").remove();
  876. $("#button").remove();
  877. $(".basic-addon1").remove();
  878. $("#text2").remove();
  879. $("#exampleModal").remove();
  880. $(".alert").remove();
  881. $(".button-1").remove();
  882. $(".row").attr("id", "ccc");
  883. $(".clearfix").attr("id", "aaa");
  884. $("#aaa").find("#button-1").attr("id", "bbb");
  885. $("#bbb").css("background-color", "#D0104C");
  886. let con = "请点击解析视频";
  887. $("#bbb").text(con);
  888. $("#ccc").remove();
  889. $("#basic").attr("id", "eee");
  890. $("#addon1").attr("id", "ggg");
  891. //$("#basic-addon1").remove();
  892. }, 500);
  893. break;
  894. }
  895. })();