Live data from Hacker News

Show HN: Bedframe – open-source Browser Extension Development framework

github.com

31–37 of 37 posts

Re: Show HN: Bedframe – open-source Browser Extension Development framework

#32
post #12
post #11

Earlier 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

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)

Re: Show HN: Bedframe – open-source Browser Extension Development framework

#33
post #32
post #12

Earlier 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)

Cool!

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

#35
post #6

Earlier 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?

No one does at the moment. The deprecation is on hold, but Chrome has stated that they "will provide at least 6 months between a timeline announcement and any experiments deprecating MV2 features": https://developer.chrome.com/docs/extensions/migrating/mv2-s...

Re: Show HN: Bedframe – open-source Browser Extension Development framework

#36
post #15

How 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.

what would the differences be? I know you're early but assuming it's more philosophy

Re: Show HN: Bedframe – open-source Browser Extension Development framework

#37
post #33
post #32

Earlier 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?

yes!

If you find one, please let me know

Post reply on HN