Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Unnamed Script 555489
- // @version 1
- // @grant none
- // @author Dildoer the Cocknight aka Taylor Wright
- // @include *
- // ==/UserScript==
- //use window onload instead of document onload so you can wait for all the shit to finish loading.
- window.onload = function() {
- //grab all images at once and run that shit through a foreach loop
- document.querySelectorAll('img').forEach( (image, index) => {
- //what you want to do to each image here
- image.setAttribute("contextmenu", `menu${index}`),
- image.innerHTML = `<menu type="context" id="menu${index}"> <menuitem label="Sauce NAO" onclick="window.open('https://saucenao.com/search.php?url=${image.src}');" icon="https://saucenao.com/images/static/siteicons/tineye.ico"></menuitem> </menu> `;
- })}
- //this is my first firefox script, I usually use chrome or moreso iridium because chrome is full of CIA niggers but here's an example for anon #714967
Advertisement
Add Comment
Please, Sign In to add comment