视频VIP替换

直接在视频页查看会员视频

  1. // ==UserScript==
  2. // @name 视频VIP替换
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.2
  5. // @description 直接在视频页查看会员视频
  6. // @author You
  7. // @match *.iqiyi.com/v*
  8. // @grant none
  9. // @run-at document-start
  10. // @require https://code.jquery.com/jquery-3.2.1.min.js
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. var vip_parse_url = "https://danmu.sonimei.cn/player/?url=&url=";
  17. // 替换播放器
  18.  
  19.  
  20. function sleep(numberMillis) {
  21. var now = new Date();
  22. var exitTime = now.getTime() + numberMillis;
  23. while (true) {
  24. now = new Date();
  25. if (now.getTime() > exitTime)
  26. return;
  27. }
  28. }
  29.  
  30. function gen_iqiyi_player(current_url) {
  31. console.log('ready to replace');
  32. // 生成替换源
  33. var request_url = '<iframe id="play_iframe" allowfullscreen="true" ' +
  34. 'style="background-color: #dff0d8;" width="100%" height="100%" ' +
  35. 'allowtransparency="true" frameborder="0" scrolling="no" ' +
  36. 'src="' + vip_parse_url + current_url + '"></iframe>';
  37. console.log(request_url);
  38. return request_url;
  39. };
  40.  
  41. function get_vip() {
  42. var current_url = window.location.href;
  43. var request_url = gen_iqiyi_player(current_url);
  44. if (current_url.indexOf("www.iqiyi.com") != -1) {
  45. $('#iframaWrapper').empty().html(request_url);
  46.  
  47. $("#contentArea").remove();
  48. $("#block-AR").remove();
  49. }
  50.  
  51.  
  52. }
  53.  
  54. setTimeout(function(){
  55. get_vip();
  56. }, 1000);
  57.  
  58. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址