-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtineye.js
More file actions
31 lines (27 loc) · 914 Bytes
/
tineye.js
File metadata and controls
31 lines (27 loc) · 914 Bytes
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
// ==UserScript==
// @name Better Tineye
// @version 0.1
// @description Check if images are still active
// @author Goofables
// @match https://tineye.com/*
// @icon https://www.google.com/s2/favicons?domain=tineye.com
// @grant none
// ==/UserScript==
function test_images() {
for (const e of document.getElementsByClassName("image-link")) {
const img = document.createElement("img");
img.src = "https://i.mxsmp.com/a:tineye/" + e.getElementsByTagName("a")[0].href;
img.referrerPolicy = "no-referrer";
img.width = 20;
img.height = 20;
e.append(img);
}
}
setTimeout(
() => {
const button = document.createElement('button');
button.innerText = 'Test images';
button.addEventListener('click', test_images);
document.getElementById("results-div").prepend(button);
}, 1000
)