NiklasGollenstede / wikipedia-peek

Firefox add-on / chrome/opera extension that shows previews of linked articles on Wikipedia pages
Mozilla Public License 2.0
19 stars 3 forks source link

Allowed Add-ons #12

Open BrontoRed opened 7 years ago

BrontoRed commented 7 years ago

If I get it right, this menu allows other add-ons to work in wikipedia-peek preview window. default

By using 'Mouseover Popup Image Viewer' script I want to see original image in article preview, when hovering over an image. But adding Greasemonkey addon ID has no effect. Is there a workaround for this problem? P.s. Suppressing "native preview" on https://ru.wikipedia.org/* pages don't work any more on russian locale of Firefox, but works on english locale.

NiklasGollenstede commented 7 years ago

Other Add-ons (WebExtensions) can open a connection to Wikipedia Peek, which will then request preview data from them by URL. The preference in the screenshot only controls which Add-ons are allowed to connect (others will be rejected). The other Add-on will still need to use a specific protocol.

It is still pretty easy to write such an Add-on. A description of what needs to be implemented can be found in the /plugin folder and the /test/plugin folder contains an example which mirrors back the current URL plus a static string that can be set in the settings. It's 40 lines of JavaScript.

BrontoRed commented 7 years ago

Sorry, I'm not a programmer and don't understand technical part of interaction between Add-ons. Do you mean that Add-on (Greasemonkey in my case) should be written from scratch or updated to be compatible with Wikipedia Peek?