1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00

code review

This commit is contained in:
Raymond Hill 2014-11-26 16:32:10 -02:00
parent 27eeea3618
commit 7e55dc898e

View File

@ -19,13 +19,14 @@
Home: https://github.com/gorhill/uBlock Home: https://github.com/gorhill/uBlock
*/ */
/* global µBlock, uDom */ /* global vAPI, uDom */
'use strict';
/******************************************************************************/ /******************************************************************************/
(function() { (function() {
'use strict';
/******************************************************************************/ /******************************************************************************/
var userListName = vAPI.i18n('1pPageName'); var userListName = vAPI.i18n('1pPageName');
@ -36,7 +37,7 @@ var cacheWasPurged = false;
var needUpdate = false; var needUpdate = false;
var hasCachedContent = 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 ) { if ( !entry.homeDomain ) {
return ''; return '';
} }
var html = [ return [
' <a href="http://', ' <a href="http://',
entry.homeHostname, entry.homeHostname,
'" target="_blank">(', '" target="_blank">(',
entry.homeDomain, entry.homeDomain,
')</a>' ')</a>'
]; ].join('');
return html.join('');
}; };
var purgeButtontext = vAPI.i18n('3pExternalListPurge'); var purgeButtontext = vAPI.i18n('3pExternalListPurge');