wallabagger icon indicating copy to clipboard operation
wallabagger copied to clipboard

Use `page_action` instead of `browser_action`

Open NicolasPetton opened this issue 6 years ago • 9 comments

I think it would be more consistent to use page_action instead of browser_action (eg moving the icon in the address bar):

  • The wallabag icon would be closer to the bookmark icon
  • It's a conceptually similar to bookmarking, so it feels like it belongs in the address bar as well
  • Pocket will work this way in future versions of Firefox:

screenshot from 2017-08-04 16-54-01

NicolasPetton avatar Aug 04 '17 14:08 NicolasPetton

Eventually it would be nice to hide the icon when it's not relevant.

tcitworld avatar Aug 04 '17 15:08 tcitworld

@NicolasPetton I'm not sure about this. The documentation says:

If your extension provides the user with features they can use on almost every website [...] use browser action. If your extension offers a feature for a type of web page [...] use page action

As far as I know, any URL can be sent to Wallabag.

Do you have any reference explaining why Pocket would go in the address bar?

@tcitworld Do you have examples of "when it's not relevant"? They might support the suggestion of @NicolasPetton.

DamienCassou avatar Aug 22 '17 14:08 DamienCassou

I think the Pocket icon is in the address bar to be physically close to the bookmark icon, which makes a lot of sense from the user perspective.

NicolasPetton avatar Aug 22 '17 20:08 NicolasPetton

It looks like this in FF Nightly (57.0a1): image in FF (55.0.2) image in Vivaldi browser (1.12.936.3) also image in Opera (47.0.2631.55) image

BUT it seems that Chrome itself stop showing icons inside address bar in the latest builds https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-extensions/upcoming/chromium-extensions/7As9MKhav5E/dNiZDoSCCQAJ ( 60.0.3112.101 ) image canary ( 62.0.3193.0 ) image and Yandex browser too, while its owns icons are shown image Let's hope they return it.

Rurik19 avatar Aug 23 '17 08:08 Rurik19

There is this place in nightly: screenshot from 2017-08-23 10-40-53

To remember: The Wallabag icon currently has a context menu whose actions are not related at all to the current page such as "Unread articles".

DamienCassou avatar Aug 23 '17 08:08 DamienCassou

Edge also can do it image but chrome can't :disappointed:

Rurik19 avatar Aug 23 '17 13:08 Rurik19

Google says:

  • Do use page actions for features that make sense for only a few pages.
  • Don't use page actions for features that make sense for most pages. Use browser actions instead. [Source]

Mozilla says:

Use a page action when the action is related to the current page, and a browser action when the action is related to the browser as a whole or too many pages. [Source]

Page actions are for actions that are only relevant to particular pages (such as "bookmark the current tab"). If they are relevant to the browser as a whole (such as "show all bookmarks"), use a browser action instead. [Source]


Looking at Google's advice, browser action seems most appropriate. Firefox's advice is a little more ambiguous; "bookmarking the current tab" is very close to Wallabagger's main use case, but at the same time the current action does do more than just interact with the current page.

Maybe having just a page action would be a neat way of implementing #125 (Option to disable popup), while keeping the current browser action as the default.

ghost avatar Jan 09 '20 01:01 ghost

Looks like someone went for this last month as a separate extension. https://addons.mozilla.org/en-GB/firefox/addon/wallabaggerini/

ghost avatar Jan 11 '20 15:01 ghost

Is this still on roadmap?

onnyyonn avatar Apr 18 '20 15:04 onnyyonn