Skip to content

Commit ab867de

Browse files
committed
improve in-memory storage of specific cosmetic filters + more ES6
- collate together specific filters with same base domain - replace string-based hash to integer-based hash - revisit code to benefit from ES6-specific syntax
1 parent 23979c3 commit ab867de

4 files changed

Lines changed: 420 additions & 404 deletions

File tree

src/js/background.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ var µBlock = (function() { // jshint ignore:line
135135
localSettingsLastModified: 0,
136136
localSettingsLastSaved: 0,
137137

138-
// read-only
138+
// Read-only
139139
systemSettings: {
140-
compiledMagic: 1,
141-
selfieMagic: 1
140+
compiledMagic: 2, // Increase when compiled format changes
141+
selfieMagic: 2 // Increase when selfie format changes
142142
},
143143

144144
restoreBackupSettings: {

0 commit comments

Comments
 (0)