3 ms·
Do you have any user scripts you find handy or use often?
by jwong_ 3y ago
Do you have any user scripts you find handy or use often?
- madacol 3y agoI recently started to have the same ideas, and I have created 3 bookmarklets and 1 userscript https://github.com/madacol/web-automation https://github.com/madacol/web-automation
- madacol 3y agoTo 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
- jwong_ 3y agoHey that's neat! Super annoying having to dig through the dynamically-generated DOM.
- hnben 3y agohighlight 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)