animixplay Bingewatcher+

Auto-fullscreen, auto-starts, skip intros, jump to next episode

目前为 2022-01-21 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name animixplay Bingewatcher+
  3. // @namespace https://greasyfork.org/en/users/10118-drhouse
  4. // @version 1.3
  5. // @description Auto-fullscreen, auto-starts, skip intros, jump to next episode
  6. // @include https://animixplay.to/*
  7. // @include https://v.vvid.cc/*
  8. // @require http://code.jquery.com/jquery-3.4.1.min.js
  9. // @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
  10. // @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
  11. // @author drhouse
  12. // @license CC-BY-NC-SA-4.0
  13. // @icon https://animixplay.to/icon.png
  14. // ==/UserScript==
  15. this.$ = this.jQuery = jQuery.noConflict(true);
  16. var $ = window.$;
  17.  
  18. (function($){
  19.  
  20. (new MutationObserver(check)).observe(document, {childList: true, subtree: true});
  21.  
  22. function check(changes, observer) {
  23.  
  24. if($('video')) {
  25. observer.disconnect();
  26. $('body').click();
  27. $("video")[0].play();
  28. $("#videocontainer > div > div.plyr__controls > button:nth-child(8)").click();
  29. $('#videocontainer > div').focus();
  30.  
  31. var newYearCountdown = setInterval(function(){
  32. var player = $('video')[0];
  33. var duration = player.duration;
  34. var current = player.currentTime;
  35.  
  36. window.addEventListener("keydown", function(event) {
  37. var x = event.key;
  38.  
  39. if (x == 'v') { // V key skip 89s
  40. player.currentTime = current + 89;
  41. }
  42.  
  43. if (x == 'n') { // V key skip end
  44. player.currentTime = duration;
  45. }
  46. });
  47. }, 1000);
  48. }
  49. }
  50. })(jQuery);