Index: include.postload.js |
=================================================================== |
--- a/include.postload.js |
+++ b/include.postload.js |
@@ -299,13 +299,16 @@ |
clickHideFilters.push(document.domain + "###" + elementId); |
selectorList.push("#" + elementId); |
} |
- if (elementClasses) |
+ if (elementClasses && elementClasses.length > 0) |
{ |
- for(var i = 0; i < elementClasses.length; i++) |
+ var selector = elementClasses.map(function(elClass) |
{ |
- clickHideFilters.push(document.domain + "##." + elementClasses[i]); |
- selectorList.push("." + elementClasses[i]); |
- } |
+ return "." + elClass.replace(/([^a-z0-9_-])/i, "\\$1"); |
+ }).join(""); |
+ |
+ clickHideFilters.push(document.domain + "##" + selector); |
+ selectorList.push(selector); |
+ console.log(selector); |
} |
if (url) |
{ |