1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-02 10:24:59 +12:00
This commit is contained in:
gorhill 2014-11-02 00:36:55 -04:00
parent 4b4dc3c0db
commit f7c2e68887
6 changed files with 14 additions and 5 deletions

View file

@ -19,6 +19,8 @@
Home: https://github.com/gorhill/uMatrix
*/
/* global uDom */
/******************************************************************************/
(function() {
@ -30,13 +32,13 @@ var loadDashboardPanel = function(hash) {
uDom('.tabButton').forEach(function(button){
button.toggleClass('selected', button.attr('data-dashboard-panel-url') === url);
});
}
};
/******************************************************************************/
var onTabClickHandler = function() {
loadDashboardPanel(window.location.hash);
}
};
/******************************************************************************/

View file

@ -19,6 +19,8 @@
Home: https://github.com/gorhill/uMatrix
*/
/* global messaging, uDom */
/******************************************************************************/
(function() {

View file

@ -444,7 +444,7 @@ var onMessage = function(request, sender, callback) {
response = {
temporaryRules: µm.tMatrix.toString(),
permanentRules: µm.pMatrix.toString()
}
};
break;
case 'setUserRules':

View file

@ -19,6 +19,9 @@
Home: https://github.com/gorhill/uMatrix
*/
/* global messaging, uDom */
/* jshint multistr: true */
/******************************************************************************/
(function() {

View file

@ -78,7 +78,7 @@
return 'http://' + uri.scheme + '-scheme/';
}
return '';
}
};
/******************************************************************************/

View file

@ -229,9 +229,11 @@ DOMList.prototype.toArray = function() {
/******************************************************************************/
DOMList.prototype.forEach = function(fn) {
for ( var i = 0; i < this.nodes.length; i++ ) {
var n = this.nodes.length;
for ( var i = 0; i < n; i++ ) {
fn(this.at(i), i);
}
return this;
};
/******************************************************************************/