mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 17:17:57 +01:00
This commit is contained in:
parent
efbb24c1cf
commit
87b323fe05
1 changed files with 6 additions and 7 deletions
|
@ -396,15 +396,14 @@ var matchBucket = function(url, hostname, bucket, start) {
|
|||
/******************************************************************************/
|
||||
|
||||
µBlock.elementPickerExec = function(tabId, targetElement, zap) {
|
||||
if ( vAPI.isBehindTheSceneTabId(tabId) ) {
|
||||
return;
|
||||
}
|
||||
if ( vAPI.isBehindTheSceneTabId(tabId) ) { return; }
|
||||
|
||||
this.epickerTarget = targetElement || '';
|
||||
this.epickerZap = zap || false;
|
||||
this.scriptlets.inject(tabId, 'element-picker');
|
||||
if ( typeof vAPI.tabs.select === 'function' ) {
|
||||
vAPI.tabs.select(tabId);
|
||||
}
|
||||
vAPI.tabs.injectScript(tabId, {
|
||||
file: '/js/scriptlets/element-picker.js',
|
||||
runAt: 'document_end'
|
||||
});
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
|
Loading…
Reference in a new issue