- Add support for redirect URLs in adblock ffi - Rename `mock_data_url` - If the adblock url in ctx is of type http/https, redirect - Add tests - Add CSP bypass for sugarcoat rules + tests - Add restrictions for CSP bypass - Add feature flag for Sugarcoat in net::features
22 lines
541 B
HTML
22 lines
541 B
HTML
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'">
|
|
<script>
|
|
// Adds an script to the DOM with the specified src
|
|
function addScript(src) {
|
|
const script = document.createElement('script')
|
|
script.src = src
|
|
script.onload = function() {
|
|
window.domAutomationController.send(true);
|
|
};
|
|
script.onerror = function() {
|
|
window.domAutomationController.send(false);
|
|
};
|
|
document.body.appendChild(script)
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|