| Index: lib/elemHide.js | 
| =================================================================== | 
| --- a/lib/elemHide.js | 
| +++ b/lib/elemHide.js | 
| @@ -229,17 +229,17 @@ | 
| * @param {boolean} [specificOnly] true if generic filters should not apply. | 
| * @returns {string[]} List of selectors. | 
| */ | 
| getSelectorsForDomain(domain, specificOnly = false) | 
| { | 
| let selectors = []; | 
|  | 
| let excluded = new Set(); | 
| -    let currentDomain = domain ? domain.toUpperCase() : ""; | 
| +    let currentDomain = domain ? domain.replace(/\.+$/, "").toUpperCase() : ""; | 
|  | 
| // This code is a performance hot-spot, which is why we've made certain | 
| // micro-optimisations. Please be careful before making changes. | 
| while (true) | 
| { | 
| if (specificOnly && currentDomain == "") | 
| break; | 
|  | 
|  |