Labs/Jetpack/Reboot/JEP/107: Difference between revisions

Jump to navigation Jump to search
Line 121: Line 121:
<b>Examples:</b>
<b>Examples:</b>


<pre>
<pre class="brush:js;">
 
myMods.remove('matches', ['*.google.com']);
myMods.remove('matches', ['*.google.com']);
</pre>


<pre>
myMods.remove('includes', {
myMods.remove('includes', {
     'script': 'all',
     'script': 'all',
     'styles': ['http://yui.yahooapis.com/3.0.0/build/cssbase/base-min.css']
     'styles': ['http://yui.yahooapis.com/3.0.0/build/cssbase/base-min.css']
});
});
</pre>


<pre>
myMods.remove('styles', {
myMods.remove('styles', {
     'body':['background', 'font-family'],
     'body':['background', 'font-family'],
     'span.details':['font-size']
     'span.details':['font-size']
});
});
</pre>


<pre>
myMods.remove('script', pageLog);
myMods.remove('script', pageLog);
</pre>
</pre>


1,273

edits

Navigation menu