diff --git a/platform/webext/vapi-usercss.js b/platform/webext/vapi-usercss.js index 10e7d371e..9db9bce1b 100644 --- a/platform/webext/vapi-usercss.js +++ b/platform/webext/vapi-usercss.js @@ -210,7 +210,7 @@ vAPI.DOMFilterer.prototype = { if ( all !== true && this.hideNodeAttr !== undefined ) { selectors = selectors .replace('[' + this.hideNodeAttr + ']', '') - .replace(/^,\n|^\n/, ''); + .replace(/^,\n|,\n$/gm, ''); if ( selectors === '' ) { continue; } } out.declarative.push([ selectors, entry.declarations ]);