33// @namespace juici.github.io
44// @description Cleans up KissAnime pages. Tested to work with Firefox and Greasemonkey.
55// @author Juici, crapier
6- // @version 1.4.1
6+ // @version 1.5
77// @license https://github.com/Juici/KissCleaner/blob/master/LICENSE
88// @icon https://juici.github.io/KissCleaner/icon.png
99// @homepage https://github.com/Juici/KissCleaner
2525// @run -at document-start
2626// @noframes
2727// ==/UserScript==
28- /* global exportFunction */
2928
3029// current page url
3130const url = window . location . href ;
@@ -511,7 +510,7 @@ const clean = function () {
511510 console . log ( 'Using HTML5 player.' ) ;
512511
513512 // move quality select below player
514- const selectQuality = document . getElementById ( 'selectQuality' ) ;
513+ const selectQuality = document . getElementById ( 'selectQuality' ) || document . getElementById ( 'slcQualix' ) ;
515514 const videoArea = document . getElementById ( 'centerDivVideo' ) ;
516515 if ( selectQuality && videoArea ) {
517516 const parent = selectQuality . parentElement ;
@@ -524,7 +523,7 @@ const clean = function () {
524523 const html5Hook = ( ) => {
525524 console . log ( 'HTML5 player hooked.' ) ;
526525 // change the quality to desired flash option
527- const qualityLevels = document . querySelector ( '# selectQuality') ;
526+ const qualityLevels = document . getElementById ( ' selectQuality' ) || document . getElementById ( 'slcQualix ') ;
528527 const desiredQuality = parseInt ( settings . quality , 10 ) ;
529528 let qualitySet = false ;
530529 const setQuality = ( index ) => {
0 commit comments