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

Use #?# form to make the test page compatible with other blockers

This commit is contained in:
Raymond Hill 2021-07-23 08:43:49 -04:00
parent 31e0ea1e83
commit 22284e5ff6
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -210,7 +210,7 @@
const fragment = document.createDocumentFragment();
for ( const node of document.querySelectorAll('code') ) {
const div = document.createElement('div');
div.textContent = `${hostname}##${node.textContent}`;
div.textContent = `${hostname}#?#${node.textContent}`;
fragment.appendChild(div);
}
const parent = document.querySelector('.filters');