28 ms·
Show all images on the page in a grid with size and megapixel tags. Useful for manual scraping. Dereferer current tab in a new tab. Some sites refuse to be ref
by wruza 2y ago
Show all images on the page in a grid with size and megapixel tags. Useful for manual scraping.
Dereferer current tab in a new tab. Some sites refuse to be referred from search/etc but copy-pasting an url into a new tab works.
Various “save” bms. Picks up a resource and opens it in new tab for a specific site that disallows right-click or hides an image in css bg, etc.
“Video”. Turns yt short into normal video (short id is regular video id).
It’s a shame that bookmarklets can’t refer to a file and require this %%% inlining. Probably solvable with tampermonkey, but not worth the research.
- gabrielsroka 2y ago> refer to a file What do you mean? > require %%% inlining They don't, and even if they did, you could encode it yourself
- wruza 2y agoWhat do you mean? A bookmarklet to take its code from a local file. Would be useful for debugging, ctrl-s and click again.
- gabrielsroka 2y agoYou can use the Snippet editor in Chrome which is an IDE with a debugger. Then Save As. If u prefix them with `javascript:`, you can drag/drop or copy/paste to the bookmark bar. https://developer.chrome.com/docs/devtools/javascript/snippets https://developer.chrome.com/docs/devtools/javascript/snippe... and https://developer.chrome.com/docs/devtools/javascript/reference https://developer.chrome.com/docs/devtools/javascript/refere... Firefox also has a nice console.
- wruza 2y agoNice, thank you very much!
- pseudo_meta 2y ago> Show all images on the page in a grid with size and megapixel tags. Useful for manual scraping. Would you mind sharing that one?
- wruza 2y agoSure. Note that it does some hqdefault vs maxresdefault loading logic for yt, which you can rip away if not needed and make it a little smaller. Also splits images into two sections, 1st all >= HD-sized pics, 2nd the rest. It still doesn't analyze css bg urls, I'm too lazy for walking the stylesheets. Click again to hide it. Images must be initially on-screen, so scroll the site down if it lazy loads them. https://pastebin.com/VMr8L6qK https://pastebin.com/VMr8L6qK It uses semicolons, so is pasteable as-is in a bookmark's address field. License is full surrender anonymous public domain, in case that matters.
- wruza 2y agoBonus for fellow scraper: AHK script for saving images. Hover over an image in the grid and press alt-shift-s. It will rclick, type i, s, enter etc. I bound it to my mouse side button to save images under cursor without going through menus. ; Alt-Shift-s (&image -> &save image) !+s:: Click, right Sleep, 350 Send, i Sleep, 100 Send, s WinWaitActive, Save As,, 5 if ErrorLevel { SoundBeep, 150, 300 return } Sleep, 100 Send, {Enter} return