1
|
<!DOCTYPE html>
|
2
|
<!--
|
3
|
SPDX-License-Identifier: CC0-1.0
|
4
|
|
5
|
A testing page with various scripts that need to get blocked.
|
6
|
|
7
|
This file is part of Haketilo.
|
8
|
|
9
|
Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
|
10
|
|
11
|
This program is free software: you can redistribute it and/or modify
|
12
|
it under the terms of the CC0 1.0 Universal License as published by
|
13
|
the Creative Commons Corporation.
|
14
|
|
15
|
This program is distributed in the hope that it will be useful,
|
16
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
17
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
18
|
CC0 1.0 Universal License for more details.
|
19
|
-->
|
20
|
<html>
|
21
|
<head>
|
22
|
<meta name="charset" value="latin1">
|
23
|
<script>
|
24
|
window.__run = [...(window.__run || []), 'inline'];
|
25
|
</script>
|
26
|
<!-- the one below shall not execute even when blocking is off... -->
|
27
|
<script type="application/json">
|
28
|
window.__run = [...(window.__run || []), 'json'];
|
29
|
</script>
|
30
|
</head>
|
31
|
<body>
|
32
|
<button id="clickme1"
|
33
|
onclick="window.__run = [...(window.__run || []), 'on'];"
|
34
|
blocked-onclick="some useful data">
|
35
|
Click Meee!
|
36
|
</button>
|
37
|
<a id="clickme2"
|
38
|
href="javascript:window.__run = [...(window.__run || []), 'href'];void(0);">
|
39
|
Click Meee!
|
40
|
</a>
|
41
|
<iframe src="javascript:void(window.parent.__run = [...(window.parent.__run || []), 'src']);">
|
42
|
</iframe>
|
43
|
<object data="javascript:window.__run = [...(window.__run || []), 'data'];">
|
44
|
</object>
|
45
|
</body>
|
46
|
</html>
|