Remove console.log from userscript
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name netflix-speed
|
||||
// @version 0.2
|
||||
// @version 0.3
|
||||
// @include https://www.netflix.com/*
|
||||
// ==/UserScript==
|
||||
|
||||
@@ -10,11 +10,12 @@ function find_controls() {
|
||||
mutationsList.forEach(function(mutation) {
|
||||
var nodes = Array.from(mutation.addedNodes);
|
||||
for (var node of nodes) {
|
||||
console.log(node);
|
||||
/* classic ui - black bar at the bottom */
|
||||
if (node.matches && node.matches('.classic-ui') && node.querySelector('.button-volumeMax')) {
|
||||
resolve(node.querySelector('.button-volumeMax').parentNode);
|
||||
return;
|
||||
}
|
||||
/* modern ui - play/pause in the middle of the screen */
|
||||
if (node.matches && node.matches('.AkiraPlayer') && node.querySelector('.button-nfplayerNextEpisode')) {
|
||||
resolve(node.querySelector('.button-nfplayerNextEpisode').parentNode);
|
||||
return;
|
||||
@@ -41,6 +42,7 @@ function inject_controls() {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
font-size: 2.2em;
|
||||
text-align: center;
|
||||
`;
|
||||
speed_control.id = 'speed-control';
|
||||
speed_control.onchange = function() {
|
||||
|
||||
Reference in New Issue
Block a user