66// @copyright 2019 Mozilla Corporation, Derek Riemer
77// @license Mozilla Public License version 2.0
88// @version 2019.1
9- // @grant GM_log
109// @include https://music.apple.com/*
1110// ==/UserScript==
1211
@@ -90,14 +89,14 @@ function applyTweaks(root, tweaks, checkRoot) {
9089 try {
9190 applyTweak ( el , tweak ) ;
9291 } catch ( e ) {
93- GM_log ( "Exception while applying tweak for '" + tweak . selector + "': " + e ) ;
92+ console . log ( "Exception while applying tweak for '" + tweak . selector + "': " + e ) ;
9493 }
9594 }
9695 if ( checkRoot && root . matches ( tweak . selector ) ) {
9796 try {
9897 applyTweak ( root , tweak ) ;
9998 } catch ( e ) {
100- GM_log ( "Exception while applying tweak for '" + tweak . selector + "': " + e ) ;
99+ console . log ( "Exception while applying tweak for '" + tweak . selector + "': " + e ) ;
101100 }
102101 }
103102 }
@@ -118,7 +117,7 @@ let observer = new MutationObserver(function(mutations) {
118117 }
119118 } catch ( e ) {
120119 // Catch exceptions for individual mutations so other mutations are still handled.
121- GM_log ( "Exception while handling mutation: " + e ) ;
120+ console . log ( "Exception while handling mutation: " + e ) ;
122121 }
123122 }
124123} ) ;
@@ -141,9 +140,7 @@ const LOAD_TWEAKS = [
141140] ;
142141
143142// Attributes that should be watched for changes and cause dynamic tweaks to be
144- // applied. For example, if there is a dynamic tweak which handles the state of
145- // a check box and that state is determined using an attribute, that attribute
146- // should be included here.
143+ // applied.
147144const DYNAMIC_TWEAK_ATTRIBS = [ ] ;
148145
149146// Tweaks that must be applied whenever a node is added/changed.
0 commit comments