您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
auto-selects 1080p (or highest available quality) instead of the recent default 720p
// ==UserScript== // @name 9anime Auto-1080p Select (Vidstream/Mcloud) // @namespace http://tampermonkey.net/ // @version 2.1 // @description auto-selects 1080p (or highest available quality) instead of the recent default 720p // @include https://vidstream.pro/* // @include https://vidstreamz.online/* // @include https://mcloud.to/* // @require http://code.jquery.com/jquery-3.4.1.min.js // @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js // @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js // @author drhouse // @license CC-BY-NC-SA-4.0 // @icon https://www.google.com/s2/favicons?sz=64&domain=9anime.to // ==/UserScript== this.$ = this.jQuery = jQuery.noConflict(true); (function($){ const myInterval = setInterval(myTimer, 1000); function myTimer() { var $highest_check = $('#jw-settings-submenu-quality > div:nth-child(1) > button:nth-child(2)').attr('aria-checked') var $auto_check = $('#jw-settings-submenu-quality > div:nth-child(1) > button:nth-child(1)').text() //$('div.jw-icon:nth-child(14)')[0].click() if ($auto_check === 'Auto'){ if ($highest_check === "true"){ //$('div.jw-icon:nth-child(14)')[0].click() clearInterval(myInterval); } else { $('#jw-settings-submenu-quality > div:nth-child(1) > button:nth-child(2)').click() } } else { //$('div.jw-icon:nth-child(14)')[0].click() clearInterval(myInterval); } } })(jQuery);