mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 16:47:15 +02:00
parent
2c4faaa84d
commit
1e760f9429
@ -69,14 +69,10 @@ var onBlockElement = function(details, tab) {
|
|||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
var onTemporarilyAllowLargeMediaElements = function(details, tab) {
|
var onTemporarilyAllowLargeMediaElements = function(details, tab) {
|
||||||
if ( tab === undefined ) {
|
if ( tab === undefined ) { return; }
|
||||||
return;
|
|
||||||
}
|
|
||||||
var pageStore = µb.pageStoreFromTabId(tab.id);
|
var pageStore = µb.pageStoreFromTabId(tab.id);
|
||||||
if ( pageStore === null ) {
|
if ( pageStore === null ) { return; }
|
||||||
return;
|
pageStore.temporarilyAllowLargeMediaElements(true);
|
||||||
}
|
|
||||||
pageStore.temporarilyAllowLargeMediaElements();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
Loading…
Reference in New Issue
Block a user