Show HN: Bedframe – open-source Browser Extension Development framework
31–37 of 37 posts
Re: Show HN: Bedframe – open-source Browser Extension Development framework
#32Earlier quoted context omitted.
I recently started to have the same ideas, and I have created 3 bookmarklets and 1 userscript https://github.com/madacol/web-automation
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
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)Re: Show HN: Bedframe – open-source Browser Extension Development framework
#33Earlier quoted context omitted.
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)
I feel like there should be something like a bookmarklet store, similar to the extensions, or userscripts, right?
Re: Show HN: Bedframe – open-source Browser Extension Development framework
#34Re: Show HN: Bedframe – open-source Browser Extension Development framework
#35Earlier quoted context omitted.
Ooof!! It is an... interesting time right now in extensions land. The switch from MV2 to MV3 is a bit chaotic but hopefully tools like this (Bedframe) and tools like [Plasmo]( https://github.com/PlasmoHQ/plasmo ) start to inject some freshness in the space.
Do you know when Google will depreciate MV2 extensions?
Re: Show HN: Bedframe – open-source Browser Extension Development framework
#36How does this position with something like plasma.dev? I’ve been happy with it, especially the testing / beta deployment and messaging libraries.
Plasmo? They're certainly further along in dev and doing great work. Bedframe is a slightly differing approach to the same pretty much.
Re: Show HN: Bedframe – open-source Browser Extension Development framework
#37Earlier quoted context omitted.
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?
If you find one, please let me know