mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 10:09:38 +02:00
code review
This commit is contained in:
parent
27eeea3618
commit
7e55dc898e
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user