mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
This commit is contained in:
parent
efbb24c1cf
commit
87b323fe05
@ -396,15 +396,14 @@ var matchBucket = function(url, hostname, bucket, start) {
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
µBlock.elementPickerExec = function(tabId, targetElement, zap) {
|
µBlock.elementPickerExec = function(tabId, targetElement, zap) {
|
||||||
if ( vAPI.isBehindTheSceneTabId(tabId) ) {
|
if ( vAPI.isBehindTheSceneTabId(tabId) ) { return; }
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.epickerTarget = targetElement || '';
|
this.epickerTarget = targetElement || '';
|
||||||
this.epickerZap = zap || false;
|
this.epickerZap = zap || false;
|
||||||
this.scriptlets.inject(tabId, 'element-picker');
|
vAPI.tabs.injectScript(tabId, {
|
||||||
if ( typeof vAPI.tabs.select === 'function' ) {
|
file: '/js/scriptlets/element-picker.js',
|
||||||
vAPI.tabs.select(tabId);
|
runAt: 'document_end'
|
||||||
}
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user