diff options
author | Raymond Hill <rhill@raymondhill.net> | 2014-11-26 16:32:10 -0200 |
---|---|---|
committer | Raymond Hill <rhill@raymondhill.net> | 2014-11-26 16:32:10 -0200 |
commit | 7e55dc898e55829e81bcc90623f96acd0330aa25 (patch) | |
tree | 2c22e59056c76c44d9d3105222d4a52aa924812a /src/js/3p-filters.js | |
parent | 27eeea36185cc64b3d5f2148d992ec52645392db (diff) | |
download | uBlock-7e55dc898e55829e81bcc90623f96acd0330aa25.zip uBlock-7e55dc898e55829e81bcc90623f96acd0330aa25.tar.gz uBlock-7e55dc898e55829e81bcc90623f96acd0330aa25.tar.bz2 |
code review
Diffstat (limited to 'src/js/3p-filters.js')
-rw-r--r-- | src/js/3p-filters.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/js/3p-filters.js b/src/js/3p-filters.js index b6bb1ea..c19a8e6 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 [ ' <a href="http://', entry.homeHostname, '" target="_blank">(', entry.homeDomain, ')</a>' - ]; - return html.join(''); + ].join(''); }; var purgeButtontext = vAPI.i18n('3pExternalListPurge'); |