Play web-With-MPV

使用 mpv 播放网页端的视频,同时支持potolayer

  1. // ==UserScript==
  2. // @name Play web-With-MPV
  3. // @name:en-US Play web-with MPV
  4. // @name:zh 使用 MPV 播放网页端视频
  5. // @namespace https://github.com/hkiceflow
  6. // @version 1.0.1
  7. // @author hkiceflow
  8. // @copyright Grant hkiceflow (https://github.com/hkiceflow)
  9. // @license MIT
  10. // @description 使用 mpv 播放网页端的视频,同时支持potolayer
  11. // @homepage https://github.com/hkiceflow/mpv_video
  12. // @icon https://github.com/hkiceflow/tuchuang_mpv/blob/master/img/mpv.png
  13. // @match https://www.bilibili.com/bangumi/play/*
  14. // @match https://www.bilibili.com/video/*
  15. // @match https://www.bilibili.com/festival/*
  16. // @match https://www.bilibili.com/list/*
  17. // @match https://live.bilibili.com/*
  18. // @match https://www.ixigua.com/*
  19. // @match https://yun.nxflv.com/?url=*
  20. // @match https://ddys.art/*
  21. // @match https://ddys.pro/*
  22. // @include *://*.libvio.*
  23. // @match https://*.chinaeast2.cloudapp.chinacloudapi.cn/*?url=*
  24. // @match https://*.cfnode1.xyz/*?url=*
  25. // @match https://www.nivod.tv/*
  26. // @match https://www.pkmkv.com/py/*
  27. // @match https://www.pkmkv.com/addons/dplayer/?url=*
  28. // @match https://www.btnull.org/py/*
  29. // @match https://www.btnull.to/py/*
  30. // @match https://www.btnull.nu/py/*
  31. // @match https://www.btnull.in/py/*
  32. // @match *://www.926dm.com/play/*
  33. // @match *://www.dmlaa.com/play/*
  34. // @match *://www.qdmsh.com/play/*
  35. // @match *://www.ntdm8.com/play/*
  36. // @match https://danmu.yhdmjx.com/*?url=*
  37. // @match https://dick.xfani.com/watch/*
  38. // @match https://dick.xfani.com/addons/dp/player/*
  39. // @match https://player.moedot.net/player/*
  40. // @match https://m3.moedot.net/muiplayer/?url=*
  41. // @match https://www.mgnacg.com/bangumi/*
  42. // @match https://play.mknacg.top:8585/*
  43. // @match https://www.omofun.top/index.php/vod/play/id/*
  44. // @match https://*.omofun.top/?url=*
  45. // @match https://spdcat.net/vodplay/*
  46. // @match https://spdcat.net/addons/dp/player/*
  47. // @match http://www.dm88.me/player/*
  48. // @match https://jianghu.live2008.com/*?url=*
  49. // @match https://www.kk151.com/play/*
  50. // @match https://jx.m3u8.tv/jiexi/?url=*
  51. // @match https://jx.wolongzywcdn.com:65/m3u8.php?url=*
  52. // @match https://www.m3u8.tv.cdn.8old.cn/jx.php?url=*
  53. // @match https://jx.wujinkk.com/dplayer/?url=*
  54. // @match https://www.ikdmjx.com/?url=*
  55. // @match https://hls.kuaibofang.com/?url=*
  56. // @match https://jx.jxbdzyw.com/m3u8/?url=*
  57. // @match https://hdzyk.com/?m=*
  58. // @match https://1080zyk1.com/?m=*
  59. // @match https://1080zyk2.com/?m=*
  60. // @match https://1080zyk3.com/?m=*
  61. // @match https://1080zyk4.com/?m=*
  62. // @match https://1080zyk5.com/?m=*
  63. // @match https://vip.zykbf.com/?url=*
  64. // @match https://*.yzzy-tv1.com/*
  65. // @match https://*.yzzy-tv-cdn.com/*
  66. // @match https://www.bdys10.com/*
  67. // @match https://www.haitu.tv/*
  68. // @include *://*alist*
  69. // @include *://*:5244*
  70. // @match *://*/*.mp4
  71. // @match *://*/*.mkv
  72. // @match https://www.dora-family.com/Resource:TV
  73. // @match https://www.olehdtv.com/*
  74. // @match *://tkznp.com/vodplay/*
  75. // @match *://www.tkznp.com/vodplay/*
  76. // @match *://www.tkznp1.com/vodplay/*
  77. // @match *://www.tkznp2.com/vodplay/*
  78. // @match *://www.tkznp3.com/vodplay/*
  79. // @match *://www.tkznp4.com/vodplay/*
  80. // @match *://www.tkznp5.com/vodplay/*
  81. // @match *://www.tkznp6.com/vodplay/*
  82. // @match https://vip.ckllk.com/?url=*
  83. // @match https://www.hdmoli.com/*
  84. // @match https://play.qwertwe.top/xplay/?url=*
  85. // @match https://www.anfuns.cc/play/*
  86. // @match https://www.anfuns.cc/vapi/*
  87. // @match https://www.youtube.com/*
  88. // @match https://odysee.com/*
  89. // @match https://rumble.com/*
  90. // @match https://www.bitchute.com/*
  91. // @match https://ani.gamer.com.tw/animeVideo.php?sn=*
  92. // @match https://hanime1.me/watch?v=*
  93. // @match https://jable.tv/videos/*
  94. // @match https://ok.ru/*
  95. // @match https://tver.jp/*
  96. // @match https://www.lckp.top/play-with-mpv/index.html
  97. // @match https://www.douyin.com/
  98. // @match https://www.douyin.com/video/*
  99. // @match https://www.douyin.com/discover?modal_id=*
  100. // @match https://www.mengfan.tv/play/*
  101. // @match https://video1.beijcloud.com/player/?url=*
  102. // @match https://www.tucao.cam/play/*
  103. // @match https://mypikpak.com/drive/*
  104. // @match https://www.icourse163.org/learn/*
  105. // @match https://www.iole.tv/*
  106. // @match https://www.zhihu.com/zvideo/*
  107. // @match *://www.susudm8.com/*
  108. // @match *://susudyy.com/*
  109. // @match *://buding3.com/*
  110. // @match *://buding6.com/*
  111. // @match *://v2.shenjw.com:*/wap.php?url=*
  112. // @match *://u88.xigua88ok.com:*/wap.php?url=*
  113. // @match *://test3.gqyy8.com:*/f/aliplayer.php?url=*
  114. // @match *://v.mksec.cn/*
  115. // @include *://*dsh*.com/*
  116. // @match https://www.twitch.tv/*
  117. // @connect api.bilibili.com
  118. // @connect api.live.bilibili.com
  119. // @require https://unpkg.com/jquery@3.2.1/dist/jquery.min.js
  120. // @require https://unpkg.com/md5@2.3.0/dist/md5.min.js
  121. // @grant GM_setValue
  122. // @grant GM_getValue
  123. // @run-at document-end
  124. // ==/UserScript==
  125.  
  126. 'use strict';
  127.  
  128. const INFO = `
  129.  
  130. ▶️🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽🔽◀️
  131. ▶️ ◀️
  132. ▶️ Play-With-MPV ◀️
  133. ▶️ ◀️
  134. ▶️ https://github.com/hkiceflow/Play-With-MPV ◀️
  135. ▶️ ◀️
  136. ▶️ © hkiceflow ◀️
  137. ▶️ ◀️
  138. ▶️🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼🔼◀️
  139.  
  140. `;
  141. // gm key
  142. const KEY = {
  143. config: "config"
  144. }
  145. // 默认配置
  146. const DEFAULT_CONFIG = {
  147. player: "mpv",
  148. mpv: {
  149. path: "",
  150. regVersion: "1.0.1",
  151. },
  152. potplayer: {
  153. path: "",
  154. regVersion: "1.0.1",
  155. },
  156. proxy: "",
  157. bestQuality: "2160p",
  158. bilibiliCodecs: 12,
  159. playAuto: 0,
  160. closeAuto: 0,
  161. syncStartTime: 0,
  162. subtitlePrefer: "zh-Hans",
  163. customPlayer: {
  164. name: "custom",
  165. params: {
  166. videoUrl: 'iina://weblink?url=${EvideoUrl}',
  167. audioUrl: '',
  168. subtitleUrl: '',
  169. title: '',
  170. startTime: '',
  171. referer: '',
  172. origin: '',
  173. proxy: '',
  174. other: ''
  175. }
  176. },
  177. version: "1.0.1"
  178. };
  179. var currentConfig;
  180. // 视频链接匹配正则
  181. const VIDEO_URL_REGEX = /https?:\/\/(?![^"^']*http)[^"^']+(\.|%2e)(m3u8|m3u|mp4|mkv|flv|avi)(\?[\w&=-]+|)/g;
  182. // 父子页面方法名
  183. const METHOD = {
  184. pause: "PAUSE",
  185. report: "REPORT"
  186. };
  187. // 时间 ms
  188. const TIME = {
  189. out: 3000,
  190. toast: 3500,
  191. refresh: 600,
  192. reportInterval: 600,
  193. pauseInterval: 2000,
  194. showButton: 5000,
  195. }
  196. // 尝试次数
  197. var tryTime = 0;
  198. const TRY_TIME = {
  199. maxPause: 5,
  200. maxParse: 8
  201. };
  202. // 播放器配置
  203. const PLAYER = {
  204. mpv: {
  205. name: "mpv",
  206. params: {
  207. videoUrl: 'mpv://"${videoUrl}"',
  208. audioUrl: ' --audio-file="${audioUrl}"',
  209. subtitleUrl: ' --sub-file="${subtitleUrl}"',
  210. title: ' --force-media-title="${title}"',
  211. startTime: ' --start=${startTime}',
  212. referer: ' --http-header-fields="referer: ${referer}"',
  213. origin: ' --http-header-fields="origin: ${origin}"',
  214. proxy: ' --http-proxy=${proxy} --ytdl-raw-options=proxy=[${proxy}]',
  215. other: ' ${other}'
  216. }
  217. },
  218. potplayer: {
  219. name: "potplayer",
  220. params: {
  221. videoUrl: 'potplayer://${videoUrl} /current',
  222. subtitleUrl: ' /sub="${subtitleUrl}"',
  223. title: ' /title="${title}"',
  224. startTime: ' /seek=${startTime}',
  225. referer: ' /referer="${referer}"',
  226. origin: ' /headers="origin: ${origin}"',
  227. proxy: ' /user_agent="${proxy}"'
  228. }
  229. },
  230. custom: {
  231. name: "custom",
  232. params: undefined
  233. }
  234. }
  235. // 页面信息
  236. var page = {
  237. host: undefined,
  238. url: undefined,
  239. isFullScreen: false,
  240. };
  241. // 处理器
  242. var handler;
  243. // 前缀
  244. const PREFIX = "pwm";
  245. // 组件 id
  246. const ID = {
  247. loadingDiv: `${PREFIX}-loading-div`,
  248. toastDiv: `${PREFIX}-toast-div`,
  249. buttonDiv: `${PREFIX}-button-div`,
  250. infoButton: `${PREFIX}-info-button`,
  251. infoDiv: `${PREFIX}-info-div`,
  252. infoTable: `${PREFIX}-info-table`,
  253. playButton: `${PREFIX}-play-button`,
  254. settingButton: `${PREFIX}-setting-button`,
  255. settingDiv: `${PREFIX}-setting-div`,
  256. settingTable: `${PREFIX}-setting-table`,
  257. playerRadio: `${PREFIX}-player-radio`,
  258. softwarePathInput: `${PREFIX}-software-path-input`,
  259. proxyInput: `${PREFIX}-proxy-input`,
  260. bestQualityRadio: `${PREFIX}-best-quality-radio`,
  261. bilibiliCodecsRadio: `${PREFIX}-bilibili-codecs-radio`,
  262. saveButton: `${PREFIX}-save-button`,
  263. downloadButton: `${PREFIX}-download-button`,
  264. deleteButton: `${PREFIX}-delete-button`,
  265. playAutoInput: `${PREFIX}-play-auto-input`,
  266. closeAutoInput: `${PREFIX}-close-auto-input`,
  267. syncStartTimeInput: `${PREFIX}-sync-start-time-input`,
  268. syncStartTimeSpan: `${PREFIX}-sync-start-time-span`,
  269. infoDiv: `${PREFIX}-info-div`,
  270. infoTable: `${PREFIX}-info-table`,
  271. subtitlePreferRadio: `${PREFIX}-subtitle-prefer-radio`,
  272. customPlayerButton: `${PREFIX}-custom-player-button`,
  273. customPlayerTable: `${PREFIX}-custom-player-table`,
  274. videoUrlParamInput: `${PREFIX}-video-url-param-input`,
  275. audioUrlParamInput: `${PREFIX}-audio-url-param-input`,
  276. subtitleUrlParamInput: `${PREFIX}-subtitle-url-param-input`,
  277. titleParamInput: `${PREFIX}-title-param-input`,
  278. startTimeParamInput: `${PREFIX}-start-time-param-input`,
  279. proxyParamInput: `${PREFIX}-proxy-param-input`,
  280. refererParamInput: `${PREFIX}-referer-param-input`,
  281. originParamInput: `${PREFIX}-origin-param-input`,
  282. nxParserIframe: `${PREFIX}-nx-parser-iframe`
  283. }
  284. // 组件 class
  285. const CLASS = {
  286. button: `${PREFIX}-button`,
  287. titleSpan: `${PREFIX}-title-span-class`,
  288. titleTd: `${PREFIX}-title-td-class`,
  289. closeButton: `${PREFIX}-cloase-button-class`,
  290. tipSpan: `${PREFIX}-tip-span-class`,
  291. footerSpan: `${PREFIX}-footer-span-class`,
  292. switchLabel: `${PREFIX}-switch-label-class`,
  293. sliderSpan: `${PREFIX}-slider-span-class`,
  294. roundSpan: `${PREFIX}-round-span-class`,
  295. readOnly: `${PREFIX}-read-only-class`,
  296. footerA: `${PREFIX}-footer-a-class`,
  297. infoInput: `${PREFIX}-info-input-class`,
  298. }
  299. // 消息类型
  300. const TOAST_TYPE = {
  301. info: "info",
  302. warn: "warn",
  303. error: "error"
  304. }
  305. // 图标
  306. const ICON_BASE64 = {
  307. custom: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAHe5JREFUeF7tXQn8/tWUPg/Gvmdt7Guya0iWCBGJUrRYSikqJRORtdAiCTGiXXYxZS8TmmGshUH2NfsQxjKM7ZnPU/fN+//93+Wee+93fe/5fP6fn5nOOffc8/0+773f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mZrViBsRUAt3aHA2MuyfvTyzbdjARIurVplJmZzanAcHuNq0bASHqps0aTDTBIgAQQOUQIM3M3EbrPYtWTf/NJumsa2looIEBaiBdzqJktC2DL6vNid14B4EyS7rU72jpSQIB0JGQIN2a2BoBNAawA4HYAC4Z8n1QIzQVICJVbxjCz5QAsIxhaCtlguABpIJqGDEcBATKcWmumDRQQIA1E05DhKCBAhlNrzbSBAgKkgWgaMhwFBMhwaq2ZNlBAgDQQTUOGo4AAGU6tNdMGCgiQBqJpyHAUECDDqbVm2kABAdJANA0ZjgICZDi11kwbKPA/s0eBBTRVUn4AAAAASUVORK5CYII=')",
  309. }
  310. const CSS = `
  311. #${ID.loadingDiv} {
  312. display: none;
  313. position: fixed;
  314. bottom: 50%;
  315. left: 50%;
  316. z-index: 999999;
  317. transform: translate(-50%, -50%);
  318. background-color: rgba(255, 255, 255, 0);
  319. }
  320. #${ID.loadingDiv} .spinner {
  321. width: 40px;
  322. height: 40px;
  323. background-color: rgba(255, 255, 255, 1);
  324. -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
  325. animation: sk-rotateplane 1.2s infinite ease-in-out;
  326. }
  327. @-webkit-keyframes sk-rotateplane {
  328. 0% {
  329. -webkit-transform: perspective(120px)
  330. }
  331.  
  332. 50% {
  333. -webkit-transform: perspective(120px) rotateY(180deg)
  334. }
  335.  
  336. 100% {
  337. -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
  338. }
  339. }
  340.  
  341. @keyframes sk-rotateplane {
  342. 0% {
  343. transform: perspective(120px) rotateX(0deg) rotateY(0deg);
  344. -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
  345. }
  346.  
  347. 50% {
  348. transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
  349. -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
  350. }
  351.  
  352. 100% {
  353. transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  354. -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
  355. }
  356. }
  357. #${ID.toastDiv} {
  358. display: none;
  359. position: fixed;
  360. bottom: 80%;
  361. left: 50%;
  362. max-width: 60%;
  363. min-width: 150px;
  364. padding: 0 14px;
  365. height: 40px;
  366. color: rgb(255, 255, 255);
  367. line-height: 40px;
  368. text-align: center;
  369. border-radius: 4px;
  370. transform: translate(-50%, -50%);
  371. z-index: 999999;
  372. background: rgba(0, 255, 0, .9);
  373. font-size: 14px;
  374. font-weight: blod;
  375. }
  376. /* 按钮 */
  377. #${ID.buttonDiv} {
  378. display: none;
  379. position: fixed;
  380. bottom: 0;
  381. left: 0;
  382. cursor: pointer;
  383. z-index: 99999;
  384. width: 90px;
  385. height: 90px;
  386. }
  387. #${ID.buttonDiv}:hover .${CLASS.button} {
  388. visibility: visible !important;
  389. }
  390. .${CLASS.button} {
  391. position: fixed;
  392. cursor: pointer;
  393. z-index: 99999;
  394. border: none;
  395. border-radius: 50%;
  396. background-size: cover;
  397. background-color: rgba(255, 255, 255, 0);
  398. }
  399. #${ID.playButton} {
  400. bottom: 10px;
  401. left: 16px;
  402. width: 50px;
  403. height: 50px;
  404. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAACBqSURBVHhe7Z177FXVlccXPhDk/ao/FFQEBUQBK7ZadXxUo3ScjjrWarXVNjUjsWZqbJNpOpPGTEzbOKZmGqNJba2jjkx1WqZ1qo5YcaSVVq2oUFEBUUF+yENABESR+X7v3ufn5fe7r3PveezH+iSbfc75g8A9Z3332mvvtXa/PXv2iBIm/W6VAei6zJ2MQ9sPbbhtvOYzshrtQ7TNtvGaz0j3nmtkp71WAkMFwENg2DTeSVVtctU1GY022Fxmxja0DeZSltu2Am1Zcg+hoHAoHqEC4DAwdI7QU9B6GzkbRcA1esQALRGHZRCGxJtQHEMFwCFg8LPQ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;
  408. left: 14px;
  409. width: 54px;
  410. height: 54px;
  411. }
  412. /* 设置 */
  413. #${ID.settingButton} {
  414. bottom: 50px;
  415. left: 56px;
  416. width: 28px;
  417. height: 28px;
  418. background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAGoZJREFUeF7tXXuYHFWV/53qBEIUkq6ZwExPooR0DSgalYcuhIe4ghtAEJSguwuRhyRdk4SXKLisG5ZVRBERMtVJMIBZPh+AwmJQURQWARFRl3zqkqlOAJPpGTIz1Qlmec10nf1qyOAwzEzfqu563O5b35d/Muf5O/fXtx733kNQl0JAITAhAqSwUQgoBCZGQBFEjQ6FwCQIKIKo4aEQUARRY0AhEAwBNYMEw01pNQgCiiANUmiVZjAEFEGC4aa0GgQBRZAGKbRKMxgCiiDBcFNaDYKAIkiDFFqlGQwBRZBguCmtBkFAEaRBCq3SDIaAIkgw3JRWgyCgCNIghVZpBkNAESQYbkqrQRBQBGmQQqs0gyGgCBIMN6XVIAgogjRIoVWawRBQBAmGm9JqEAQUQRqk0CrNYAgoggTDTWk1CAKKIA1SaJVmMAQUQYLhprQaBAFFkAYptEozGAKKIMFwU1oNgoAiSIMUWqUZDAFFkGC4VdTSV9vvRBlHgHCEq/H6HUvbH66o5ENAt+yfMPGD5GqPpPDKxr6Og3f5UFeigggogggCNZlYs/X0gWVOHUYaDgXTYQAfBmCv13WYbnQ6shfWwNWwCf1Gex9Mwc4x9v5I4EdcpJ4i5o2KNLVBWxEkII4z8/b7UkwnMfgkAH9XwUy3YxqzA7p6k5reuflCkHvDpPYYOwB6kNh9iKbucWf/kv17auW/kewogviotnfbxGWcQhoWg3GQD1W4NDR3R+4dz/rRmUhW77R/BsLxvmwxnoSGDZo2da0iizhyiiACWDVZhTyDPw1gmoD4uCIMnFUyjduD6o/W062ufoCaqrBVBGGtkzOuqsJGQ6gqggiUWe8s/DuI/1VAdBIRXuuY7UuqswE0WZs+xtDurtYO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Xr8FAOrRzZBBc2pEfRqVrRGAGufb23VU4MvLyQXp4CwSDxn/qFjtn9cXL6ypG7Z3oe+OZUld0sQ/QLg+6Y3TVu9bdGcql4UCPusA0FFkIBFHCGL5mKh16AS4LdPZMoFTt1hGvcGdDWumm513QLQORPZJGAzEz0B5l8OukN3/3XZOwZq6b9RbCmC1KjS3iESYO0IIjoc8P797aG+lrdXI+HOtOxjNWBkl6QL5geh0a8ItHFokDfuXGFsrlFqDW1GESTE8g8fcOCWFzgdxjfCcNNkFRYPDfEjigxhoPuaTUWQ8LBVlusAAUWQOiiiSiE8BBRBwsNWWa4DBBRB6qCIKoXwEFAECQ9bZbkOEFAEqYMiqhTCQ0ARJDxsleU6QEARpA6KqFIIDwFFkPCwVZbrAAFFkDoookohPAQUQcLDVlmuAwQUQeqgiCqF8BBQBAkPW2W5DhBQBKmDIqoUwkNAESQ8bJXlOkBAEaQOiqhSCA8BRZDwsFWW6wABRZA6KKJKITwEFEHCw1ZZrgMEFEHqoIgqhfAQUAQJD1tluQ4QUASpgyKqFMJDQBEkPGyV5TpAQBGkDoqoUggPAUWQ8LBVlusAAUWQOiiiSiE8BBRBwsNWWa4DBP4fsm/5Qe8B8E0AAAAASUVORK5CYII=);
  419. }
  420. #${ID.settingButton}:hover {
  421. bottom: 48px;
  422. left: 52px;
  423. width: 32px;
  424. height: 32px;
  425. }
  426. #${ID.settingDiv},
  427. #${ID.infoDiv} {
  428. position: fixed;
  429. top: 40%;
  430. left: 50%;
  431. transform: translate(-50%, -50%);
  432. z-index: 999999999;
  433. width: 900px;
  434. height: 520px;
  435. background-color: rgb(65, 146, 247);
  436. display: none;
  437. flex-direction: column;
  438. border-radius: 6px;
  439. align-items: center;
  440. color: rgba(0, 0, 0, .7);
  441. font-family: "微软雅黑";
  442. }
  443. #${ID.infoDiv} {
  444. background-color: rgb(234, 122, 153) !important;
  445. }
  446. #${ID.infoTable},
  447. #${ID.settingTable},
  448. #${ID.customPlayerTable} {
  449. width: 800px;
  450. height: 460px;
  451. border-radius: 5px !important;
  452. border: 3px solid rgba(255, 255, 255, 1) !important;
  453. text-align: left;
  454. border-collapse: unset !important;
  455. display: flex;
  456. justify-content: center;
  457. padding-top: 3px;
  458. padding-bottom: 12px;
  459. line-height: 20px !important;
  460. font-weight: normal !important;
  461. }
  462. #${ID.customPlayerTable} {
  463. display: none;
  464. }
  465. #${ID.infoTable} td,
  466. #${ID.settingTable} td,
  467. #${ID.customPlayerTable} td {
  468. font-size: 14px;
  469. border: 0px solid rgba(255, 255, 255, 0.5);
  470. padding: 19px 0px 0px 0px !important;
  471. }
  472. #${ID.infoTable} td {
  473. padding-top: 16.5px !important;
  474. }
  475. .${CLASS.titleSpan} {
  476. padding-top: 12.5px !important;;
  477. padding-bottom: 12.5px !important;;
  478. font-size: 16px;
  479. font-weight: bold;
  480. color: rgba(255, 255, 255, 1) !important;
  481. }
  482. .${CLASS.closeButton} {
  483. position: absolute;
  484. top: 4px;
  485. right: 8px;
  486. height: 25px;
  487. width: 25px;
  488. border: none;
  489. font-size: 17px !important;
  490. font-weight: normal !important;
  491. background-color: rgba(0, 0, 0, 0);
  492. line-height: 0px;
  493. border-radius: 3px;
  494. transform: scale(1.32, 1);
  495. color: rgba(255, 255, 255, 1);
  496. }
  497. .${CLASS.closeButton}:hover {
  498. font-size: 20px;
  499. background-color: rgba(255, 255, 255, .5);
  500. cursor: pointer;
  501. }
  502. .${CLASS.tipSpan} {
  503. font-size: 12px;
  504. color: yellow;
  505. position: fixed;
  506. }
  507. .${CLASS.titleTd} {
  508. position: relative;
  509. width: 80px;
  510. height: 30px;
  511. border: none;
  512. font-size: 14px;
  513. text-align: center;
  514. color: rgba(255, 255, 255, 1) !important;
  515. cursor: default;
  516. }
  517. #${ID.infoTable} input,
  518. #${ID.settingTable} input,
  519. #${ID.customPlayerTable} input {
  520. font-size: 12px !important;
  521. width: 500px;
  522. height: 26px;
  523. border: none;
  524. outline: none;
  525. text-indent: 5px;
  526. padding: 0px !important;
  527. border-radius: 0px !important;
  528. color: rgba(0, 0, 0, 1);
  529. background-color: rgba(255, 255, 255, 1);
  530. cursor: auto;
  531. display: flex !important;
  532. margin-top: 1px !important;
  533. margin-bottom: 1px !important;
  534. border-collapse: unset !important;
  535. }
  536. #${ID.infoTable} input:hover,
  537. #${ID.settingTable} input:hover,
  538. #${ID.customPlayerTable} input:hover,
  539. #${ID.infoTable} input:focus-visible,
  540. #${ID.settingTable} input:focus-visible,
  541. #${ID.customPlayerTable} input:focus-visible {
  542. box-shadow: none;
  543. }
  544. #${ID.settingTable} input::placeholder,
  545. #${ID.customPlayerTable} input::placeholder {
  546. font-size: 12px;
  547. color: rgba(0, 0, 0, .3);
  548. }
  549. #${ID.saveButton} {
  550. font-size: 14px;
  551. margin-left: 83px;
  552. width: 300px;
  553. height: 30px;
  554. border: none;
  555. border-radius: 3px;
  556. color: rgba(255, 255, 255, 1);
  557. background-color: rgba(0, 255, 0, .7);
  558. }
  559. #${ID.downloadButton} {
  560. font-size: x-small;
  561. margin-left: 10px;
  562. width: 100px;
  563. height: 30px;
  564. border: none;
  565. border-radius: 3px;
  566. color: rgba(255, 255, 255, 1);
  567. background-color: rgba(0, 255, 0, .7);
  568. }
  569. #${ID.deleteButton} {
  570. text-decoration: none;
  571. font-size: x-small;
  572. width: 80px;
  573. height: 30px;
  574. border: none;
  575. border-radius: 3px;
  576. color: rgba(255, 255, 255, 1);
  577. background-color: rgba(0,0,0,0);
  578. }
  579. #${ID.saveButton}:hover,
  580. #${ID.downloadButton}:hover {
  581. opacity: .8;
  582. background-color: rgba(0, 255, 0, .8);
  583. cursor: pointer;
  584. }
  585. #${ID.deleteButton}:hover {
  586. opacity: .8;
  587. background-color: rgba(0,0,0,0);
  588. cursor: pointer;
  589. }
  590. .${CLASS.footerSpan} {
  591. margin-top: 8px !important;
  592. margin-bottom: 8px !important;
  593. color: rgba(255, 255, 255, 1);
  594. }
  595. #${ID.infoDiv} a,
  596. .${CLASS.footerSpan} a {
  597. color: rgba(255, 255, 255, 1);
  598. text-decoration: none;
  599. font-size: 14px !important;
  600. font-weight: normal !important;
  601. margin-bottom: 1px;
  602. display: inline-block;
  603. }
  604. /* switch */
  605. .${CLASS.switchLabel} {
  606. position: relative;
  607. display: inline-block;
  608. width: 50px;
  609. height: 21px;
  610. margin-top: 3px;
  611. }
  612. .${CLASS.switchLabel} input {
  613. opacity: 0;
  614. width: 0 !important;
  615. height: 0 !important;
  616. }
  617. .${CLASS.sliderSpan} {
  618. position: absolute;
  619. cursor: pointer;
  620. top: 0;
  621. left: 0;
  622. right: 0;
  623. bottom: 0;
  624. background-color: rgba(255, 255, 255, .6);
  625. -webkit-transition: .4s;
  626. transition: .4s;
  627. }
  628. .${CLASS.sliderSpan}:before {
  629. position: absolute;
  630. content: "";
  631. height: 13px;
  632. width: 13px;
  633. left: 4px;
  634. bottom: 4px;
  635. background-color: rgba(255, 255, 255, 1);
  636. -webkit-transition: .4s;
  637. transition: .4s;
  638. }
  639. #${ID.settingDiv} input:checked + .${CLASS.sliderSpan} {
  640. background-color: rgba(0, 255, 0, .7);
  641. }
  642. #${ID.settingDiv} input:focus + .${CLASS.sliderSpan} {
  643. box-shadow: 0 0 1px rgba(0, 255, 0, .7);
  644. }
  645. #${ID.settingDiv} input:checked + .${CLASS.sliderSpan}:before {
  646. -webkit-transform: translateX(29px);
  647. -ms-transform: translateX(29px);
  648. transform: translateX(29px);
  649. }
  650. .${CLASS.sliderSpan}.${CLASS.roundSpan} {
  651. border-radius: 34px;
  652. }
  653. .${CLASS.sliderSpan}.${CLASS.roundSpan}:before {
  654. border-radius: 50%;
  655. }
  656. .${CLASS.readOnly} {
  657. color: rgba(255, 255, 255, .3) !important;
  658. background-color: rgba(0, 0, 0, .3) !important;
  659. cursor: default !important;
  660. opacity: 1 !important;
  661. }
  662. .${CLASS.readOnly}::placeholder {
  663. color: rgba(255, 255, 255, .3) !important;
  664. }
  665. #${ID.infoButton} {
  666. bottom: 52px;
  667. left: 3px;
  668. width: 25px;
  669. height: 25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YOR9eNzZzE5G1UNEK3Kce7Au2fSKk4696CvwgOwrGsfjFd2Dk+ZqQB6UaV4sps2Y3zKZH6zMhVZMaLvmXZu+fGMugHxKKTPR9ouhaXPAfIFvKr2/RBgvgc2HMNpcocfn+3N3OhtFFEAOIF5XNH1aSKPZYJ7N/rpO2QKiR0Hmo/odjT+z0T++NxVACijx299aPP7g6jGzwciDck4BJi4dws/lwRiA+ePJiab3XBqkq8ISQIosRzba8SWTeBYBpwM4o0hz5cMZvA6gtSawalLSeFp5AB6fUACxUcBN0WVhTRuYprF2JgN/7RJgXgboeQKeQ1Xo2XD8Kv9tCW+jZsWaCiDFKnaA8fk7YV27ItNCWqge4HpmrgdRPYB6AsIOTvU+CJ1g6iRwp0nUSWR2DmyvWDd58dWbHZwn8K4EEEUtkF3wwCEm7a6nSkwiDtWY4BpiriGghoEagGrAqGHifiL0MaNfA/oY3M/M/RpCfQTO7kZl56TUlVlFYQd+GgEk8C0gAhxIAQFE+kMUOIACAoi0hygggEgPiALWFJAVxJpuYhUQBQSQgBRa0rSmgABiTTexCogCAkhACi1pWlNAALGmm1gFRAEBJCCFljStKSCAWNNNrAKigAASkEJLmtYUEECs6SZWAVFAAAlIoSVNawoIINZ0E6uAKCCABKTQkqY1BQQQa7qJVUAUEEACUmhJ05oCAog13cQqIAoIIAEptKRpTQEBxJpuYhUQBQSQgBRa0rSmgABiTTexCogCAkhACi1pWlNAALGmm1gFRAEBJCCFljStKfD/nS7vI51w7UwAAAAASUVORK5CYII=);
  671. }
  672. #${ID.infoButton}:hover {
  673. bottom: 50px;
  674. left: 1px;
  675. width: 29px;
  676. height: 29px;
  677. }
  678. #${ID.settingDiv} .tabs {
  679. display: flex;
  680. width: 501px;
  681. height: 28px;
  682. }
  683. #${ID.settingDiv} .tabs>.tab {
  684. flex: 1;
  685. display: flex;
  686. border: 1px solid rgb(65,146,247);
  687. margin: 0;
  688. }
  689. #${ID.settingDiv} .tabs>.tab:after {
  690. background: rgba(0, 0, 0, 0);
  691. color: rgba(0, 0, 0, 0) !important;
  692. }
  693. #${ID.settingDiv} .tab>.tab-input {
  694. width: 0 !important;
  695. height: 0 !important;
  696. margin: 0 !important;
  697. display: none !important;
  698. }
  699. #${ID.settingDiv} .tab>.tab-box {
  700. padding: 4px 0px 0.5px 0px;
  701. width: 100%;
  702. height: 22px;
  703. text-align: center;
  704. transition: 0.3s;
  705. background: rgba(255, 255, 255, 1);
  706. font-size: 12px;
  707. font-weight: normal !important;
  708. display: table !important;
  709. color: #000000B3;
  710. }
  711. #${ID.settingDiv} .tab>.tab-box:hover {
  712. opacity: .8;
  713. cursor: pointer;
  714. }
  715. #${ID.settingDiv} .tab>.tab-input:checked+.tab-box {
  716. color: rgba(255, 255, 255, 1);
  717. background: rgba(0, 255, 0, .7);
  718. }
  719. #${ID.customPlayerButton}:hover:after,
  720. #${ID.settingDiv} .${CLASS.titleTd}:hover:after,
  721. .${CLASS.footerA}:hover:after {
  722. position: absolute;
  723. font-size: 12px;
  724. left: 0px;
  725. top: -3px;
  726. padding: 5px 5px 5px 5px !important;
  727. background-color: rgba(0, 0, 0, 0.6);
  728. color: rgba(255, 255, 255, 1);
  729. content: attr(data-tip);
  730. text-align: center;
  731. z-index: 999999;
  732. width: auto !important;
  733. height: auto !important;
  734. white-space: nowrap;
  735. }
  736. #${ID.customPlayerButton}:hover:after {
  737. left: -10px !important;
  738. top: -28px !important;
  739. }
  740. .${CLASS.footerA} {
  741. position: relative;
  742. }
  743. .${CLASS.footerA}:hover:after {
  744. left: 0px !important;
  745. top: -27px !important;
  746. }
  747. #${ID.customPlayerButton} {
  748. position: absolute;
  749. right: 122px;
  750. top: 76px;
  751. width: 22px;
  752. height: 22px;
  753. border: none;
  754. cursor: pointer;
  755. background-image: ${ICON_BASE64.custom};
  756. z-index: 999999;
  757. }
  758. `;
  759. const HTML = `
  760. <div id="${ID.loadingDiv}">
  761. <div class="spinner"></div>
  762. </div>
  763. <div id="${ID.toastDiv}"></div>
  764.  
  765. <div id="${ID.buttonDiv}">
  766. <button id="${ID.infoButton}" class="${CLASS.button}"></button>
  767. <button id="${ID.playButton}" class="${CLASS.button}"></button>
  768. <button id="${ID.settingButton}" class="${CLASS.button}"></button>
  769. </div>
  770.  
  771. <div id="${ID.infoDiv}">
  772. <span class="${CLASS.titleSpan}">Play-With-MPV<button class="${CLASS.closeButton}">X</button></span>
  773. <table id="${ID.infoTable}">
  774. <tr>
  775. <td colspan="4" style="text-align: center; color: white; font-size: 16px;">本 息</td>
  776. </tr>
  777. <tr>
  778. <td class="${CLASS.titleTd}">视频标题</td>
  779. <td colspan="8">
  780. <input type="text" readonly class="${CLASS.infoInput}">
  781. </td>
  782. </tr>
  783. <tr>
  784. <td class="${CLASS.titleTd}">视频链接</td>
  785. <td colspan="8">
  786. <input type="text" readonly class="${CLASS.infoInput}">
  787. </td>
  788. </tr>
  789. <tr>
  790. <td class="${CLASS.titleTd}">音频链接</td>
  791. <td colspan="8">
  792. <input type="text" readonly class="${CLASS.infoInput}">
  793. </td>
  794. </tr>
  795. <tr>
  796. <td class="${CLASS.titleTd}">字幕链接</td>
  797. <td colspan="8">
  798. <input type="text" readonly class="${CLASS.infoInput}">
  799. </td>
  800. </tr>
  801. <tr>
  802. <td class="${CLASS.titleTd}">referer</td>
  803. <td colspan="8">
  804. <input type="text" readonly class="${CLASS.infoInput}">
  805. </td>
  806. </tr>
  807. <tr>
  808. <td class="${CLASS.titleTd}">origin</td>
  809. <td colspan="8">
  810. <input type="text" readonly class="${CLASS.infoInput}">
  811. </td>
  812. </tr>
  813. <tr><td></td></tr>
  814. <tr>
  815. <td style="text-align: right;">
  816. <a href="https://greasyfork.org/zh-CN/scripts/444056-play-with-mpv" target="_blank">🆕 升级 🆕</a>
  817. </td>
  818. <td style="text-align: right;">
  819. <a href="https://www.lckp.top/play-with-mpv/index.html" target="_blank">🧭 网站导航 🧭</a>
  820. </td>
  821. <td style="text-align: right;">
  822. <a href="https://github.com/hkiceflow/mpv_video" target="_blank">🌟 项目源码 🌟</a>
  823. </td>
  824. <td style="text-align: right;">
  825. <a href="https://github.com/hkiceflow/mpv_video/issues/new" target="_blank">👻 反馈 👻</a>
  826. </td>
  827. </tr>
  828. </table>
  829. <span class="${CLASS.footerSpan}">
  830. <a href="https://greasyfork.org/zh-CN/scripts/444056-play-with-mpv" target="_blank" class="${CLASS.footerA}" data-tip="版本升级"> 🆕 </a>
  831. <a href="https://github.com/hkiceflow/mpv_video" target="_blank" class="${CLASS.footerA}" data-tip="项目源码"> © hkiceflow </a>
  832. <a href="https://github.com/hkiceflow/mpv_video/issues/new" target="_blank" class="${CLASS.footerA}" data-tip="问题反馈"> 👻 </a>
  833. </span>
  834. </div>
  835.  
  836. <div id="${ID.settingDiv}">
  837. <span class="${CLASS.titleSpan}">Play-With-MPV<button class="${CLASS.closeButton}">X</button></span>
  838. <button id="${ID.customPlayerButton}" class="${CLASS.button}" data-tip="设置自定义播放器"></button>
  839. <table id="${ID.settingTable}">
  840. <tr>
  841. <td class="${CLASS.titleTd}" data-tip="选择 mpv 以外播放器时,部分功能无效">播放软件</td>
  842. <td colspan="8">
  843. <div class="tabs">
  844. <label class="tab">
  845. <input type="radio" name="${ID.playerRadio}" value="${PLAYER.mpv.name}" class="tab-input">
  846. <div class="tab-box">mpv</div>
  847. </label>
  848. <label class="tab">
  849. <input type="radio" name="${ID.playerRadio}" value="${PLAYER.potplayer.name}" class="tab-input">
  850. <div class="tab-box">potplayer</div>
  851. </label>
  852. <label class="tab">
  853. <input type="radio" name="${ID.playerRadio}" value="${PLAYER.custom.name}" class="tab-input">
  854. <div class="tab-box">自定义</div>
  855. </label>
  856. </div>
  857. </td>
  858. </tr>
  859. <tr>
  860. <td class="${CLASS.titleTd}" data-tip="mpv.exe 或 PotPlayerMini64.exe 的完整路径">软件路径</td>
  861. <td colspan="8">
  862. <div>
  863. <input id="${ID.softwarePathInput}" type=text placeholder="请输入软件路径,例如:D://mpvnet//mpvnet.exe">
  864. </div>
  865. </td>
  866. </tr>
  867. <tr>
  868. <td class="${CLASS.titleTd}" data-tip="旁路由网关实现代理一般不需要设置">代理设置</td>
  869. <td colspan="8">
  870. <div>
  871. <input id="${ID.proxyInput}" type=text placeholder="请输入代理地址,例如:http://127.0.0.1:10809">
  872. </div>
  873. </td>
  874. </tr>
  875. <tr>
  876. <td class="${CLASS.titleTd}" data-tip="仅适用于B站或使用 yt-dlp 解析的网站,例如:油管,OK,TVer 等">最高画质</td>
  877. <td colspan="8">
  878. <div class="tabs">
  879. <label class="tab">
  880. <input type="radio" name="${ID.bestQualityRadio}" value="unlimited" class="tab-input">
  881. <div class="tab-box" name="${ID.bestQualityRadio}">无限制</div>
  882. </label>
  883. <label class="tab">
  884. <input type="radio" name="${ID.bestQualityRadio}" value="2160p" class="tab-input">
  885. <div class="tab-box" name="${ID.bestQualityRadio}">2160p</div>
  886. </label>
  887. <label class="tab">
  888. <input type="radio" name="${ID.bestQualityRadio}" value="1440p" class="tab-input">
  889. <div class="tab-box" name="${ID.bestQualityRadio}">1440p</div>
  890. </label>
  891. <label class="tab">
  892. <input type="radio" name="${ID.bestQualityRadio}" value="1080p" class="tab-input">
  893. <div class="tab-box" name="${ID.bestQualityRadio}">1080p</div>
  894. </label>
  895. <label class="tab">
  896. <input type="radio" name="${ID.bestQualityRadio}" value="720p" class="tab-input">
  897. <div class="tab-box" name="${ID.bestQualityRadio}">720p</div>
  898. </label>
  899. </div>
  900. </td>
  901. </tr>
  902. <tr>
  903. <td class="${CLASS.titleTd}" data-tip="仅适用于B站">视频编码</td>
  904. <td colspan="8">
  905. <div class="tabs">
  906. <label class="tab">
  907. <input type="radio" name="${ID.bilibiliCodecsRadio}" value="12" class="tab-input">
  908. <div class="tab-box" name="${ID.bilibiliCodecsRadio}">HEVC</div>
  909. </label>
  910. <label class="tab">
  911. <input type="radio" name="${ID.bilibiliCodecsRadio}" value="13" class="tab-input">
  912. <div class="tab-box" name="${ID.bilibiliCodecsRadio}">AV1</div>
  913. </label>
  914. <label class="tab">
  915. <input type="radio" name="${ID.bilibiliCodecsRadio}" value="7" class="tab-input">
  916. <div class="tab-box" name="${ID.bilibiliCodecsRadio}">AVC</div>
  917. </label>
  918. </div>
  919. </td>
  920. </tr>
  921. <tr>
  922. <td class="${CLASS.titleTd}" data-tip="仅适用于B站">首选字幕</td>
  923. <td colspan="8">
  924. <div class="tabs">
  925. <label class="tab">
  926. <input type="radio" name="${ID.subtitlePreferRadio}" value="zh-Hans" class="tab-input">
  927. <div class="tab-box" name="${ID.subtitlePreferRadio}">简体</div>
  928. </label>
  929. <label class="tab">
  930. <input type="radio" name="${ID.subtitlePreferRadio}" value="zh-Hant" class="tab-input">
  931. <div class="tab-box" name="${ID.subtitlePreferRadio}">繁体</div>
  932. </label>
  933. <label class="tab">
  934. <input type="radio" name="${ID.subtitlePreferRadio}" value="en-US" class="tab-input"=>
  935. <div class="tab-box" name="${ID.subtitlePreferRadio}">英语</div>
  936. </label>
  937. <label class="tab">
  938. <input type="radio" name="${ID.subtitlePreferRadio}" value="ja-JP" class="tab-input"=>
  939. <div class="tab-box" name="${ID.subtitlePreferRadio}">日语</div>
  940. </label>
  941. <label class="tab">
  942. <input type="radio" name="${ID.subtitlePreferRadio}" value="fr-FR" class="tab-input"=>
  943. <div class="tab-box" name="${ID.subtitlePreferRadio}">法语</div>
  944. </label>
  945. <label class="tab">
  946. <input type="radio" name="${ID.subtitlePreferRadio}" value="off" class="tab-input"=>
  947. <div class="tab-box" name="${ID.subtitlePreferRadio}">关闭</div>
  948. </label>
  949. </div>
  950. </td>
  951. </tr>
  952. <tr>
  953. <td class="${CLASS.titleTd}" data-tip="解析成功自动播放">自动播放</td>
  954. <td colspan="2">
  955. <div>
  956. <label class="${CLASS.switchLabel}">
  957. <input type="checkbox" id="${ID.playAutoInput}">
  958. <span class="${CLASS.sliderSpan} ${CLASS.roundSpan}"></span>
  959. </label>
  960. </div>
  961. </td>
  962. <td class="${CLASS.titleTd}" data-tip="播放时自动关闭页面(和自动播放一起开启时修改配置请前往导航页)">自动关闭</td>
  963. <td colspan="2">
  964. <div>
  965. <label class="${CLASS.switchLabel}">
  966. <input type="checkbox" id="${ID.closeAutoInput}">
  967. <span class="${CLASS.sliderSpan} ${CLASS.roundSpan}"></span>
  968. </label>
  969. </div>
  970. </td>
  971. <td class="${CLASS.titleTd}" data-tip="同步网页播放时间">同步时间</td>
  972. <td colspan="2">
  973. <div>
  974. <label class="${CLASS.switchLabel}">
  975. <input type="checkbox" id="${ID.syncStartTimeInput}">
  976. <span class="${CLASS.sliderSpan} ${CLASS.roundSpan}" id="${ID.syncStartTimeSpan}"></span>
  977. </label>
  978. </div>
  979. </td>
  980. </tr>
  981. <tr>
  982. <td colspan="9">
  983. <button id="${ID.saveButton}">保存设置</button>
  984. <button id="${ID.downloadButton}">下载注册表</button>
  985. <button id="${ID.deleteButton}">删除注册表</button>
  986. </td>
  987. </tr>
  988. </table>
  989. <table id="${ID.customPlayerTable}">
  990. <tr>
  991. <td class="${CLASS.titleTd}" data-tip="必填(视频格式:yt-dlp / m3u8 / flv / m4s / mp4 / mkv ... 播放器不支持则无法播放对应格式视频)">视频参数</td>
  992. <td colspan="8">
  993. <div>
  994. <input id="${ID.videoUrlParamInput}" type=text placeholder='请输入视频参数,例如:mpv://"$\{videoUrl\}"'>
  995. </div>
  996. </td>
  997. </tr>
  998. <tr>
  999. <td class="${CLASS.titleTd}" data-tip="选填(为空则不支持最高画质和视频编码)">音频参数</td>
  1000. <td colspan="8">
  1001. <div>
  1002. <input id="${ID.audioUrlParamInput}" type=text placeholder='请输入音频参数,例如: --audio-file="$\{audioUrl\}"'>
  1003. </div>
  1004. </td>
  1005. </tr>
  1006. <tr>
  1007. <td class="${CLASS.titleTd}" data-tip="选填(为空则无法加载B站外挂字幕)">字幕参数</td>
  1008. <td colspan="8">
  1009. <div>
  1010. <input id="${ID.subtitleUrlParamInput}" type=text placeholder='请输入字幕参数,例如: --sub-file="$\{subtitleUrl\}"'>
  1011. </div>
  1012. </td>
  1013. </tr>
  1014. <tr>
  1015. <td class="${CLASS.titleTd}" data-tip="选填(为空则无法传递标题)">标题参数</td>
  1016. <td colspan="8">
  1017. <div>
  1018. <input id="${ID.titleParamInput}" type=text placeholder='请输入标题参数,例如: --force-media-title="$\{title\}"'>
  1019. </div>
  1020. </td>
  1021. </tr>
  1022. <tr>
  1023. <td class="${CLASS.titleTd}" data-tip="选填(为空则不支持同步时间)">时间参数</td>
  1024. <td colspan="8">
  1025. <div>
  1026. <input id="${ID.startTimeParamInput}" type=text placeholder='请输入时间参数,例如: --start=$\{startTime\}'>
  1027. </div>
  1028. </td>
  1029. </tr>
  1030. <tr>
  1031. <td class="${CLASS.titleTd}" data-tip="选填(为空则不支持代理设置)">代理参数</td>
  1032. <td colspan="8">
  1033. <div>
  1034. <input id="${ID.proxyParamInput}" type=text placeholder='请输入代理参数,例如: --http-proxy=$\{proxy\} --ytdl-raw-options=proxy=[$\{proxy\}]'>
  1035. </div>
  1036. </td>
  1037. </tr>
  1038. <tr>
  1039. <td class="${CLASS.titleTd}" data-tip="选填(为空则无法观看B站和橘子动漫)">referer</td>
  1040. <td colspan="8">
  1041. <div>
  1042. <input id="${ID.refererParamInput}" type=text placeholder='请输入 referer,例如: --http-header-fields="referer: $\{referer\}"'>
  1043. </div>
  1044. </td>
  1045. </tr>
  1046. <tr>
  1047. <td class="${CLASS.titleTd}" data-tip="选填(为空则无法观看巴哈姆特)">origin</td>
  1048. <td colspan="8">
  1049. <div>
  1050. <input id="${ID.originParamInput}" type=text placeholder='请输入 origin,例如: --http-header-fields="origin: $\{origin\}" '>
  1051. </div>
  1052. </td>
  1053. </tr>
  1054. </table>
  1055. <span class="${CLASS.footerSpan}">
  1056. <a href="https://greasyfork.org/zh-CN/scripts/444056-play-with-mpv" target="_blank" class="${CLASS.footerA}" data-tip="版本升级"> 🆕 </a>
  1057. <a href="https://github.com/hkiceflow/mpv_video" target="_blank" class="${CLASS.footerA}" data-tip="项目源码"> © hkiceflow </a>
  1058. <a href="https://github.com/hkiceflow/mpv_video/issues/new" target="_blank" class="${CLASS.footerA}" data-tip="问题反馈"> 👻 </a>
  1059. </span>
  1060. </div>
  1061. `;
  1062. const REG =
  1063. `Windows Registry Editor Version 5.00
  1064. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Google\\Chrome]
  1065. "ExternalProtocolDialogShowAlwaysOpenCheckbox"=dword:00000001
  1066.  
  1067. [HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Edge]
  1068. "ExternalProtocolDialogShowAlwaysOpenCheckbox"=dword:00000001
  1069.  
  1070. [HKEY_CLASSES_ROOT\\\${PLAYER_NAME}]
  1071. @="\${PLAYER_NAME} Protocol"
  1072. "URL Protocol"=""
  1073.  
  1074. [HKEY_CLASSES_ROOT\\\${PLAYER_NAME}\\DefaultIcon]
  1075. @=""
  1076.  
  1077. [HKEY_CLASSES_ROOT\\\${PLAYER_NAME}\\shell]
  1078. @=""
  1079.  
  1080. [HKEY_CLASSES_ROOT\\\${PLAYER_NAME}\\shell\\open]
  1081. @=""
  1082.  
  1083. [HKEY_CLASSES_ROOT\\\${PLAYER_NAME}\\shell\\open\\command]
  1084. @="C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -WindowStyle Hidden -Command \\"& {Add-Type -AssemblyName System.Web;$PARAMS=([System.Web.HTTPUtility]::UrlDecode('%1') -replace '^\${PLAYER_NAME}://'); Start-Process -FilePath \\\\\\\"\${SOFTWARE_PATH}\\\\\\\" -ArgumentList $PARAMS}\\""
  1085. `
  1086. const REG_DELETE =
  1087. `Windows Registry Editor Version 5.00
  1088. [-HKEY_CLASSES_ROOT\\\${PLAYER_NAME}]
  1089. `
  1090. function appendCSS() {
  1091. let css = document.createElement("style");
  1092. css.innerHTML = CSS.trim();
  1093. document.head.appendChild(css);
  1094. }
  1095. function appendHTML() {
  1096. let div = document.createElement("div");
  1097. div.innerHTML = HTML.trim();
  1098. document.body.appendChild(div);
  1099. }
  1100. function loading(visiable) {
  1101. let loadingDiv = document.getElementById(ID.loadingDiv);
  1102. if (visiable) {
  1103. loadingDiv.style.display = "flex";
  1104. setTimeout(() => {
  1105. if (loadingDiv.style.display == "flex") {
  1106. document.getElementById(ID.loadingDiv).style.display = "none";
  1107. toast("超时辣 ...... 😓", TOAST_TYPE.error);
  1108. }
  1109. }, TIME.out);
  1110. } else {
  1111. loadingDiv.style.display = "none";
  1112. }
  1113. }
  1114. function toast(message, type, duration) {
  1115. type = type ? type : TOAST_TYPE.info;
  1116. duration = isNaN(duration) ? TIME.toast : duration;
  1117. let toastDiv = document.getElementById(ID.toastDiv);
  1118. toastDiv.innerHTML = message;
  1119. toastDiv.style.display = "block";
  1120. if (type == TOAST_TYPE.info) {
  1121. toastDiv.style.backgroundColor = "rgba(75, 180 ,54, 1)";
  1122. } else if (type == TOAST_TYPE.warn) {
  1123. toastDiv.style.backgroundColor = "rgba(190, 190, 70, 1)";
  1124. } else if (type == TOAST_TYPE.error) {
  1125. toastDiv.style.backgroundColor = "rgba(210, 51, 35, 1)";
  1126. }
  1127. setTimeout(() => {
  1128. toastDiv.style.display = "none";
  1129. }, duration);
  1130. }
  1131. function addListener() {
  1132. let buttonDiv = document.getElementById(ID.buttonDiv);
  1133. let playButton = document.getElementById(ID.playButton);
  1134. let settingButton = document.getElementById(ID.settingButton);
  1135. let settingDiv = document.getElementById(ID.settingDiv);
  1136. let settingTable = document.getElementById(ID.settingTable);
  1137. let softwarePathInput = document.getElementById(ID.softwarePathInput);
  1138. let proxyInput = document.getElementById(ID.proxyInput);
  1139. let playAutoInput = document.getElementById(ID.playAutoInput);
  1140. let closeAutoInput = document.getElementById(ID.closeAutoInput);
  1141. let syncStartTimeInput = document.getElementById(ID.syncStartTimeInput);
  1142. let syncStartTimeSpan = document.getElementById(ID.syncStartTimeSpan);
  1143. let downloadButton = document.getElementById(ID.downloadButton);
  1144. let deleteButton = document.getElementById(ID.deleteButton);
  1145. let saveButton = document.getElementById(ID.saveButton);
  1146. let closeButtons = document.getElementsByClassName(CLASS.closeButton);
  1147. let infoButton = document.getElementById(ID.infoButton);
  1148. let infoDiv = document.getElementById(ID.infoDiv);
  1149. let customPlayerTable = document.getElementById(ID.customPlayerTable);
  1150. let customPlayerButton = document.getElementById(ID.customPlayerButton);
  1151. let videoUrlParamInput = document.getElementById(ID.videoUrlParamInput);
  1152. let audioUrlParamInput = document.getElementById(ID.audioUrlParamInput);
  1153. let subtitleUrlParamInput = document.getElementById(ID.subtitleUrlParamInput);
  1154. let titleParamInput = document.getElementById(ID.titleParamInput);
  1155. let startTimeParamInput = document.getElementById(ID.startTimeParamInput);
  1156. let proxyParamInput = document.getElementById(ID.proxyParamInput);
  1157. let refererParamInput = document.getElementById(ID.refererParamInput);
  1158. let originParamInput = document.getElementById(ID.originParamInput);
  1159. let infoInputs = document.getElementsByClassName(CLASS.infoInput);
  1160. switchStatus(downloadButton, false);
  1161. // 播放按钮
  1162. playButton.onclick = function () {
  1163. if (currentConfig.player == PLAYER.mpv.name || currentConfig.player == PLAYER.potplayer.name) {
  1164. let message = undefined;
  1165. if (!currentConfig[currentConfig.player].path) {
  1166. message = "请先进行设置";
  1167. } else if (!currentConfig[currentConfig.player].regVersion) {
  1168. message = "请先下载注册表";
  1169. } else if (currentConfig[currentConfig.player].regVersion != DEFAULT_CONFIG[currentConfig.player].regVersion) {
  1170. message = "注册表有更新,请重新下载注册表";
  1171. }
  1172. if (message) {
  1173. toast(message, TOAST_TYPE.warn);
  1174. settingDiv.style.display = "none";
  1175. settingButton.click();
  1176. return;
  1177. }
  1178. }
  1179. loading(true);
  1180. try {
  1181. playButtonClickLimit();
  1182. handler.play();
  1183. if (currentConfig.closeAuto == 1 && page.url !== "https://www.lckp.top/play-with-mpv/index.html") {
  1184. setTimeout(() => {
  1185. if (history.length === 1) {
  1186. window.location.href = "about:blank";
  1187. window.top.close();
  1188. } else {
  1189. history.back();
  1190. }
  1191. }, 1000);
  1192. } else {
  1193. handler.pause();
  1194. }
  1195. } catch (error) {
  1196. toast("出错辣 ...... 😓", TOAST_TYPE.error);
  1197. console.log(error);
  1198. }
  1199. loading(false);
  1200. }
  1201. // 播放快捷键 CTRL + P
  1202. window.onkeydown = async function () {
  1203. if (event.ctrlKey && event.keyCode === 80 && !event.shiftKey) {
  1204. event.preventDefault();
  1205. playButton.click();
  1206. }
  1207. }
  1208. // 设置按钮
  1209. settingButton.onclick = function () {
  1210. let display = settingDiv.style.display;
  1211. if (display == "flex") {
  1212. settingDiv.style.display = "none";
  1213. } else {
  1214. infoDiv.style.display = "none";
  1215. settingDiv.style.display = "flex";
  1216. // 加载配置
  1217. softwarePathInput.value = currentConfig[currentConfig.player].path;
  1218. proxyInput.value = currentConfig.proxy;
  1219. $(`input:radio[name="${ID.bestQualityRadio}"][value="${currentConfig.bestQuality}"]`).prop('checked', true);
  1220. $(`input:radio[name="${ID.bilibiliCodecsRadio}"][value="${currentConfig.bilibiliCodecs}"]`).prop('checked', true);
  1221. $(`input:radio[name="${ID.playerRadio}"][value="${currentConfig.player}"]`).prop('checked', true);
  1222. playAutoInput.checked = currentConfig.playAuto == 1 ? true : false;
  1223. closeAutoInput.checked = currentConfig.closeAuto == 1 ? true : false;
  1224. syncStartTimeInput.checked = currentConfig.syncStartTime == 1 ? true : false;
  1225. $(`input:radio[name="${ID.subtitlePreferRadio}"][value="${currentConfig.subtitlePrefer}"]`).prop('checked', true);
  1226. switchPlayer($(`input:radio[name="${ID.playerRadio}"]:checked`).val());
  1227. }
  1228. }
  1229. // 播放器选择框
  1230. $(`input:radio[name="${ID.playerRadio}"]`).change(function () {
  1231. switchPlayer(this.value);
  1232. });
  1233. // 保存按钮
  1234. saveButton.onclick = function () {
  1235. let playerChecked = $(`input:radio[name="${ID.playerRadio}"]:checked`).val();
  1236. if (playerChecked == PLAYER.mpv.name || playerChecked == PLAYER.potplayer.name) {
  1237. let oldSoftwarePath = currentConfig[playerChecked].path;
  1238. let newSoftwarePath = softwarePathInput.value;
  1239. if (!newSoftwarePath) {
  1240. toast("软件路径不能为空", TOAST_TYPE.error);
  1241. return;
  1242. }
  1243. if (/.*[\u4e00-\u9fa5]+.*/g.test(newSoftwarePath)) {
  1244. toast("软件路径不能包含中文", TOAST_TYPE.error);
  1245. return;
  1246. }
  1247. newSoftwarePath = newSoftwarePath.replace(/[\\|/]+/g, "//");
  1248. if (!newSoftwarePath.endsWith(".com") && !newSoftwarePath.endsWith(".exe")) {
  1249. if (!newSoftwarePath.endsWith("//")) {
  1250. newSoftwarePath = newSoftwarePath + "//";
  1251. }
  1252. if (playerChecked == PLAYER.mpv.name) {
  1253. if (newSoftwarePath.toLowerCase().indexOf("mpvnet") != -1 || newSoftwarePath.toLowerCase().indexOf("mpv.net") != -1) {
  1254. newSoftwarePath = newSoftwarePath + "mpvnet.exe";
  1255. } else {
  1256. newSoftwarePath = newSoftwarePath + "mpv.exe";
  1257. }
  1258. } else if (playerChecked == PLAYER.potplayer.name) {
  1259. newSoftwarePath = newSoftwarePath + "PotPlayerMini64.exe";
  1260. }
  1261. }
  1262. softwarePathInput.value = newSoftwarePath;
  1263. currentConfig[playerChecked].path = newSoftwarePath;
  1264. switchStatus(downloadButton, softwarePathInput.value ? true : false);
  1265. if (oldSoftwarePath != newSoftwarePath) {
  1266. currentConfig[playerChecked].regVersion = "00000000";
  1267. }
  1268. }
  1269. currentConfig.proxy = proxyInput.value;
  1270. currentConfig.bestQuality = $(`input:radio[name="${ID.bestQualityRadio}"]:checked`).val();
  1271. currentConfig.bilibiliCodecs = $(`input:radio[name="${ID.bilibiliCodecsRadio}"]:checked`).val();
  1272. currentConfig.player = playerChecked;
  1273. currentConfig.subtitlePrefer = $(`input:radio[name="${ID.subtitlePreferRadio}"]:checked`).val();
  1274. currentConfig.playAuto = playAutoInput.checked ? 1 : 0;
  1275. currentConfig.closeAuto = closeAutoInput.checked ? 1 : 0;
  1276. currentConfig.syncStartTime = syncStartTimeInput.checked ? 1 : 0;
  1277. GM_setValue(KEY.config, currentConfig);
  1278. if (playAutoInput.checked && closeAutoInput.checked) {
  1279. toast("保存成功,如需修改配置请前往导航页");
  1280. } else {
  1281. toast("保存成功");
  1282. }
  1283. if (currentConfig.playAuto == 1) {
  1284. playButtonClickLimit();
  1285. }
  1286. if (document.getElementById("iptv") && localStorage.category == "iptv") {
  1287. localStorage.player = JSON.stringify(PLAYER[currentConfig.player]);
  1288. document.getElementById("iptv").click();
  1289. }
  1290. init();
  1291. }
  1292. // 下载按钮
  1293. downloadButton.onclick = function () {
  1294. let playerChecked = $(`input:radio[name="${ID.playerRadio}"]:checked`).val();
  1295. currentConfig[playerChecked].regVersion = DEFAULT_CONFIG[playerChecked].regVersion;
  1296. GM_setValue(KEY.config, currentConfig);
  1297. let reg = REG.replace("${SOFTWARE_PATH}", currentConfig[playerChecked].path);
  1298. reg = reg.replace(/\$\{PLAYER_NAME\}/g, playerChecked);
  1299. let a = document.createElement('a');
  1300. let blob = new Blob([reg], { 'type': 'application/octet-stream' });
  1301. a.href = window.URL.createObjectURL(blob);
  1302. a.download = `${playerChecked}-install.reg`;
  1303. a.click();
  1304. }
  1305. deleteButton.onclick = function () {
  1306. let playerChecked = $(`input:radio[name="${ID.playerRadio}"]:checked`).val();
  1307. currentConfig[playerChecked].regVersion = "00000000";
  1308. GM_setValue(KEY.config, currentConfig);
  1309. let reg = REG_DELETE.replace(/\$\{PLAYER_NAME\}/g, playerChecked);
  1310. let a = document.createElement('a');
  1311. let blob = new Blob([reg], { 'type': 'application/octet-stream' });
  1312. a.href = window.URL.createObjectURL(blob);
  1313. a.download = `${playerChecked}-delete.reg`;
  1314. a.click();
  1315. }
  1316. // 关闭按钮
  1317. for (let closeButton of closeButtons) {
  1318. closeButton.onclick = function () {
  1319. settingDiv.style.display = "none";
  1320. infoDiv.style.display = "none";
  1321. }
  1322. }
  1323. // 信息按钮
  1324. infoButton.onclick = function () {
  1325. let display = infoDiv.style.display;
  1326. if (display == "flex") {
  1327. infoDiv.style.display = "none";
  1328. } else {
  1329. settingDiv.style.display = "none";
  1330. infoDiv.style.display = "flex";
  1331. let title = handler.media.title;
  1332. infoInputs[0].value = title ? title : document.title;
  1333. infoInputs[1].value = handler.media.videoUrl;
  1334. infoInputs[2].value = handler.media.audioUrl;
  1335. infoInputs[3].value = handler.media.subtitleUrl;
  1336. infoInputs[4].value = handler.media.referer;
  1337. infoInputs[5].value = handler.media.origin;
  1338. for (const infoInput of infoInputs) {
  1339. if (infoInput.value) {
  1340. infoInput.style.cursor = "pointer";
  1341. infoInput.onclick = function () {
  1342. this.select();
  1343. navigator.clipboard.writeText(this.value);
  1344. toast("已复制到剪贴板");
  1345. }
  1346. }
  1347. }
  1348. }
  1349. }
  1350. let bestQualityRadios = document.getElementsByName(ID.bestQualityRadio);
  1351. let bilibiliCodecsRadios = document.getElementsByName(ID.bilibiliCodecsRadio);
  1352. let subtitlePreferRadios = document.getElementsByName(ID.subtitlePreferRadio);
  1353. // 切换播放器
  1354. function switchPlayer(player) {
  1355. player = PLAYER[player];
  1356. // mpv 和 potplayer 专属
  1357. if (player.name == PLAYER.mpv.name || player.name == PLAYER.potplayer.name) {
  1358. switchStatus(softwarePathInput, true);
  1359. softwarePathInput.value = currentConfig[player.name].path;
  1360. if (softwarePathInput.value) {
  1361. switchStatus(downloadButton, true);
  1362. } else {
  1363. switchStatus(downloadButton, false);
  1364. }
  1365. } else {
  1366. switchStatus(softwarePathInput, false);
  1367. switchStatus(downloadButton, false);
  1368. }
  1369. // 代理
  1370. let flag = player.params.proxy ? true : false;
  1371. switchStatus(proxyInput, flag);
  1372. // 音频
  1373. flag = player.params.audioUrl ? true : false;
  1374. for (const radio of bestQualityRadios) {
  1375. switchStatus(radio, flag);
  1376. }
  1377. for (const radio of bilibiliCodecsRadios) {
  1378. switchStatus(radio, flag);
  1379. }
  1380. // 字幕
  1381. flag = player.params.subtitleUrl ? true : false;
  1382. for (const radio of subtitlePreferRadios) {
  1383. switchStatus(radio, flag);
  1384. }
  1385. // 时间
  1386. flag = player.params.startTime ? true : false;
  1387. switchStatus(syncStartTimeSpan, flag);
  1388. switchStatus(syncStartTimeInput, flag);
  1389. }
  1390. // 全屏
  1391. document.addEventListener("fullscreenchange", () => {
  1392. if (document.fullscreenElement) {
  1393. page.isFullScreen = true;
  1394. buttonDiv.style.display = "none";
  1395. } else {
  1396. page.isFullScreen = false;
  1397. if (handler.media.videoUrl) {
  1398. buttonDiv.style.display = "flex";
  1399. }
  1400. }
  1401. });
  1402. // 限制播放按钮点击频率
  1403. function playButtonClickLimit() {
  1404. playButton.disabled = true;
  1405. setTimeout(() => {
  1406. playButton.disabled = false;
  1407. }, TIME.pauseInterval);
  1408. }
  1409. // 自定义播放器按钮
  1410. customPlayerButton.onclick = function () {
  1411. if (customPlayerTable.style.display == "flex") {
  1412. if (!videoUrlParamInput.value) {
  1413. toast("视频参数不能为空", TOAST_TYPE.error);
  1414. return;
  1415. }
  1416. currentConfig.customPlayer.params.videoUrl = videoUrlParamInput.value;
  1417. currentConfig.customPlayer.params.audioUrl = audioUrlParamInput.value;
  1418. currentConfig.customPlayer.params.subtitleUrl = subtitleUrlParamInput.value;
  1419. currentConfig.customPlayer.params.title = titleParamInput.value;
  1420. currentConfig.customPlayer.params.startTime = startTimeParamInput.value;
  1421. currentConfig.customPlayer.params.proxy = proxyParamInput.value;
  1422. currentConfig.customPlayer.params.referer = refererParamInput.value;
  1423. currentConfig.customPlayer.params.origin = originParamInput.value;
  1424. PLAYER.custom = currentConfig.customPlayer;
  1425. GM_setValue(KEY.config, currentConfig);
  1426. switchPlayer($(`input:radio[name="${ID.playerRadio}"]:checked`).val());
  1427. settingTable.style.display = "flex";
  1428. customPlayerTable.style.display = "none";
  1429. customPlayerButton.style.backgroundImage = ICON_BASE64.custom;
  1430. customPlayerButton.dataset.tip = "设置自定义播放器";
  1431. } else {
  1432. videoUrlParamInput.value = currentConfig.customPlayer.params.videoUrl;
  1433. audioUrlParamInput.value = currentConfig.customPlayer.params.audioUrl;
  1434. subtitleUrlParamInput.value = currentConfig.customPlayer.params.subtitleUrl;
  1435. titleParamInput.value = currentConfig.customPlayer.params.title;
  1436. startTimeParamInput.value = currentConfig.customPlayer.params.startTime;
  1437. proxyParamInput.value = currentConfig.customPlayer.params.proxy;
  1438. refererParamInput.value = currentConfig.customPlayer.params.referer;
  1439. originParamInput.value = currentConfig.customPlayer.params.origin;
  1440. settingTable.style.display = "none";
  1441. customPlayerTable.style.display = "flex";
  1442. customPlayerButton.style.backgroundImage = ICON_BASE64.back;
  1443. customPlayerButton.dataset.tip = "保存并返回";
  1444. }
  1445. }
  1446. }
  1447. // 切换元素状态
  1448. function switchStatus(element, flag) {
  1449. if (flag) {
  1450. element.readOnly = false;
  1451. element.disabled = false;
  1452. element.classList.remove(CLASS.readOnly);
  1453. } else {
  1454. element.readOnly = true;
  1455. element.disabled = true;
  1456. element.classList.add(CLASS.readOnly);
  1457. }
  1458. }
  1459. function sleep(ms) {
  1460. return new Promise(resolve => setTimeout(resolve, ms));
  1461. }
  1462. // 加载配置
  1463. function loadConfig() {
  1464. let oldConifg = GM_getValue(KEY.config);
  1465. currentConfig = JSON.parse(JSON.stringify(DEFAULT_CONFIG));
  1466. currentConfig.mpv.regVersion = "";
  1467. currentConfig.potplayer.regVersion = "";
  1468. if (!oldConifg) {
  1469. GM_setValue(KEY.config, currentConfig);
  1470. } else {
  1471. if (oldConifg.version != DEFAULT_CONFIG.version) {
  1472. for (const key in oldConifg) {
  1473. currentConfig[key] = oldConifg[key];
  1474. }
  1475. if (!currentConfig.mpv.path && currentConfig.mpvPath) {
  1476. currentConfig.mpv.path = currentConfig.mpvPath;
  1477. delete currentConfig['mpvPath'];
  1478. }
  1479. currentConfig.version = DEFAULT_CONFIG.version;
  1480. GM_setValue(KEY.config, currentConfig);
  1481. } else {
  1482. currentConfig = oldConifg;
  1483. GM_setValue(KEY.config, currentConfig);
  1484. }
  1485. }
  1486. PLAYER.custom = currentConfig.customPlayer;
  1487. }
  1488. class Media {
  1489. constructor() {
  1490. this.title = "";
  1491. this.videoUrl = "";
  1492. this.audioUrl = "";
  1493. this.subtitleUrl = "";
  1494. this.startTime = "";
  1495. this.referer = "";
  1496. this.origin = "";
  1497. this.proxy = "";
  1498. this.other = "";
  1499. }
  1500. setTitle(title) {
  1501. this.title = title;
  1502. }
  1503. setVideoUrl(videoUrl) {
  1504. if (this.check(videoUrl)) {
  1505. this.videoUrl = videoUrl;
  1506. if (!this.title) {
  1507. this.setTitle(document.title);
  1508. }
  1509. let nxParserIframe = document.getElementById(ID.nxParserIframe);
  1510. if (nxParserIframe) {
  1511. document.body.removeChild(nxParserIframe);
  1512. }
  1513. if (document.getElementById(ID.buttonDiv)) {
  1514. document.getElementById(ID.buttonDiv).style.display = "flex";
  1515. if (currentConfig.playAuto == 1) {
  1516. document.getElementById(ID.playButton).click();
  1517. }
  1518. document.getElementById(ID.infoButton).style.visibility = "visible";
  1519. document.getElementById(ID.settingButton).style.visibility = "visible";
  1520. document.getElementById(ID.playButton).style.visibility = "visible";
  1521. setTimeout(() => {
  1522. document.getElementById(ID.infoButton).style.visibility = "hidden";
  1523. document.getElementById(ID.settingButton).style.visibility = "hidden";
  1524. document.getElementById(ID.playButton).style.visibility = "hidden";
  1525. }, TIME.showButton);
  1526. }
  1527. }
  1528. }
  1529. setAudioUrl(audioUrl) {
  1530. this.audioUrl = audioUrl;
  1531. }
  1532. setSubtitleUrl(subtitleUrl) {
  1533. this.subtitleUrl = subtitleUrl;
  1534. }
  1535. setStartTime(startTime) {
  1536. this.startTime = Math.floor(startTime);
  1537. }
  1538. setReferer(referer) {
  1539. this.referer = referer;
  1540. }
  1541. setOrigin(origin) {
  1542. this.origin = origin;
  1543. }
  1544. setProxy(proxy) {
  1545. this.proxy = proxy;
  1546. }
  1547. setOther(other) {
  1548. this.other = other;
  1549. }
  1550. // 检查视频链接是否有效
  1551. check(videoUrl) {
  1552. if (videoUrl && videoUrl.startsWith("http")) {
  1553. if (videoUrl.match(/(\.m3u|\.m3u8)/g) && videoUrl != localStorage.iptvUrl) {
  1554. let m3u8 = "";
  1555. $.ajax({
  1556. type: "GET",
  1557. url: videoUrl,
  1558. async: false,
  1559. success: function (res) {
  1560. m3u8 = res;
  1561. }
  1562. });
  1563. if (m3u8 && m3u8.indexOf("png") != -1) {
  1564. console.log("Play-With-MPV:m3u8 链接无法播放:" + videoUrl);
  1565. return false;
  1566. }
  1567. }
  1568. if (videoUrl.startsWith("https://www.mp4")) {
  1569. return false;
  1570. }
  1571. return true;
  1572. }
  1573. console.log(`Play-With-MPV:链接无效:${videoUrl}`);
  1574. return false;
  1575. }
  1576. }
  1577. class BaseHandler {
  1578. constructor() {
  1579. loadConfig();
  1580. this.media = new Media();
  1581. this.media.setProxy(currentConfig.proxy);
  1582. for (const key in PLAYER) {
  1583. if (PLAYER[key].name == currentConfig.player) {
  1584. this.player = PLAYER[key];
  1585. break;
  1586. }
  1587. }
  1588. if (window.self == window.top) {
  1589. if (!document.getElementById(ID.buttonDiv)) {
  1590. console.log(INFO);
  1591. appendCSS();
  1592. appendHTML();
  1593. addListener();
  1594. }
  1595. document.getElementById(ID.buttonDiv).style.display = "none";
  1596. }
  1597. }
  1598. initCheck() {
  1599. return window.location.href != page.url;
  1600. }
  1601. async parse() { }
  1602. pause() {
  1603. let videos = document.getElementsByTagName("video");
  1604. if (videos && videos.length > 0) {
  1605. let i = 0;
  1606. while (i < TRY_TIME.maxPause) {
  1607. setTimeout(function () {
  1608. for (let video of videos) {
  1609. video.pause();
  1610. }
  1611. }, TIME.pauseInterval * i);
  1612. i++;
  1613. }
  1614. } else if (this.iframe) {
  1615. this.iframe.postMessage({ method: METHOD.pause }, "*");
  1616. }
  1617. }
  1618. play() {
  1619. let link = "";
  1620. for (let key in this.player.params) {
  1621. if (key == "title") {
  1622. continue;
  1623. }
  1624. if (key == "startTime") {
  1625. if (currentConfig.syncStartTime != 1) {
  1626. continue;
  1627. } else {
  1628. let videos = document.getElementsByTagName("video");
  1629. for (let i = 0; i < videos.length; i++) {
  1630. if (videos[i].currentTime != 0) {
  1631. this.media.setStartTime(videos[i].currentTime);
  1632. break;
  1633. }
  1634. }
  1635. }
  1636. }
  1637. let value = this.media[key];
  1638. if (value) {
  1639. let param = this.player.params[key];
  1640. let matchKey = '${' + key + '}';
  1641. while (param.indexOf(matchKey) != -1) {
  1642. param = param.replace(matchKey, value);
  1643. }
  1644. matchKey = '${E' + key + '}';
  1645. while (param.indexOf(matchKey) != -1) {
  1646. param = param.replace(matchKey, encodeURIComponent(value));
  1647. }
  1648. matchKey = '${D' + key + '}';
  1649. while (param.indexOf(matchKey) != -1) {
  1650. param = param.replace(matchKey, decodeURIComponent(value));
  1651. }
  1652. link = link + param;
  1653. }
  1654. }
  1655. if (this.media.title) {
  1656. let maxLength = 1950 - link.length;
  1657. let title = encodeURIComponent(this.media.title);
  1658. if (title.length > maxLength) {
  1659. title = title.substring(0, maxLength) + '...';
  1660. }
  1661. let param = this.player.params.title;
  1662. param = param.replace('${title}', title);
  1663. link = link + param;
  1664. }
  1665. window.open(link, "_self");
  1666. }
  1667. // 监听子页面事件
  1668. addIframeListener() {
  1669. let that = this;
  1670. window.addEventListener("message", function (event) {
  1671. that.iframe = event.source;
  1672. if (event.data.method == METHOD.pause) {
  1673. that.pause();
  1674. } else if (event.data.method == METHOD.report) {
  1675. that.media.setStartTime(event.data.media.startTime);
  1676. if (!that.media.videoUrl) {
  1677. that.media.setVideoUrl(event.data.media.videoUrl);
  1678. }
  1679. }
  1680. }, false);
  1681. }
  1682. // 监听顶层页面事件
  1683. addTopListener() {
  1684. let that = this;
  1685. window.addEventListener("message", function (event) {
  1686. if (event.data.method == METHOD.pause) {
  1687. that.pause();
  1688. }
  1689. }, false);
  1690. // 定时上报当前视频信息
  1691. setInterval(() => {
  1692. let video = document.getElementsByTagName("video")[0];
  1693. if (video) {
  1694. this.media.setStartTime(video.currentTime);
  1695. }
  1696. window.top.postMessage({ method: METHOD.report, media: that.media }, "*");
  1697. }, TIME.reportInterval);
  1698. }
  1699. // yt-dlp 支持网站解析器
  1700. ytDlpParser() {
  1701. return page.url;
  1702. }
  1703. // video 元素解析器
  1704. videoParser() {
  1705. let videos = document.getElementsByTagName("video");
  1706. for (let video of videos) {
  1707. let url = video.src;
  1708. if (url && url.startsWith("http")) {
  1709. return url;
  1710. }
  1711. }
  1712. }
  1713. // iframe 元素解析器
  1714. iframeParser() {
  1715. let iframes = document.getElementsByTagName("iframe");
  1716. for (let iframe of iframes) {
  1717. let urls = iframe.src.match(VIDEO_URL_REGEX);
  1718. if (urls && urls.length > 0) {
  1719. return urls[0];
  1720. }
  1721. }
  1722. }
  1723. // html 解析器
  1724. htmlParser() {
  1725. let urls = document.body.innerHTML.match(VIDEO_URL_REGEX);
  1726. if (urls && urls.length > 0) {
  1727. return urls[0];
  1728. }
  1729. }
  1730. // script 解析器
  1731. scriptParser() {
  1732. for (let script of document.scripts) {
  1733. let urls = script.innerHTML.match(VIDEO_URL_REGEX);
  1734. if (urls && urls.length > 0) {
  1735. return urls[0];
  1736. }
  1737. }
  1738. }
  1739. // url 解析器
  1740. urlParser() {
  1741. let urls = page.url.match(VIDEO_URL_REGEX);
  1742. if (urls && urls.length > 0) {
  1743. return urls[0];
  1744. }
  1745. }
  1746. // 诺讯解析
  1747. nxParser() {
  1748. handler.addIframeListener();
  1749. let nxParserIframe = document.getElementById(ID.nxParserIframe);
  1750. if (!nxParserIframe) {
  1751. nxParserIframe = document.createElement("iframe");
  1752. nxParserIframe.id = ID.nxParserIframe;
  1753. nxParserIframe.src = `https://yun.nxflv.com/?url=${page.url}`;
  1754. document.body.appendChild(nxParserIframe);
  1755. }
  1756. }
  1757. }
  1758. // 获取B站视频播放链接
  1759. async function getBilibiliPlayUrl(avid, cid) {
  1760. if (handler.player.name == PLAYER.mpv.name) {
  1761. handler.media.setOther(`--script-opts="cid=${cid}"`);
  1762. }
  1763. if (!handler.player.params.audioUrl || await getBilibiliVideoDash(avid, cid) == -1) {
  1764. getBilibiliVideoDurl(avid, cid);
  1765. }
  1766. if (currentConfig.subtitlePrefer != "off") {
  1767. getBilibiliVideoSubtitle(avid, cid);
  1768. }
  1769. }
  1770. // 获取B站 DASH 格式视频
  1771. async function getBilibiliVideoDash(avid, cid) {
  1772. let result = 0;
  1773. await $.ajax({
  1774. type: "GET",
  1775. url: `https://api.bilibili.com/x/player/playurl?qn=120&otype=json&fourk=1&fnver=0&fnval=4048&avid=${avid}&cid=${cid}`,
  1776. xhrFields: {
  1777. withCredentials: true
  1778. },
  1779. async: false,
  1780. success: function (res) {
  1781. if (!res.data) {
  1782. toast("Play-With-MPV 获取视频失败,如未登录请先登录并刷新页面", TOAST_TYPE.error);
  1783. tryTime = TRY_TIME.maxParse;
  1784. return;
  1785. }
  1786. let videoUrl = undefined;
  1787. let audioUrl = undefined;
  1788. let dash = res.data.dash;
  1789. if (!dash) {
  1790. result = -1;
  1791. return;
  1792. }
  1793. let hiRes = dash.flac;
  1794. let dolby = dash.dolby;
  1795. if (hiRes && hiRes.audio) {
  1796. audioUrl = hiRes.audio.baseUrl;
  1797. } else if (dolby && dolby.audio) {
  1798. audioUrl = dolby.audio[0].base_url;
  1799. } else if (dash.audio) {
  1800. audioUrl = dash.audio[0].baseUrl;
  1801. }
  1802. let i = 0;
  1803. while (i < dash.video.length && dash.video[i].id > BEST_QUALITY.bilibili[currentConfig.bestQuality]) {
  1804. i++;
  1805. }
  1806. videoUrl = dash.video[i].baseUrl;
  1807. let id = dash.video[i].id;
  1808. while (i < dash.video.length) {
  1809. if (dash.video[i].id != id) {
  1810. break;
  1811. }
  1812. if (dash.video[i].codecid == currentConfig.bilibiliCodecs) {
  1813. videoUrl = dash.video[i].baseUrl;
  1814. break;
  1815. }
  1816. i++;
  1817. }
  1818. handler.media.setAudioUrl(audioUrl);
  1819. handler.media.setVideoUrl(videoUrl);
  1820. result = 1;
  1821. }
  1822. });
  1823. return result;
  1824. }
  1825. // 获取B站 FLV / MP4 格式视频
  1826. function getBilibiliVideoDurl(avid, cid) {
  1827. $.ajax({
  1828. type: "GET",
  1829. url: `https://api.bilibili.com/x/player/playurl?qn=120&otype=json&fourk=1&fnver=0&fnval=128&avid=${avid}&cid=${cid}`,
  1830. xhrFields: {
  1831. withCredentials: true
  1832. },
  1833. async: false,
  1834. success: function (res) {
  1835. if (!res.data) {
  1836. toast("Play-With-MPV 获取视频失败,如未登录请先登录并刷新页面", TOAST_TYPE.error);
  1837. tryTime = TRY_TIME.maxParse;
  1838. return;
  1839. }
  1840. handler.media.setVideoUrl(res.data.durl[0].url);
  1841. }
  1842. });
  1843. }
  1844. // 获取B站视频字幕
  1845. function getBilibiliVideoSubtitle(avid, cid) {
  1846. $.ajax({
  1847. type: "GET",
  1848. url: `https://api.bilibili.com/x/player/v2?aid=${avid}&cid=${cid}`,
  1849. xhrFields: {
  1850. withCredentials: true
  1851. },
  1852. async: false,
  1853. success: function (res) {
  1854. if (res.code == 0 && res.data.subtitle && res.data.subtitle.subtitles.length > 0) {
  1855. let subtitles = res.data.subtitle.subtitles;
  1856. let url = "https:" + subtitles[0].subtitle_url;
  1857. let lan = subtitles[0].lan;
  1858. for (const subtitle of subtitles) {
  1859. if (currentConfig.subtitlePrefer.startsWith("zh") && subtitle.lan.startsWith("zh")) {
  1860. url = "https:" + subtitle.subtitle_url;
  1861. lan = subtitle.lan;
  1862. }
  1863. if (subtitle.lan == currentConfig.subtitlePrefer) {
  1864. url = "https:" + subtitle.subtitle_url;
  1865. lan = subtitle.lan;
  1866. break;
  1867. }
  1868. }
  1869. handler.media.setSubtitleUrl(`https://www.lckp.top/common/bilibili/jsonToSrt/?url=${url}&lan=${lan}`);
  1870. }
  1871. }
  1872. });
  1873. }
  1874. // 获取B站视频 aid 和 cid
  1875. function getBilibiliVideoId() {
  1876. let hasInitialState = false;
  1877. try {
  1878. if (__INITIAL_STATE__) {
  1879. hasInitialState = true;
  1880. }
  1881. } catch (error) {
  1882. hasInitialState = false;
  1883. }
  1884. if (!hasInitialState) {
  1885. return undefined;
  1886. }
  1887. let video = undefined;
  1888. if (__INITIAL_STATE__.epInfo) {
  1889. video = __INITIAL_STATE__.epInfo;
  1890. } else if (__INITIAL_STATE__.videoData) {
  1891. video = __INITIAL_STATE__.videoData;
  1892. } else if (__INITIAL_STATE__.videoInfo) {
  1893. video = __INITIAL_STATE__.videoInfo;
  1894. }
  1895. let aid = video.aid;
  1896. let cid = video.cid;
  1897. let p = __INITIAL_STATE__.p;
  1898. if (p && p > 1) {
  1899. cid = __INITIAL_STATE__.cidMap[aid].cids[p];
  1900. }
  1901. let videoId = {
  1902. aid: aid,
  1903. cid: cid
  1904. };
  1905. return videoId;
  1906. }
  1907. const BEST_QUALITY = {
  1908. bilibili: {
  1909. "unlimited": 127,
  1910. "2160p": 126,
  1911. "1440p": 116,
  1912. "1080p": 116,
  1913. "720p": 74,
  1914. "480p": 32
  1915. },
  1916. bilibiliLive: {
  1917. "unlimited": 4,
  1918. "2160p": 4,
  1919. "1440p": 4,
  1920. "1080p": 4,
  1921. "720p": 3,
  1922. "480p": 2
  1923. },
  1924. ytdlp: {
  1925. "unlimited": "",
  1926. "2160p": "--ytdl-format=bestvideo[height<=?2160]%2Bbestaudio/best",
  1927. "1440p": "--ytdl-format=bestvideo[height<=?1440]%2Bbestaudio/best",
  1928. "1080p": "--ytdl-format=bestvideo[height<=?1080]%2Bbestaudio/best",
  1929. "720p": "--ytdl-format=bestvideo[height<=?720]%2Bbestaudio/best",
  1930. "480p": "--ytdl-format=bestvideo[height<=?480]%2Bbestaudio/best"
  1931. }
  1932. }
  1933. var websiteList = [
  1934. {
  1935. // ✅ https://www.bilibili.com/bangumi/play/ep508404
  1936. // ✅ https://www.bilibili.com/bangumi/play/ep319063
  1937. name: "B站影视",
  1938. home: [
  1939. "https://www.bilibili.com"
  1940. ],
  1941. regex: /^https:\/\/www\.bilibili\.com\/bangumi\/play\/.*/g,
  1942. handler: class Handler extends BaseHandler {
  1943. constructor() {
  1944. super();
  1945. this.media.setReferer("https://www.bilibili.com");
  1946. }
  1947. async parse() {
  1948. // 直接从数据中获取 aid 和 cid
  1949. let videoId = getBilibiliVideoId();
  1950. if (videoId && videoId.aid && videoId.cid) {
  1951. getBilibiliPlayUrl(videoId.aid, videoId.cid);
  1952. return;
  1953. }
  1954.  
  1955. // 从元素提取 epid 请求接口获取 aid 和 cid
  1956. let epid = page.url.match(/ep(\d+)/);
  1957. if (epid && epid[1]) {
  1958. epid = epid[1];
  1959. } else {
  1960. let epidElement = document.getElementsByClassName("ep-item cursor visited")[0];
  1961. if (!epidElement) {
  1962. epidElement = document.getElementsByClassName('ep-item cursor')[0];
  1963. }
  1964. if (epidElement) {
  1965. epid = epidElement.getElementsByTagName('a')[0].href.match(/ep(\d+)/)[1];
  1966. } else {
  1967. epidElement = document.getElementsByClassName("squirtle-pagelist-select-item active squirtle-blink")[0];
  1968. if (epidElement) {
  1969. epid = epidElement.dataset.value;
  1970. }
  1971. }
  1972. }
  1973. if (!epid) {
  1974. return;
  1975. }
  1976. $.ajax({
  1977. type: "GET",
  1978. url: `https://api.bilibili.com/pgc/view/web/season?ep_id=${epid}`,
  1979. xhrFields: {
  1980. withCredentials: true
  1981. },
  1982. async: false,
  1983. success: function (res) {
  1984. let currentEpisode;
  1985. let section = res.result.section;
  1986. if (!section) {
  1987. section = new Array();
  1988. }
  1989. section.push({ episodes: res.result.episodes });
  1990. for (let i = section.length - 1; i >= 0; i--) {
  1991. let episodes = section[i].episodes;
  1992. for (const episode of episodes) {
  1993. if (episode.id == epid) {
  1994. currentEpisode = episode;
  1995. break;
  1996. }
  1997. }
  1998. if (currentEpisode) {
  1999. break;
  2000. }
  2001. }
  2002. getBilibiliPlayUrl(currentEpisode.aid, currentEpisode.cid);
  2003. }
  2004. })
  2005. }
  2006. },
  2007. },
  2008. {
  2009. // ✅ https://www.bilibili.com/video/BV1Hd4y1k7Vb
  2010. // ✅ https://www.bilibili.com/video/av2
  2011. // ✅ https://www.bilibili.com/video/BV17Z4y117Qm
  2012. // ✅ https://www.bilibili.com/list/ml1806211634?oid=822115390&bvid=BV1Fg4y1p7Qe
  2013. name: "B站投稿",
  2014. regex: /^https:\/\/www\.bilibili\.com\/(video\/|list.*)(BV|av).*/g,
  2015. handler: class Handler extends BaseHandler {
  2016. constructor() {
  2017. super();
  2018. this.media.setReferer("https://www.bilibili.com");
  2019. }
  2020. initCheck() {
  2021. if (super.initCheck()) {
  2022. let newPageUrl = window.location.href;
  2023. let oldPageUrl = page.url;
  2024. let regex = /(&|\?)vd_source=\w+/;
  2025. if (regex.test(newPageUrl.replace(oldPageUrl, ""))) {
  2026. page.url = newPageUrl;
  2027. return false;
  2028. }
  2029. return true;
  2030. }
  2031. return false;
  2032. }
  2033. async parse() {
  2034. // 直接从数据中获取 aid 和 cid
  2035. let videoId = getBilibiliVideoId();
  2036. if (videoId && videoId.aid && videoId.cid) {
  2037. getBilibiliPlayUrl(videoId.aid, videoId.cid);
  2038. return;
  2039. }
  2040.  
  2041. // 通过 bvid/avid 请求接口获取 aid 和 cid
  2042. let param = undefined;
  2043. let bvid = page.url.match(/BV([0-9a-zA-Z]+)/);
  2044. if (bvid && bvid[1]) {
  2045. param = `bvid=${bvid[1]}`;
  2046. } else {
  2047. let avid = page.url.match(/av([0-9]+)/);
  2048. if (avid && avid[1]) {
  2049. param = `aid=${avid[1]}`;
  2050. }
  2051. }
  2052. if (!param) {
  2053. return;
  2054. }
  2055. $.ajax({
  2056. type: "GET",
  2057. url: `https://api.bilibili.com/x/web-interface/view?${param}`,
  2058. xhrFields: {
  2059. withCredentials: true
  2060. },
  2061. async: false,
  2062. success: function (res) {
  2063. let aid = res.data.aid;
  2064. let cid = res.data.cid;
  2065. let index = page.url.indexOf("?p=");
  2066. if (index != -1 && res.data.pages.length > 1) {
  2067. let p = page.url.substring(index + 3);
  2068. let endIndex = p.indexOf("&");
  2069. if (endIndex != -1) {
  2070. p = p.substring(0, endIndex);
  2071. }
  2072. cid = res.data.pages[p - 1].cid;
  2073. }
  2074. getBilibiliPlayUrl(aid, cid);
  2075. }
  2076. })
  2077. }
  2078. },
  2079. },
  2080. {
  2081. // ✅ https://www.bilibili.com/festival/2023bnj?bvid=BV17G4y1X7vQ
  2082. name: "B站节日",
  2083. regex: /^https:\/\/www\.bilibili\.com\/festival\/.*/g,
  2084. handler: class Handler extends BaseHandler {
  2085. constructor() {
  2086. super();
  2087. this.media.setReferer("https://www.bilibili.com");
  2088. }
  2089. initCheck() {
  2090. if (super.initCheck()) {
  2091. return true;
  2092. }
  2093. let oldvideoId = this.videoId;
  2094. let newvideoId = getBilibiliVideoId();
  2095. if (oldvideoId && oldvideoId.cid != newvideoId.cid) {
  2096. return true;
  2097. }
  2098. return false;
  2099. }
  2100. async parse() {
  2101. let videoId = getBilibiliVideoId();
  2102. if (videoId && videoId.aid && videoId.cid) {
  2103. this.videoId = videoId;
  2104. getBilibiliPlayUrl(videoId.aid, videoId.cid);
  2105. return;
  2106. } else {
  2107. toast("Play-With-MPV 读取视频数据失败,请尝试清理B站缓存后刷新重试", TOAST_TYPE.error, 5000);
  2108. tryTime = TRY_TIME.maxParse;
  2109. }
  2110. }
  2111. },
  2112. },
  2113. {
  2114. // ✅ https://live.bilibili.com/7777
  2115. name: "B站直播",
  2116. home: [
  2117. "https://live.bilibili.com"
  2118. ],
  2119. regex: /^https:\/\/live\.bilibili\.com\/\d+.*/g,
  2120. handler: class Handler extends BaseHandler {
  2121. async parse() {
  2122. let iframes = document.getElementsByTagName("iframe");
  2123. let roomid = undefined;
  2124. for (let iframe of iframes) {
  2125. let roomids = iframe.src.match(/^https:\/\/live\.bilibili\.com.*(roomid=\d+|blanc\/\d+).*/);
  2126. if (roomids && roomids[1]) {
  2127. roomid = roomids[1].match(/\d+/)[0];
  2128. break;
  2129. }
  2130. }
  2131. if (!roomid) {
  2132. console.log("Play-With-MPV:找不到 roomid:" + roomid);
  2133. return;
  2134. }
  2135.  
  2136. let that = this;
  2137. $.ajax({
  2138. type: "GET",
  2139. url: `https://api.live.bilibili.com/room/v1/Room/playUrl?quality=${BEST_QUALITY.bilibiliLive[currentConfig.bestQuality]}&cid=${roomid}`,
  2140. async: false,
  2141. xhrFields: {
  2142. withCredentials: true
  2143. },
  2144. success: function (res) {
  2145. that.media.setVideoUrl(res.data.durl[0].url);
  2146. }
  2147. });
  2148. }
  2149. },
  2150. },
  2151. {
  2152. // ✅ https://www.ixigua.com/
  2153. name: "西瓜视频",
  2154. home: [
  2155. "https://www.ixigua.com"
  2156. ],
  2157. regex: /^https:\/\/www\.ixigua\.com\/\d.*/g,
  2158. handler: class Handler extends BaseHandler {
  2159. constructor() {
  2160. super();
  2161. this.media.setReferer("https://www.ixigua.com/");
  2162. }
  2163. async parse() {
  2164. let that = this;
  2165. $.ajax({
  2166. type: "GET",
  2167. url: page.url,
  2168. async: false,
  2169. success: function (res) {
  2170. try {
  2171. let _SSR_HYDRATED_DATA = (new Function("return " + res.match(/<script id="SSR_HYDRATED_DATA"[^<]*window._SSR_HYDRATED_DATA=({[^<]*})[^<]*<\/script>/)[1]))();
  2172. let packerData = _SSR_HYDRATED_DATA.anyVideo.gidInformation.packerData;
  2173. let main_url = undefined;
  2174. if (packerData.video) {
  2175. let videoList = packerData.video.videoResource.normal.video_list;
  2176. if (videoList) {
  2177. let video = undefined;
  2178. for (const key in videoList) {
  2179. if (!video || videoList[key].vheight > video.vheight) {
  2180. video = videoList[key];
  2181. }
  2182. }
  2183. main_url = video.main_url;
  2184. }
  2185. that.media.setVideoUrl(window.atob(main_url).replace("http://", "https://"));
  2186. return;
  2187. }
  2188. } catch (error) {
  2189. console.error("解析出错:" + error);
  2190. }
  2191. that.nxParser();
  2192. }
  2193. });
  2194. }
  2195. },
  2196. },
  2197. {
  2198. // ✅ https://yun.nxflv.com/?url=https://www.ixigua.com/7186534626612118071
  2199. name: "诺讯解析",
  2200. regex: /^https:\/\/yun\.nxflv\.com\/\?url=.+/g,
  2201. handler: class Handler extends BaseHandler {
  2202. constructor() {
  2203. super();
  2204. this.addTopListener();
  2205. }
  2206. async parse() {
  2207. let url = this.videoParser();
  2208. if (url.startsWith("blob")) {
  2209. for (let index = 0; index < sessionStorage.key.length; index++) {
  2210. url = sessionStorage.key(index);
  2211. url = url.match(/http[^#]*/g);
  2212. if (url && url.length > 0) {
  2213. url = url[0];
  2214. }
  2215. }
  2216. }
  2217. this.media.setVideoUrl(url);
  2218. }
  2219. },
  2220. },
  2221. {
  2222. // ✅ https://ddys.art/bleach-thousand-year-blood-war
  2223. name: "低端影视",
  2224. home: [
  2225. "https://ddys.art",
  2226. "https://ddys.pro"
  2227. ],
  2228. regex: /^https:\/\/(ddys\.art|ddys\.pro)\/.*/g,
  2229. handler: class Handler extends BaseHandler {
  2230. async parse() {
  2231. let video = document.getElementsByTagName("video")[0];
  2232. if (video.paused) {
  2233. document.getElementsByClassName('vjs-big-play-button')[0].click();
  2234. }
  2235. let url = this.videoParser();
  2236. if (url) {
  2237. let index = url.indexOf("?");
  2238. if (index != -1) {
  2239. url = url.substring(0, index + 1) + encodeURIComponent(url.substring(index + 1));
  2240. }
  2241. this.media.setVideoUrl(url);
  2242. let playing = document.getElementsByClassName("wp-playlist-playing")[0];
  2243. if (playing) {
  2244. let episode = playing.textContent.replace(/(\n|\t|\d\.)/g, "");
  2245. if (episode != " 全") {
  2246. this.media.title = document.getElementsByClassName("post-title")[0].textContent + episode + " - 低端影视";
  2247. }
  2248. }
  2249. }
  2250. }
  2251. },
  2252. },
  2253. {
  2254. // ✅ https://www.libvio.cc/play/714634-1-11.html
  2255. name: "LIBVIO",
  2256. home: [
  2257. "https://www.libvio.cc",
  2258. "https://libvio.fun",
  2259. "https://libvio.me",
  2260. "https://www.libvio.me"
  2261. ],
  2262. regex: /^https?:\/\/.*\.libvio\..*\/play.*/g,
  2263. handler: class Handler extends BaseHandler {
  2264. constructor() {
  2265. super();
  2266. this.addIframeListener();
  2267. }
  2268. }
  2269. },
  2270. {
  2271. name: "LIBVIO播放器",
  2272. regex: /^https:\/\/(.*\.chinaeast2\.cloudapp\.chinacloudapi\.cn|.*\.cfnode1\.xyz)\/.*\?url=.*/g,
  2273. handler: class Handler extends BaseHandler {
  2274. constructor() {
  2275. super();
  2276. this.addTopListener();
  2277. }
  2278. async parse() {
  2279. let url = urls;
  2280. let index = url.indexOf("?");
  2281. if (index != -1) {
  2282. url = url.substring(0, index + 1) + encodeURIComponent(url.substring(index + 1));
  2283. }
  2284. this.media.setVideoUrl(url);
  2285. }
  2286. }
  2287. },
  2288. {
  2289. // ✅ https://www.nivod.tv/UXEwMmLqnUjHG5e4MwmlvmVnWiAJ9rIQ-RofV7wPhhed3uoi50mYsftLPq4mYyIhB-720-0-0-play.html?x=1
  2290. name: "泥视频",
  2291. home: [
  2292. "https://www.nivod.tv",
  2293. ],
  2294. regex: /^https:\/\/www\.nivod\.tv\/.*play\.html?.*/g,
  2295. handler: class Handler extends BaseHandler {
  2296. async parse() {
  2297. this.media.setVideoUrl(__dp.options.video.url);
  2298. this.media.setTitle(document.title);
  2299. }
  2300. }
  2301. },
  2302. {
  2303. // ✅ https://www.pkmkv.com/py/268677-2-11.html
  2304. name: "片库",
  2305. home: [
  2306. "https://www.pkmkv.com",
  2307. ],
  2308. regex: /^https:\/\/www\.pkmkv\.com\/py\/.*/g,
  2309. handler: class Handler extends BaseHandler {
  2310. constructor() {
  2311. super();
  2312. this.addIframeListener();
  2313. }
  2314. async parse() {
  2315. this.media.setVideoUrl(player_aaaa.url);
  2316. }
  2317. }
  2318. },
  2319. {
  2320. name: "片库播放器",
  2321. regex: /^https:\/\/www\.pkmkv\.com\/addons\/dplayer\/\?url=.*/g,
  2322. handler: class Handler extends BaseHandler {
  2323. constructor() {
  2324. super();
  2325. this.addTopListener();
  2326. }
  2327. }
  2328. },
  2329. {
  2330. // ✅ https://www.btnull.org/py/BBnLd_9.html?167094
  2331. name: "无名小站",
  2332. home: [
  2333. "https://www.btnull.org",
  2334. "https://www.btnull.to",
  2335. "https://www.btnull.nu",
  2336. "https://www.btnull.in",
  2337. ],
  2338. regex: /^https:\/\/(www.btnull.org|www.btnull.to|www.btnull.nu|www.btnull.in)\/py\/.*/g,
  2339. handler: class Handler extends BaseHandler {
  2340. async parse() {
  2341. this.media.setVideoUrl(this.htmlParser());
  2342. }
  2343. }
  2344. },
  2345. {
  2346. // ✅ https://www.926dm.com/play/6792-1-91.html
  2347. // ✅ http://www.926dm.com/play/7800-1-10.html
  2348. // ✅ http://www.dmlaa.com/play/7696-1-10.html
  2349. // ✅ http://www.qdmsh.com/play/7663-1-10.html
  2350. // ✅ http://www.ntdm8.com/play/4973-1-1.html
  2351. name: "樱花动漫网",
  2352. home: [
  2353. "https://www.926dm.com",
  2354. "http://www.926dm.com",
  2355. "http://www.dmlaa.com",
  2356. "http://www.qdmsh.com",
  2357. "http://www.ntdm8.com"
  2358. ],
  2359. regex: /^https?:\/\/www\.(926dm|dmlaa|qdmsh|ntdm8)\.com\/play\/.*/g,
  2360. handler: class Handler extends BaseHandler {
  2361. constructor() {
  2362. super();
  2363. this.addIframeListener();
  2364. }
  2365. }
  2366. },
  2367. {
  2368. name: "樱花动漫网播放器",
  2369. regex: /^https:\/\/danmu\.yhdmjx\.com\/.*php\?url=.*/g,
  2370. handler: class Handler extends BaseHandler {
  2371. constructor() {
  2372. super();
  2373. this.addTopListener();
  2374. }
  2375. async parse() {
  2376. this.media.setVideoUrl(this.videoParser());
  2377. }
  2378. }
  2379. },
  2380. {
  2381. // ✅ https://dick.xfani.com/watch/582/1/11.html
  2382. name: "稀饭动漫",
  2383. home: [
  2384. "https://dick.xfani.com"
  2385. ],
  2386. regex: /^https:\/\/dick\.xfani\.com\/watch\/.*/g,
  2387. handler: class Handler extends BaseHandler {
  2388. constructor() {
  2389. super();
  2390. this.addIframeListener();
  2391. }
  2392. }
  2393. },
  2394. {
  2395. name: "稀饭动漫播放器",
  2396. regex: /(^https:\/\/dick\.xfani\.com\/addons\/dp\/player\/.*|^https:\/\/m3\.moedot\.net\/muiplayer\/\?url=.*)/g,
  2397. handler: class Handler extends BaseHandler {
  2398. constructor() {
  2399. super();
  2400. this.addTopListener();
  2401. }
  2402. async parse() {
  2403. if (config.url.indexOf(".m3u8") > 0 || config.url.indexOf(".mp4") > 0 || config.url.indexOf(".flv") > 0) {
  2404. this.media.setVideoUrl(config.url);
  2405. } else {
  2406. let that = this;
  2407. $.ajax({
  2408. type: "POST",
  2409. url: "api_currentConfig.php",
  2410. data: { "url": config.url, "time": config.time, "key": config.key, "title": config.title },
  2411. async: false,
  2412. success: function (res) {
  2413. if (res.code == "200") {
  2414. that.media.setVideoUrl(res.url);
  2415. }
  2416. }
  2417. });
  2418. }
  2419. }
  2420. }
  2421. },
  2422. {
  2423. name: "稀饭动漫播放器",
  2424. regex: /^https:\/\/player\.moedot\.net\/player\/.*/g,
  2425. handler: class Handler extends BaseHandler {
  2426. constructor() {
  2427. super();
  2428. this.addTopListener();
  2429. }
  2430. async parse() {
  2431. this.media.setVideoUrl(this.urlParser());
  2432. }
  2433. }
  2434. },
  2435. {
  2436. // ✅ https://www.mgnacg.com/bangumi/426-6-12
  2437. name: "橘子动漫",
  2438. home: [
  2439. "https://www.mgnacg.com"
  2440. ],
  2441. regex: /^https:\/\/www\.mgnacg\.com\/bangumi\/.*/g,
  2442. handler: class Handler extends BaseHandler {
  2443. constructor() {
  2444. super();
  2445. this.addIframeListener();
  2446. this.media.setReferer("https://play.mknacg.top:8585/");
  2447. }
  2448. }
  2449. },
  2450. {
  2451. name: "橘子动漫播放器",
  2452. regex: /^https:\/\/play\.mknacg\.top:8585\/.*/g,
  2453. handler: class Handler extends BaseHandler {
  2454. constructor() {
  2455. super();
  2456. this.addTopListener();
  2457. }
  2458. async parse() {
  2459. this.media.setVideoUrl(art.option.url);
  2460. }
  2461. }
  2462. },
  2463. {
  2464. // ✅ https://www.omofun.top/index.php/vod/play/id/17295/sid/2/nid/7.html
  2465. name: "OmoFun",
  2466. home: [
  2467. "https://www.omofun.top"
  2468. ],
  2469. regex: /^https:\/\/www\.omofun\.top\/index.php\/vod\/play\/id\/.*/g,
  2470. handler: class Handler extends BaseHandler {
  2471. constructor() {
  2472. super();
  2473. this.addIframeListener();
  2474. }
  2475. }
  2476. },
  2477. {
  2478. name: "OmoFun播放器",
  2479. regex: /^https:\/\/.*\.omofun\.top\/(player\/|)\?url=.*/g,
  2480. handler: class Handler extends BaseHandler {
  2481. constructor() {
  2482. super();
  2483. this.addTopListener();
  2484. }
  2485. async parse() {
  2486. this.media.setVideoUrl(this.urlParser());
  2487. }
  2488. }
  2489. },
  2490. {
  2491. // ✅ https://spdcat.net/vodplay/135443-1-23
  2492. name: "迅猫动漫",
  2493. home: [
  2494. "https://spdcat.net"
  2495. ],
  2496. regex: /^https:\/\/spdcat\.net\/vodplay\/.*/g,
  2497. handler: class Handler extends BaseHandler {
  2498. constructor() {
  2499. super();
  2500. this.addIframeListener();
  2501. }
  2502. }
  2503. },
  2504. {
  2505. name: "迅猫动漫播放器",
  2506. regex: /^https:\/\/spdcat\.net\/addons\/dp\/player\/.*/g,
  2507. handler: class Handler extends BaseHandler {
  2508. constructor() {
  2509. super();
  2510. this.addTopListener();
  2511. }
  2512. async parse() {
  2513. this.media.setVideoUrl(config.url);
  2514. setTimeout(() => {
  2515. let conplay = document.getElementsByClassName("conplay-jump")[0];
  2516. if (conplay) {
  2517. conplay.click();
  2518. }
  2519. }, 1000);
  2520. }
  2521. }
  2522. },
  2523. {
  2524. // ✅ http://www.dm88.me/player/8480-0-11.html
  2525. name: "樱花动漫",
  2526. home: [
  2527. "http://www.dm88.me"
  2528. ],
  2529. regex: /^http:\/\/www\.dm88\.me\/player\/.*/g,
  2530. handler: class Handler extends BaseHandler {
  2531. constructor() {
  2532. super();
  2533. this.addIframeListener();
  2534. }
  2535. }
  2536. },
  2537. {
  2538. name: "樱花动漫播放器",
  2539. regex: /^https:\/\/jianghu\.live2008\.com\/.*\?url=.*/g,
  2540. handler: class Handler extends BaseHandler {
  2541. constructor() {
  2542. super();
  2543. this.addTopListener();
  2544. }
  2545. async parse() {
  2546. this.media.setVideoUrl(url);
  2547. }
  2548. }
  2549. },
  2550. {
  2551. // ✅ https://www.kk151.com/play/15257-2-11.html
  2552. name: "动漫之家",
  2553. home: [
  2554. "https://www.kk151.com"
  2555. ],
  2556. regex: /^https:\/\/www\.kk151\.com\/play\/.*/g,
  2557. handler: class Handler extends BaseHandler {
  2558. constructor() {
  2559. super();
  2560. this.addIframeListener();
  2561. }
  2562. }
  2563. },
  2564. {
  2565. name: "动漫之家播放器",
  2566. regex: /^https:\/\/(www\.ikdmjx\.com\/|jx\.wolongzywcdn\.com:65\/m3u8\.php|hls\.kuaibofang\.com\/|jx\.jxbdzyw\.com\/m3u8\/|www\.m3u8\.tv\.cdn\.8old\.cn\/m3u8tv1127\/api\.php|jx\.wujinkk\.com\/dplayer\/|jx\.m3u8\.tv\/jiexi\/)\?url=.*/g,
  2567. handler: class Handler extends BaseHandler {
  2568. constructor() {
  2569. super();
  2570. this.addTopListener();
  2571. }
  2572. async parse() {
  2573. this.media.setVideoUrl(this.urlParser());
  2574. }
  2575. }
  2576. },
  2577. {
  2578. // ✅ https://hdzyk.com/?m=vod-play-id-27537-src-2-num-11.html
  2579. // ✅ https://1080zyk2.com/?m=vod-play-id-27537-src-2-num-11.html
  2580. name: "优质资源库",
  2581. home: [
  2582. "https://hdzyk.com",
  2583. "https://1080zyk1.com",
  2584. "https://1080zyk2.com",
  2585. "https://1080zyk3.com",
  2586. "https://1080zyk4.com",
  2587. "https://1080zyk5.com"
  2588. ],
  2589. regex: /^https:\/\/(hdzyk\.com|1080zyk[1-5]\.com)\/\?m=.*/g,
  2590. handler: class Handler extends BaseHandler {
  2591. constructor() {
  2592. super();
  2593. this.addIframeListener();
  2594. }
  2595. }
  2596. },
  2597. {
  2598. name: "优质资源库播放器",
  2599. regex: /^https:\/\/vip\.zykbf\.com\/\?url=.*/g,
  2600. handler: class Handler extends BaseHandler {
  2601. constructor() {
  2602. super();
  2603. this.addTopListener();
  2604. }
  2605. async parse() {
  2606. this.media.setVideoUrl(this.urlParser());
  2607. }
  2608. }
  2609. },
  2610. {
  2611. name: "优质资源库播放器",
  2612. regex: /^https:\/\/.*\.(yzzy-tv1|yzzy-tv-cdn)\.com\/.*/g,
  2613. handler: class Handler extends BaseHandler {
  2614. constructor() {
  2615. super();
  2616. this.addTopListener();
  2617. }
  2618. async parse() {
  2619. this.media.setVideoUrl("https://" + location.host + main);
  2620. }
  2621. }
  2622. },
  2623. {
  2624. // ✅ https://www.bdys10.com/play/22729-8.htm
  2625. name: "哔嘀影视",
  2626. home: [
  2627. "https://www.bdys10.com"
  2628. ],
  2629. regex: /^https:\/\/www\.bdys10\.com\/.*play\/.*/g,
  2630. handler: class Handler extends BaseHandler {
  2631. async parse() {
  2632. this.media.setVideoUrl(this.videoParser());
  2633. if (!this.media.videoUrl) {
  2634. this.media.setVideoUrl(this.htmlParser());
  2635. if (!this.media.videoUrl) {
  2636. this.media.setVideoUrl(this.scriptParser());
  2637. }
  2638. }
  2639. }
  2640. }
  2641. },
  2642. {
  2643. // ✅ https://www.dora-family.com/Resource:TV
  2644. name: "哆啦A梦新番",
  2645. home: [
  2646. "https://www.dora-family.com/Resource:TV"
  2647. ],
  2648. regex: /^https:\/\/www\.dora-family\.com\/Resource:TV/g,
  2649. handler: class Handler extends BaseHandler {
  2650. initCheck() {
  2651. if (super.initCheck()) {
  2652. return true;
  2653. }
  2654. let oldVideoUrl = this.media.videoUrl;
  2655. let newVideoUrl = this.videoParser();
  2656. if (oldVideoUrl && oldVideoUrl != newVideoUrl) {
  2657. return true;
  2658. }
  2659. return false;
  2660. }
  2661. async parse() {
  2662. this.media.setVideoUrl(this.videoParser());
  2663. }
  2664. }
  2665. },
  2666. {
  2667. // ✅ https://mypikpak.com/drive/all
  2668. name: "PikPak",
  2669. home: [
  2670. "https://mypikpak.com/drive/all"
  2671. ],
  2672. regex: /^https:\/\/mypikpak\.com\/drive\/.*/g,
  2673. handler: class Handler extends BaseHandler {
  2674. initCheck() {
  2675. if (super.initCheck()) {
  2676. return true;
  2677. }
  2678. let oldVideoUrl = this.media.videoUrl;
  2679. let newVideoUrl = this.videoParser();
  2680. if (oldVideoUrl && oldVideoUrl != newVideoUrl) {
  2681. return true;
  2682. }
  2683. return false;
  2684. }
  2685. async parse() {
  2686. while (document.getElementsByTagName("video").length == 0) {
  2687. await sleep(1000);
  2688. }
  2689. this.media.setVideoUrl(this.videoParser());
  2690. this.media.setTitle(document.getElementsByClassName("player-title")[0].textContent);
  2691. }
  2692. }
  2693. },
  2694. {
  2695. // ✅ https://www.olehdtv.com/player/vod/1/43671/1
  2696. name: "欧乐影院",
  2697. home: [
  2698. "https://www.olehdtv.com/"
  2699. ],
  2700. regex: /^https:\/\/www\.olehdtv\.com\/player\/vod\/\d+\/\d+\/\d+/g,
  2701. handler: class Handler extends BaseHandler {
  2702. async parse() {
  2703. let ids = page.url.match(/^https:\/\/www\.olehdtv\.com\/player\/vod\/(\d+)\/(\d+)\/(\d+)/);
  2704. let id = ids[2];
  2705. let index = ids[3];
  2706. let t = Date.parse(new Date) / 1e3, r = t % 20;
  2707. let _vv = MD5(t - r + "new.olelive.com");
  2708. let that = this;
  2709. $.ajax({
  2710. type: "GET",
  2711. url: `https://api.olelive.com/v1/pub/vod/detail?id=${id}&play=true&_vv=${_vv}`,
  2712. async: false,
  2713. success: function (res) {
  2714. if (res.code == 0) {
  2715. that.media.setVideoUrl(res.data.urls[index - 1].url);
  2716. }
  2717. }
  2718. })
  2719. }
  2720. play() {
  2721. this.media.setTitle(document.title);
  2722. super.play();
  2723. }
  2724. }
  2725. },
  2726. {
  2727. // ✅ https://www.olehdtv.com/player/live/tv/CCTV5HD/49
  2728. name: "欧乐影院直播",
  2729. home: [
  2730. "https://www.olehdtv.com/"
  2731. ],
  2732. regex: /^https:\/\/www\.olehdtv\.com\/player\/live\/tv\/[^/]+\/\d+/g,
  2733. handler: class Handler extends BaseHandler {
  2734. async parse() {
  2735. let ids = page.url.match(/^https:\/\/www\.olehdtv\.com\/player\/live\/tv\/([^/]+)\/(\d+)/);
  2736. let id = ids[2];
  2737. let streamId = ids[1];
  2738. let today = new Date();
  2739. let year = today.getFullYear();
  2740. let month = today.getMonth() + 1;
  2741. if (month < 10) {
  2742. month = "0" + month;
  2743. }
  2744. let day = today.getDate();
  2745. if (day < 10) {
  2746. day = "0" + day;
  2747. }
  2748. let date = year + "-" + month + "-" + day;
  2749. let t = Date.parse(today) / 1e3, r = t % 20;
  2750. let _vv = MD5(t - r + "new.olelive.com");
  2751. let that = this;
  2752. $.ajax({
  2753. type: "GET",
  2754. url: `https://api.olelive.com/v1/pub/live/info?date=${date}&streamId=${streamId}&type=tv&id=${id}&_vv=${_vv}`,
  2755. async: false,
  2756. success: function (res) {
  2757. if (res.code == 0) {
  2758. that.media.setVideoUrl(res.data.detail.hls.replace("_360", ""));
  2759. }
  2760. }
  2761. })
  2762. }
  2763. play() {
  2764. this.media.setTitle(document.title);
  2765. super.play();
  2766. }
  2767. }
  2768. },
  2769. {
  2770. // ✅ https://tkznp.com/vodplay/337990-1-2.html
  2771. name: "天空影视",
  2772. home: [
  2773. "https://tkznp.com/",
  2774. "https://www.tkznp1.com/",
  2775. "https://www.tkznp2.com/",
  2776. "https://www.tkznp3.com/",
  2777. "https://www.tkznp4.com/",
  2778. "https://www.tkznp5.com/",
  2779. "https://www.tkznp6.com/",
  2780. ],
  2781. regex: /^https?:\/\/(|www\.)tkznp(|1|2|3|4|5|6)\.com\/vodplay\/.*/g,
  2782. handler: class Handler extends BaseHandler {
  2783. constructor() {
  2784. super();
  2785. this.addIframeListener();
  2786. }
  2787. }
  2788. },
  2789. {
  2790. name: "天空影视播放器",
  2791. regex: /^https?:\/\/vip\.ckllk\.com\/\?url=.*/g,
  2792. handler: class Handler extends BaseHandler {
  2793. constructor() {
  2794. super();
  2795. this.addTopListener();
  2796. }
  2797. async parse() {
  2798. this.media.setVideoUrl(config.url);
  2799. this.media.setTitle(config.title);
  2800. }
  2801. }
  2802. },
  2803. {
  2804. // ✅ https://www.hdmoli.com/play/1630-1-0.html
  2805. // ✅ https://www.hdmoli.com/play/1630-0-0.html
  2806. name: "HDmoli",
  2807. home: [
  2808. "https://www.hdmoli.com"
  2809. ],
  2810. regex: /^https:\/\/www\.hdmoli\.com\/play\/.*/g,
  2811. handler: class Handler extends BaseHandler {
  2812. constructor() {
  2813. super();
  2814. this.addIframeListener();
  2815. }
  2816. }
  2817. },
  2818. {
  2819. name: "HDmoli 线路1",
  2820. regex: /^https:\/\/www\.hdmoli\.com\/js\/player\/dplayer\/dplayer\.html\?.*/g,
  2821. handler: class Handler extends BaseHandler {
  2822. constructor() {
  2823. super();
  2824. this.addTopListener();
  2825. setTimeout(() => {
  2826. let closeclick = document.getElementsByClassName("closeclick")[0];
  2827. if (closeclick) {
  2828. closeclick.click();
  2829. }
  2830. }, TIME.refresh);
  2831. }
  2832. async parse() {
  2833. this.media.setVideoUrl(this.videoParser());
  2834. }
  2835. }
  2836. },
  2837. {
  2838. name: "HDmoli 线路2",
  2839. regex: /^https:\/\/www\.hdmoli\.com\/js\/player\/duoduozy.html\?v=[\d\.]+/g,
  2840. handler: class Handler extends BaseHandler {
  2841. constructor() {
  2842. super();
  2843. setTimeout(() => {
  2844. let closeclick = document.getElementsByClassName("closeclick")[0];
  2845. if (closeclick) {
  2846. closeclick.click();
  2847. }
  2848. }, TIME.refresh);
  2849. }
  2850. }
  2851. },
  2852. {
  2853. name: "HDmoli 线路2",
  2854. regex: /^https:\/\/play\.qwertwe\.top\/xplay\/\?url=.*/g,
  2855. handler: class Handler extends BaseHandler {
  2856. constructor() {
  2857. super();
  2858. this.addTopListener();
  2859. }
  2860. async parse() {
  2861. let that = this;
  2862. $.ajax({
  2863. url: '555tZ4pvzHE3BpiO838.php',
  2864. type: 'GET',
  2865. dataType: 'JSON',
  2866. timeout: 3000,
  2867. data: {
  2868. tm: (new Date().getTime()),
  2869. url: config.url,
  2870. vkey: config.vkey,
  2871. token: config.token,
  2872. sign: 'F4penExTGogdt6U8'
  2873. },
  2874. success: function (data) {
  2875. if (data.code === 200) {
  2876. that.media.setVideoUrl(getVideoInfo(data.url));
  2877. }
  2878. }
  2879. });
  2880. }
  2881. }
  2882. },
  2883. {
  2884. // ✅ https://www.anfuns.cc/play/1572-1-1.html
  2885. name: "AnFuns",
  2886. home: [
  2887. "https://www.anfuns.cc"
  2888. ],
  2889. regex: /^https:\/\/www\.anfuns\.cc\/play\/.*/g,
  2890. handler: class Handler extends BaseHandler {
  2891. constructor() {
  2892. super();
  2893. this.addIframeListener();
  2894. }
  2895. }
  2896. },
  2897. {
  2898. name: "AnFuns播放器",
  2899. regex: /^https:\/\/www\.anfuns\.cc\/vapi\/(A0EPlayer|eden)\/\?url=.*/g,
  2900. handler: class Handler extends BaseHandler {
  2901. constructor() {
  2902. super();
  2903. this.addTopListener();
  2904. }
  2905. async parse() {
  2906. let url = config.url;
  2907. if (url) {
  2908. if (!url.startsWith("https://fata.peizq.online/cache/") && !url.startsWith("https://media-oss.anfuns.cn/m3u8/")) {
  2909. this.media.setVideoUrl(config.url);
  2910. } else {
  2911. tryTime = TRY_TIME.maxParse;
  2912. }
  2913. }
  2914. }
  2915. }
  2916. },
  2917. {
  2918. // ✅ https://www.youtube.com/watch?v=IkGuTYaTsLo
  2919. name: "YouTube",
  2920. home: [
  2921. "https://www.youtube.com"
  2922. ],
  2923. regex: /^https:\/\/www\.youtube\.com\/(watch|playlist)\?.*/g,
  2924. handler: class Handler extends BaseHandler {
  2925. async parse() {
  2926. this.media.setOther(BEST_QUALITY.ytdlp[currentConfig.bestQuality]);
  2927. this.media.setVideoUrl(this.ytDlpParser());
  2928. this.media.setTitle("");
  2929. }
  2930. },
  2931. },
  2932. {
  2933. // ✅ https://odysee.com/@jjlin:8/%E6%9E%97%E4%BF%8A%E5%82%91-jj-lin%E3%80%8Ajj20%E4%B8%96%E7%95%8C%E5%B7%A1%E8%BF%B4%E6%BC%94%E5%94%B1%E6%9C%83%E3%80%8B-2:8
  2934. name: "Odysee",
  2935. home: [
  2936. "https://odysee.com"
  2937. ],
  2938. regex: /^https:\/\/odysee\.com\/[^$].+/g,
  2939. handler: class Handler extends BaseHandler {
  2940. async parse() {
  2941. this.media.setOther(BEST_QUALITY.ytdlp[currentConfig.bestQuality]);
  2942. this.media.setVideoUrl(this.ytDlpParser());
  2943. this.media.setTitle("");
  2944. }
  2945. },
  2946. },
  2947. {
  2948. // ✅ https://rumble.com/v2mfr78-valheim-viking-survival-w-chaos-tricks-you-can-affect-my-game-chat-opinions.html
  2949. name: "Rumble",
  2950. home: [
  2951. "https://rumble.com"
  2952. ],
  2953. regex: /^https:\/\/rumble\.com\/v.+\.html/g,
  2954. handler: class Handler extends BaseHandler {
  2955. async parse() {
  2956. this.media.setOther(BEST_QUALITY.ytdlp[currentConfig.bestQuality]);
  2957. this.media.setVideoUrl(this.ytDlpParser());
  2958. this.media.setTitle("");
  2959. }
  2960. },
  2961. },
  2962. {
  2963. // ✅ https://www.bitchute.com/video/NoodZjmfKHXS/
  2964. name: "BitChute",
  2965. home: [
  2966. "https://www.bitchute.com"
  2967. ],
  2968. regex: /^https:\/\/www\.bitchute\.com\/video\/.+/g,
  2969. handler: class Handler extends BaseHandler {
  2970. async parse() {
  2971. this.media.setOther(BEST_QUALITY.ytdlp[currentConfig.bestQuality]);
  2972. this.media.setVideoUrl(this.ytDlpParser());
  2973. this.media.setTitle("");
  2974. }
  2975. },
  2976. },
  2977. {
  2978. // ✅ https://ani.gamer.com.tw/animeVideo.php?sn=32227
  2979. name: "巴哈姆特",
  2980. home: [
  2981. "https://ani.gamer.com.tw"
  2982. ],
  2983. regex: /^https:\/\/ani\.gamer\.com\.tw\/animeVideo.php\?sn=.*/g,
  2984. handler: class Handler extends BaseHandler {
  2985. async parse() {
  2986. this.media.setOrigin("https://ani.gamer.com.tw");
  2987. let index = page.url.indexOf("sn=") + 3;
  2988. if (index == -1) {
  2989. return;
  2990. }
  2991. let sn = page.url.substring(index);
  2992. index = sn.indexOf("&");
  2993. if (index != -1) {
  2994. sn = sn.substring(0, index);
  2995. }
  2996. let device = localStorage.ANIME_deviceid;
  2997. let that = this;
  2998. let res;
  2999. $.ajax({
  3000. type: "GET",
  3001. url: `https://ani.gamer.com.tw/ajax/m3u8.php?sn=${sn}&device=${device}`,
  3002. async: false,
  3003. xhrFields: {
  3004. withCredentials: true
  3005. },
  3006. success: function (json) {
  3007. res = JSON.parse(json);
  3008. }
  3009. })
  3010. if (res.error) {
  3011. if (res.error.code == 1015) {
  3012. let oldDuration = document.getElementsByClassName("vjs-duration-display")[0].innerHTML;
  3013. let newDuration = oldDuration;
  3014. while (oldDuration == newDuration) {
  3015. await sleep(1000);
  3016. newDuration = document.getElementsByClassName("vjs-duration-display")[0].innerHTML;
  3017. }
  3018. tryTime = 0;
  3019. }
  3020. } else {
  3021. that.media.setProxy(currentConfig.proxy);
  3022. that.media.setVideoUrl(res.src);
  3023. }
  3024. }
  3025. },
  3026. },
  3027. {
  3028. // ✅ https://hanime1.me/watch?v=26262
  3029. name: "Hanime1.me",
  3030. home: [
  3031. "https://hanime1.me"
  3032. ],
  3033. regex: /^https:\/\/hanime1\.me\/watch\?v=.*/g,
  3034. handler: class Handler extends BaseHandler {
  3035. async parse() {
  3036. let url = this.videoParser();
  3037. if (!url) {
  3038. url = this.iframeParser();
  3039. }
  3040. if (!url) {
  3041. url = page.url;
  3042. }
  3043. this.media.setVideoUrl(url);
  3044. }
  3045. },
  3046. },
  3047. {
  3048. // ✅ https://jable.tv/videos/fsdss-484/
  3049. name: "Jable.TV",
  3050. home: [
  3051. "https://jable.tv"
  3052. ],
  3053. regex: /^https:\/\/jable\.tv\/videos\/.*/g,
  3054. handler: class Handler extends BaseHandler {
  3055. async parse() {
  3056. let url = hls.url;
  3057. url = url ? url : hlsUrl;
  3058. url = url ? url : page.url;
  3059. this.media.setVideoUrl(url);
  3060. }
  3061. },
  3062. },
  3063. {
  3064. // ✅ https://ok.ru/video/2035990725937
  3065. name: "OK",
  3066. home: [
  3067. "https://ok.ru/video"
  3068. ],
  3069. regex: /^https:\/\/ok\.ru\/video\/\d+/g,
  3070. handler: class Handler extends BaseHandler {
  3071. async parse() {
  3072. this.media.setOther(BEST_QUALITY.ytdlp[currentConfig.bestQuality]);
  3073. this.media.setVideoUrl(this.ytDlpParser());
  3074. this.media.setTitle("");
  3075. }
  3076. },
  3077. },
  3078. {
  3079. // ✅ https://tver.jp/episodes/epsta1xs0z
  3080. name: "TVer",
  3081. home: [
  3082. "https://tver.jp"
  3083. ],
  3084. regex: /^https:\/\/tver\.jp\/episodes\/\w+/g,
  3085. handler: class Handler extends BaseHandler {
  3086. async parse() {
  3087. this.media.setOther(BEST_QUALITY.ytdlp[currentConfig.bestQuality]);
  3088. this.media.setVideoUrl(this.ytDlpParser());
  3089. this.media.setTitle("");
  3090. }
  3091. },
  3092. },
  3093. {
  3094. // ✅ https://www.lckp.top/play-with-mpv/index.html
  3095. name: "电视直播",
  3096. home: [
  3097. "https://www.lckp.top/play-with-mpv/index.html"
  3098. ],
  3099. regex: /^https?:\/\/(www.lckp.top\/play-with-mpv|127.0.0.1:5502\/web\/tampermonkey\/Play-With-MPV)\/index.html/g,
  3100. handler: class Handler extends BaseHandler {
  3101. async parse() {
  3102. this.media.setVideoUrl(localStorage.iptvUrl);
  3103. localStorage.player = JSON.stringify(this.player);
  3104. this.media.setTitle("");
  3105. }
  3106. },
  3107. },
  3108. {
  3109. // ✅ https://www.douyin.com/
  3110. name: "抖音",
  3111. home: [
  3112. "https://www.douyin.com/"
  3113. ],
  3114. regex: /^https?:\/\/www\.douyin\.com\/.*/g,
  3115. handler: class Handler extends BaseHandler {
  3116. constructor() {
  3117. super();
  3118. this.index = 0;
  3119. }
  3120. initCheck() {
  3121. if (super.initCheck()) {
  3122. return true;
  3123. }
  3124. let oldVideoUrl = this.media.videoUrl;
  3125. let newVideoUrl = this.videoParser();
  3126. if (oldVideoUrl && oldVideoUrl != newVideoUrl) {
  3127. return true;
  3128. }
  3129. return false;
  3130. }
  3131. async parse() {
  3132. this.media.setVideoUrl(this.videoParser());
  3133. }
  3134. videoParser() {
  3135. let videos = document.getElementsByTagName("video");
  3136. if (videos && videos.length > 0) {
  3137. this.index = videos.length > 2 ? 1 : 0;
  3138. }
  3139. let url = document.getElementsByTagName("video")[this.index].getElementsByTagName("source")[0].src;
  3140. if (url) {
  3141. return url;
  3142. }
  3143. }
  3144. },
  3145. },
  3146. {
  3147. // ✅ https://www.mengfan.tv/play/kx666U/1/3/
  3148. name: "萌番",
  3149. home: [
  3150. "https://www.mengfan.tv"
  3151. ],
  3152. regex: /^https:\/\/www\.mengfan\.tv\/play\/.*/g,
  3153. handler: class Handler extends BaseHandler {
  3154. constructor() {
  3155. super();
  3156. this.addIframeListener();
  3157. }
  3158. }
  3159. },
  3160. {
  3161. name: "萌番播放器",
  3162. regex: /^https:\/\/video1\.beijcloud\.com\/player\/\?url=.*/g,
  3163. handler: class Handler extends BaseHandler {
  3164. constructor() {
  3165. super();
  3166. this.addTopListener();
  3167. }
  3168. async parse() {
  3169. this.media.setVideoUrl(this.scriptParser());
  3170. }
  3171. }
  3172. },
  3173. {
  3174. // ✅ https://www.haitu.tv/vod/play/id/47100/sid/1/nid/4.html
  3175. name: "海兔影院",
  3176. home: [
  3177. "https://www.haitu.tv"
  3178. ],
  3179. regex: /^https:\/\/www\.haitu\.tv\/vod\/play\/.*/g,
  3180. handler: class Handler extends BaseHandler {
  3181. constructor() {
  3182. super();
  3183. this.addIframeListener();
  3184. }
  3185. }
  3186. },
  3187. {
  3188. name: "海兔影院播放器",
  3189. regex: /^https:\/\/www\.haitu\.tv\/static\/dmku\/player\/index\.php/g,
  3190. handler: class Handler extends BaseHandler {
  3191. constructor() {
  3192. super();
  3193. this.addTopListener();
  3194. }
  3195. async parse() {
  3196. this.media.setVideoUrl(config.url);
  3197. }
  3198. }
  3199. },
  3200. {
  3201. // ✅ https://www.icourse163.org/learn/ZJU-200001?tid=1470096517#/learn/content?type=detail&id=1254347726&cid=1285600901
  3202. name: "中国大学MOOC",
  3203. regex: /^https:\/\/www\.icourse163\.org\/learn\/.*\/learn\/content\?type=detail.*/g,
  3204. handler: class Handler extends BaseHandler {
  3205. async parse() {
  3206. let res = this.htmlParser();
  3207. if (!res) return;
  3208. this.media.setVideoUrl(res);
  3209. this.media.setTitle(document.querySelector('.current > .unit-name').innerText);
  3210. }
  3211. }
  3212. },
  3213. {
  3214. // ✅ https://www.iole.tv/vodplay/23711-1-1.html
  3215. name: "ioleTV",
  3216. regex: /^https:\/\/www\.iole\.tv\/vodplay\/.+/g,
  3217. handler: class Handler extends BaseHandler {
  3218. constructor() {
  3219. super();
  3220. this.addIframeListener();
  3221. }
  3222. }
  3223. },
  3224. {
  3225. name: "ioleTV播放器",
  3226. regex: /^https:\/\/www\.iole\.tv\/static\/player\/.*\.html/g,
  3227. handler: class Handler extends BaseHandler {
  3228. constructor() {
  3229. super();
  3230. this.addTopListener();
  3231. }
  3232. async parse() {
  3233. this.media.setVideoUrl(parent.MacPlayer.PlayUrl);
  3234. }
  3235. }
  3236. },
  3237. {
  3238. // ✅ https://www.zhihu.com/zvideo/1650574385558937600
  3239. name: "知乎视频",
  3240. regex: /^https:\/\/www\.zhihu\.com\/zvideo\/.+/g,
  3241. handler: class Handler extends BaseHandler {
  3242. constructor() {
  3243. super();
  3244. let that = this;
  3245. this.currentUrl = "";
  3246. //拦截请求以更新Url
  3247. const originOpen = XMLHttpRequest.prototype.open;
  3248. XMLHttpRequest.prototype.open = function (method, url, async, user, password) {
  3249. originOpen.apply(this, arguments);
  3250. if (url.match(VIDEO_URL_REGEX)) {
  3251. that.currentUrl = url;
  3252. }
  3253. };
  3254. }
  3255. async parse() {
  3256. this.media.setVideoUrl(this.currentUrl);
  3257. }
  3258. }
  3259. },
  3260. {
  3261. // ✅ https://www.tucao.cam/play/h4092670/#1
  3262. name: "吐槽弹幕网",
  3263. regex: /^https:\/\/www\.tucao\.cam\/play\/.*/g,
  3264. handler: class Handler extends BaseHandler {
  3265. async parse() {
  3266. this.media.setVideoUrl(this.videoParser());
  3267. }
  3268. }
  3269. },
  3270. {
  3271. // ✅ http://www.susudm8.com/acg/69815/3.html
  3272. name: "速速电影院",
  3273. regex: /^https?:\/\/(www\.susudm8\.com|susudyy\.com|buding3\.com|buding6\.com)\/.+\.html/g,
  3274. handler: class Handler extends BaseHandler {
  3275. constructor() {
  3276. super();
  3277. this.addIframeListener();
  3278. }
  3279. }
  3280. },
  3281. {
  3282. name: "速速电影院播放器",
  3283. regex: /^https?:\/\/(v2\.shenjw\.com:\d+|u88\.xigua88ok\.com:\d+)\/wap\.php\?url=.+/g,
  3284. handler: class Handler extends BaseHandler {
  3285. constructor() {
  3286. super();
  3287. this.addTopListener();
  3288. }
  3289. async parse() {
  3290. this.media.setVideoUrl(this.videoParser());
  3291. }
  3292. }
  3293. },
  3294. {
  3295. name: "速速电影院播放器",
  3296. regex: /^https?:\/\/test3\.gqyy8\.com:\d+\/f\/aliplayer\.php\?url=.+/g,
  3297. handler: class Handler extends BaseHandler {
  3298. constructor() {
  3299. super();
  3300. this.addTopListener();
  3301. }
  3302. async parse() {
  3303. this.media.setVideoUrl(this.scriptParser());
  3304. }
  3305. }
  3306. },
  3307. {
  3308. // ✅ https://v.mksec.cn/index.php/vod/play/id/165438/sid/2/nid/1.html
  3309. name: "小见子的视频站",
  3310. regex: /^https?:\/\/v\.mksec\.cn\/index\.php\/vod\/play\/.+\.html/g,
  3311. handler: class Handler extends BaseHandler {
  3312. constructor() {
  3313. super();
  3314. this.addIframeListener();
  3315. }
  3316. async parse() {
  3317. this.media.setVideoUrl(player_aaaa.url);
  3318. }
  3319. }
  3320. },
  3321. {
  3322. name: "小见子的视频站播放器",
  3323. regex: /^https?:\/\/v\.mksec\.cn\/static\/player\/dplayer\.html/g,
  3324. handler: class Handler extends BaseHandler {
  3325. constructor() {
  3326. super();
  3327. this.addTopListener();
  3328. }
  3329. async parse() {
  3330. tryTime = TRY_TIME.maxParse;
  3331. }
  3332. }
  3333. },
  3334. {
  3335. // ✅ https://jh642t.dshryadqp.com/index.php/vod/play/id/51434/sid/1/nid/1.html
  3336. name: "大师兄电影网",
  3337. regex: /^https?:\/\/.*dsh.*\.com\/index\.php\/vod\/play\/.+\.html/g,
  3338. handler: class Handler extends BaseHandler {
  3339. constructor() {
  3340. super();
  3341. this.addIframeListener();
  3342. }
  3343. async parse() {
  3344. this.media.setVideoUrl(player_aaaa.url);
  3345. }
  3346. }
  3347. },
  3348. {
  3349. name: "大师兄电影网播放器",
  3350. regex: /^https?:\/\/.*dsh.*\.com\/static\/player\/dplayer\.html/g,
  3351. handler: class Handler extends BaseHandler {
  3352. constructor() {
  3353. super();
  3354. this.addTopListener();
  3355. }
  3356. async parse() {
  3357. tryTime = TRY_TIME.maxParse;
  3358. }
  3359. }
  3360. },
  3361. {
  3362. // ✅ https://www.twitch.tv/yulihong22
  3363. name: "Twitch",
  3364. home: [
  3365. "https://www.twitch.tv"
  3366. ],
  3367. regex: /^https:\/\/www\.twitch\.tv\/\w+/g,
  3368. handler: class Handler extends BaseHandler {
  3369. async parse() {
  3370. if (page.url.indexOf("/directory") != -1) {
  3371. tryTime = TRY_TIME.maxParse;
  3372. return;
  3373. }
  3374. this.media.setOther(BEST_QUALITY.ytdlp[currentConfig.bestQuality]);
  3375. this.media.setVideoUrl(this.ytDlpParser());
  3376. this.media.setTitle("");
  3377. }
  3378. },
  3379. },
  3380. {
  3381. name: "AList",
  3382. regex: /^https?:\/\/[^\/]+\/.*\.(mp4|mkv)/g,
  3383. handler: class Handler extends BaseHandler {
  3384. async parse() {
  3385. let url = this.videoParser();
  3386. if (!url && tryTime < 3) {
  3387. $.ajax({
  3388. type: "POST",
  3389. url: `/api/fs/get`,
  3390. data: {
  3391. password: "",
  3392. path: decodeURIComponent(location.pathname)
  3393. },
  3394. xhrFields: {
  3395. withCredentials: true
  3396. },
  3397. async: false,
  3398. success: function (res) {
  3399. if (res.code == 200) {
  3400. url = res.data.raw_url;
  3401. }
  3402. }
  3403. });
  3404. }
  3405. if (url) {
  3406. let index = url.indexOf("?");
  3407. if (index != -1) {
  3408. url = url.substring(0, index + 1) + encodeURIComponent(url.substring(index + 1));
  3409. }
  3410. this.media.setVideoUrl(url);
  3411. this.media.setTitle(document.title);
  3412. }
  3413. }
  3414. }
  3415. }
  3416. ];
  3417. // 初始化
  3418. async function init(flag) {
  3419. // 加载页面信息
  3420. page = {
  3421. host: window.location.host,
  3422. url: window.location.href,
  3423. isFullScreen: false
  3424. };
  3425. // 清除 handler
  3426. if (handler) {
  3427. handler = undefined;
  3428. if (document.getElementById(ID.buttonDiv)) {
  3429. document.getElementById(ID.buttonDiv).style.display = "none";
  3430. }
  3431. }
  3432. // 生成 handler
  3433. for (let i = 0; i < websiteList.length; i++) {
  3434. if (page.url.match(websiteList[i].regex)) {
  3435. handler = new websiteList[i].handler();
  3436. break;
  3437. }
  3438. }
  3439. if (flag && window.location.host.indexOf('bilibili') != -1) {
  3440. await sleep(1000);
  3441. }
  3442. // 尝试解析页面视频
  3443. if (handler) {
  3444. tryTime = 0;
  3445. while (tryTime < TRY_TIME.maxParse) {
  3446. await sleep(tryTime * 1000 + 700);
  3447. if (!handler.media.videoUrl) {
  3448. try {
  3449. await handler.parse();
  3450. } catch (error) {
  3451. console.log('Play-With-MPV:解析失败:' + error);
  3452. }
  3453. }
  3454. tryTime++;
  3455. }
  3456. } else {
  3457. console.log("Play-With-MPV:暂无此网页解析器");
  3458. }
  3459. }
  3460. // 开始执行
  3461. init();
  3462. setInterval(() => {
  3463. if (handler) {
  3464. if (handler.initCheck()) {
  3465. init(true);
  3466. }
  3467. } else if (window.location.href != page.url) {
  3468. init();
  3469. }
  3470. }, TIME.refresh);