Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow use of a custom dpaste server URL #37

Open
superjamie opened this issue May 25, 2021 · 2 comments
Open

Allow use of a custom dpaste server URL #37

superjamie opened this issue May 25, 2021 · 2 comments

Comments

@superjamie
Copy link

As you have said, the WebExtensions API requires an external intermediary to "publish" the OpenSearch engine and you are currently using the Mozilla Pastebin https://paste.mozilla.org/ for this.

The Mozilla Pastebin is just an instance of dpaste, an open source Pastebin.

I assume the extension could theoretically use any dpaste sever, and is not bound to only use Firefox Pastebin.

If so, users could host their own dpaste server (even temporarily, like a throwaway container) to allow publishing of OpenSearch engines where the user has control of their data and is not exposing their data publicly on the Mozilla Pastebin.

Is it possible for this extension to allow a custom dpaste URL?

@TFWol
Copy link

TFWol commented Aug 19, 2021

I was thinking the same thing.
@evilpie Could this post have the Enhancement label?

For the Addon:
Maybe have an option to fill in a custom URL? The default URL could be prefilled pointing to https://paste.mozilla.org/

@superjamie I'm not too familiar with JavaScript, but I'm thinking a section in the manifest would need to be modified

"permissions": [
"https://paste.mozilla.org/api/",
"search"
],

Doing so would probably require wildcards and cause the Store extension permissions changing from:

This add-on needs to: Access your data for paste.mozilla.org

to:

This add-on needs to: Access your data for all websites

Generally add-ons that say that make me squeamish if I can't see the source code.
Having the Recommended label would probably help in that case.

@ericrbg
Copy link

ericrbg commented Aug 19, 2021

This would also be nice, as as far as I can tell the current solution is broke; it's set to one-time and something in FF is reading it before it can get added to my search.

E: God this is so frustrating. I don't know why Mozilla decided that they can't make a convenient way to do this...

Edit2: never mind, I think the "suggest URL" option is borked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants