Skip to content
This repository was archived by the owner on Sep 30, 2019. It is now read-only.

Commit c73c69f

Browse files
committed
fixed #4
1 parent f341f68 commit c73c69f

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"jquery": true
1212
},
1313
"globals": {
14+
"exportFunction": false
1415
},
1516
"rules": {
1617
"no-global-assign": "off",

kisscleaner.meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==UserScript==
22
// @name KissCleaner
33
// @namespace juici.github.io
4-
// @version 1.4.1
4+
// @version 1.5
55
// ==/UserScript==

kisscleaner.user.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
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
@@ -25,7 +25,6 @@
2525
// @run-at document-start
2626
// @noframes
2727
// ==/UserScript==
28-
/* global exportFunction */
2928

3029
// current page url
3130
const 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

Comments
 (0)