Project

General

Profile

Download (1.44 KB) Statistics
| Branch: | Tag: | Revision:

haketilo / test / data / pages / scripts_to_block_1.html @ 4c6a2323

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
      Click Meee!
35
    </button>
36
    <a id="clickme2"
37
       href="javascript:window.__run = [...(window.__run || []), 'href'];void(0);">
38
      Click Meee!
39
    </a>
40
    <iframe src="javascript:window.parent.__run = [...(window.parent.__run || []), 'src'];">
41
    </iframe>
42
    <object data="javascript:window.__run = [...(window.__run || []), 'data'];">
43
    </object>
44
  </body>
45
</html>
(3-3/3)