mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-04 01:59:38 +02:00
fix #1997
This commit is contained in:
parent
cc36a6896d
commit
269c35a04a
@ -50,6 +50,7 @@ return {
|
||||
|
||||
userSettings: {
|
||||
advancedUserEnabled: false,
|
||||
alwaysDetachLogger: false,
|
||||
autoUpdate: true,
|
||||
cloudStorageEnabled: false,
|
||||
collapseBlocked: true,
|
||||
|
@ -139,7 +139,7 @@ var onMessage = function(request, sender, callback) {
|
||||
break;
|
||||
|
||||
case 'gotoURL':
|
||||
vAPI.tabs.open(request.details);
|
||||
µb.openNewTab(request.details);
|
||||
break;
|
||||
|
||||
case 'reloadTab':
|
||||
|
@ -571,8 +571,6 @@ var gotoURL = function(ev) {
|
||||
|
||||
ev.preventDefault();
|
||||
|
||||
var rel = this.getAttribute('rel') || '';
|
||||
|
||||
messaging.send(
|
||||
'popupPanel',
|
||||
{
|
||||
@ -581,7 +579,7 @@ var gotoURL = function(ev) {
|
||||
url: this.getAttribute('href'),
|
||||
select: true,
|
||||
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">
|
||||
<span data-i18n="popupBlockedOnThisPagePrompt"> </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 class="statValue" id="page-blocked">?</p>
|
||||
<div id="refresh" class="fa"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user