mirror of https://github.com/gorhill/uBlock.git
fix #1997
This commit is contained in:
parent
cc36a6896d
commit
269c35a04a
|
@ -50,6 +50,7 @@ return {
|
||||||
|
|
||||||
userSettings: {
|
userSettings: {
|
||||||
advancedUserEnabled: false,
|
advancedUserEnabled: false,
|
||||||
|
alwaysDetachLogger: false,
|
||||||
autoUpdate: true,
|
autoUpdate: true,
|
||||||
cloudStorageEnabled: false,
|
cloudStorageEnabled: false,
|
||||||
collapseBlocked: true,
|
collapseBlocked: true,
|
||||||
|
|
|
@ -139,7 +139,7 @@ var onMessage = function(request, sender, callback) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'gotoURL':
|
case 'gotoURL':
|
||||||
vAPI.tabs.open(request.details);
|
µb.openNewTab(request.details);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'reloadTab':
|
case 'reloadTab':
|
||||||
|
|
|
@ -571,8 +571,6 @@ var gotoURL = function(ev) {
|
||||||
|
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
|
||||||
var rel = this.getAttribute('rel') || '';
|
|
||||||
|
|
||||||
messaging.send(
|
messaging.send(
|
||||||
'popupPanel',
|
'popupPanel',
|
||||||
{
|
{
|
||||||
|
@ -581,7 +579,7 @@ var gotoURL = function(ev) {
|
||||||
url: this.getAttribute('href'),
|
url: this.getAttribute('href'),
|
||||||
select: true,
|
select: true,
|
||||||
index: -1,
|
index: -1,
|
||||||
popup: rel === 'popup' && ev.shiftKey
|
shiftKey: ev.shiftKey
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -210,3 +210,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
|
µBlock.openNewTab = function(details) {
|
||||||
|
if ( details.url.startsWith('logger-ui.html') ) {
|
||||||
|
if ( details.shiftKey ) {
|
||||||
|
this.userSettings.alwaysDetachLogger = !this.userSettings.alwaysDetachLogger;
|
||||||
|
}
|
||||||
|
details.popup = this.userSettings.alwaysDetachLogger;
|
||||||
|
}
|
||||||
|
vAPI.tabs.open(details);
|
||||||
|
};
|
||||||
|
|
||||||
|
/******************************************************************************/
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<p class="statName">
|
<p class="statName">
|
||||||
<span data-i18n="popupBlockedOnThisPagePrompt"> </span> 
|
<span data-i18n="popupBlockedOnThisPagePrompt"> </span> 
|
||||||
<span id="gotoPick" class="fa tool" data-i18n-tip="popupTipPicker"></span> 
|
<span id="gotoPick" class="fa tool" data-i18n-tip="popupTipPicker"></span> 
|
||||||
<a href="logger-ui.html" rel="popup" class="fa tool enabled" data-i18n-tip="popupTipLog"></a>
|
<a href="logger-ui.html" class="fa tool enabled" data-i18n-tip="popupTipLog"></a>
|
||||||
</p>
|
</p>
|
||||||
<p class="statValue" id="page-blocked">?</p>
|
<p class="statValue" id="page-blocked">?</p>
|
||||||
<div id="refresh" class="fa"></div>
|
<div id="refresh" class="fa"></div>
|
||||||
|
|
Loading…
Reference in New Issue