fixes #2474: Make disabled blacklist entries persist across page loads and give option to disable / enable all

This commit is contained in:
r888888888
2015-08-10 16:01:38 -07:00
parent 86c2ae037b
commit d1b5d38521
3 changed files with 27 additions and 7 deletions

View File

@@ -99,6 +99,15 @@
return string.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1");
}
String.prototype.hash = function() {
var hash = 5381, i = this.length;
while(i)
hash = (hash * 33) ^ this.charCodeAt(--i)
return hash >>> 0;
}
$.fn.selectRange = function(start, end) {
return this.each(function() {
if (this.setSelectionRange) {