Index: chrome/content/elemHideEmulation.js |
=================================================================== |
--- a/chrome/content/elemHideEmulation.js |
+++ b/chrome/content/elemHideEmulation.js |
@@ -132,17 +132,18 @@ |
var match = propertySelectorRegExp.exec(pattern.selector); |
if (!match) |
continue; |
var propertyExpression = match[2]; |
var regexpString; |
if (propertyExpression.length >= 2 && propertyExpression[0] == "/" && |
propertyExpression[propertyExpression.length - 1] == "/") |
- regexpString = propertyExpression.slice(1, -1); |
+ regexpString = propertyExpression.slice(1, -1) |
+ .replace("\\x7B ", "{").replace("\\x7D ", "}"); |
else |
regexpString = filterToRegExp(propertyExpression); |
this.patterns.push({ |
text: pattern.text, |
regexp: new RegExp(regexpString, "i"), |
prefix: pattern.selector.substr(0, match.index), |
suffix: pattern.selector.substr(match.index + match[0].length) |