Hacker News new | ask | show | jobs
by madacol 1020 days ago
I recently started to have the same ideas, and I have created 3 bookmarklets and 1 userscript https://github.com/madacol/web-automation
1 comments

To give you an example

This is a bookmarklet to edit any text on a web page

    javascript: (function() {   document.body.contentEditable = true;   document.body.spellcheck = false;  })();
Very useful when I want to grab a screenshot and I want to REDACT personal information
highlight a string on a website, then click this to translate with google

        javascript:(function() { const baseUrl = "https://translate.google.com/?op=translate&sl=auto&tl=de&text="; const textRaw = window.getSelection(); const text = encodeURIComponent(textRaw); console.log("selected text: ", text, textRaw); window.open(baseUrl + text) })();

(maybe adjust the target language in the url)
Cool!

I feel like there should be something like a bookmarklet store, similar to the extensions, or userscripts, right?

yes!

If you find one, please let me know

Hey that's neat! Super annoying having to dig through the dynamically-generated DOM.