1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-18 08:52:26 +02:00
Raymond Hill 2018-08-21 07:07:14 -04:00
parent 938d54b1f7
commit 3d867baf0b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -515,11 +515,17 @@ var matchBucket = function(url, hostname, bucket, start) {
/******************************************************************************/
// https://github.com/NanoMeow/QuickReports/issues/6#issuecomment-414516623
// Inject as early as possible to make the cosmetic logger code less
// sensitive to the removal of DOM nodes which may match injected
// cosmetic filters.
µBlock.logCosmeticFilters = function(tabId, frameId) {
if ( this.logger.isEnabled() ) {
vAPI.tabs.injectScript(tabId, {
file: '/js/scriptlets/cosmetic-logger.js',
frameId: frameId
frameId: frameId,
runAt: 'document_start'
});
}
};