-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (40 loc) · 1.31 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Image spotter</title>
<style>
body {
width: 1024px;
margin: 0 auto;
}
</style>
</head>
<body>
<h1>Image spotter</h1>
<p>
Simple bookmark utility that lets you spot images on a website (with width and height bigger
or equal than 100px) and download them.
</p>
<p>
In order to use it, drag the following link to your bookmarks bar:
<a
id="js-link"
href="javascript:(function(){var d=document;var e=d.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('src','https://patillades.github.io/img-spotter/spotter.min.js');d.body.appendChild(e);})();"
>
Spot images!
</a>
</p>
<p>
If nothing happens when you click on the bookmark, it might be because the page you are on
is using <a href="https://content-security-policy.com/">Content Security Policy</a> in order
to reduce XSS risks. If that's the case, you will find a message in the browser's console.
</p>
<script>
document.getElementById('js-link').onclick = function () {
alert('Drag me to the bookmarks bar');
return false;
}
</script>
</body>
</html>