diff --git a/src/js/3p-filters.js b/src/js/3p-filters.js index b6bb1ea3a..c19a8e6da 100644 --- a/src/js/3p-filters.js +++ b/src/js/3p-filters.js @@ -19,13 +19,14 @@ Home: https://github.com/gorhill/uBlock */ -/* global µBlock, uDom */ -'use strict'; +/* global vAPI, uDom */ /******************************************************************************/ (function() { +'use strict'; + /******************************************************************************/ var userListName = vAPI.i18n('1pPageName'); @@ -36,7 +37,7 @@ var cacheWasPurged = false; var needUpdate = false; var hasCachedContent = false; -var re3rdPartyExternalAsset = /^https?:\/\/([a-z0-9.-]+)/; +var re3rdPartyExternalAsset = /^https?:\/\/[a-z0-9]+/; /******************************************************************************/ @@ -84,14 +85,13 @@ var renderBlacklists = function() { if ( !entry.homeDomain ) { return ''; } - var html = [ + return [ ' (', entry.homeDomain, ')' - ]; - return html.join(''); + ].join(''); }; var purgeButtontext = vAPI.i18n('3pExternalListPurge');