1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-02 00:42:45 +01:00

Remove all event handlers from no-large-media-elements content scripts

Related issue:
- https://github.com/gorhill/uBlock/issues/1390
This commit is contained in:
Raymond Hill 2020-10-22 09:01:59 -04:00
parent 902fd51522
commit 37b195f61d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -215,6 +215,7 @@ document.addEventListener('error', onLoadError, true);
/******************************************************************************/ /******************************************************************************/
vAPI.loadAllLargeMedia = function() { vAPI.loadAllLargeMedia = function() {
document.removeEventListener('click', onMouseClick, true);
document.removeEventListener('load', onLoad, true); document.removeEventListener('load', onLoad, true);
document.removeEventListener('error', onLoadError, true); document.removeEventListener('error', onLoadError, true);