This repository has been archived by the owner on May 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
l8r.html
59 lines (50 loc) · 1.42 KB
/
l8r.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<html>
<head>
<title>l8r test</title>
<script src="l8r.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
l8r.addBlockers(['foo', 'bar', 'baz'])
</script>
</head>
<body>
<h1>Event 1</h1>
<ul>
<li>
<a href="http://google.com" onclick="return l8r.nq(this, 'event.1')">Go to Google</a>
</li>
<li>
<a href="http://slashdot.org" onclick="return l8r.nq(this, 'event.1')">Go to /.</a>
</li>
<li>
<a href="http://bbcnews.com" onclick="return l8r.nq(this, 'event.1', true)">Go to BBC News</a> (blocks)
</li>
</ul>
<h1>Event 2</h1>
<ul>
<li>
<a href="http://facebook.com" onclick="return l8r.nq(this, 'event.2')">Go to Facebook</a>
</li>
<li>
<a href="http://apple.com" onclick="return l8r.nq(this, 'event.2', {foo:'bar'}, true)">Go to Apple (blocks)</a>
</li>
</ul>
<h1>Event foo</h1>
<ul>
<li>
<a href="http://facebook.com" onclick="return l8r.nq(this, 'foo')">Go to NextMovie</a>
</li>
</ul>
<button id="remove_onclicks">Remove onclicks</button>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$("#remove_onclicks").click(function(e) {
$("*[onclick]").each(function(index, item) {
$(item).attr('onclick', '');
})
return false;
})
});
</script>
</body>
</html>