News for hackers. Stuff that matters.
Re:Firefox 57 as the first release where only WebExtensions ... by Larrikin on Saturday February 18, 2017 @01:32PM (#13675962)
I'm extremely worried about Rikai-chan/sama.

Rikaichan allows translation of Japanese words simply by hovering your mouse over. It works much better than entering words into an online dictionary, since nearly every free JE-EJ dictionary uses the same source, and if a conjugation isn't translatable it will cut the word off giving the meaning and then letting you easily highlight the conjugation to figure out the meaning of the two together. Its just much faster than using something like jisho.org if theres a lot of words in a text you don't know. Rikaisama makes Rikaichan even more powerful with a lot of extra features

Everytime I've ever tried the similar plug-ins on Chrome they've all been terrible, missing words, missing conjugation, or just being slow in general. Its the first check I do every time I think about switching browsers.

However with the new Electrolysis on Firefox its completely broken and it seems like the dev might not want to do a rewrite since the plugin works exactly how you would want it and has for a few years now, but especially not if the sandbox changes make the plugin impossible to work.

Re:Firefox 57 as the first release where only WebExtensions ... by ytugiuyghvk on Saturday February 18, 2017 @01:56PM (#13676088)
Same here. Is the Lookupbar (Alt+Del) possible to do with WebExtensions? I think it would have to be recreated in the DOM and inserted into the web page.
Re:Firefox 57 as the first release where only WebExtensions ... by ripdog on Saturday February 18, 2017 @03:37PM (#13676553)
There's nothing difficult or complex (or unsupported) about inserting content into web pages. The main limitation of webextensions is that free-form UI modification is no longer possible, the UI can only be modded in specific, allowed ways.
Re:Firefox 57 as the first release where only WebExtensions ... by ytugiuyghvk on Saturday February 18, 2017 @06:38PM (#13677300)
No, but there are several reasons it is suboptimal here.

The lookupbar is associated with the window chrome (ie. there is one per window). Inserting it into the DOM requires emulating this behavior by synthesizing one "bar" in each tab, adding and deleting them at the right time, etc.

Inserted content always has the possibility of interacting poorly with the scripts and styles of the underlying page (or other extensions). Rikai-chan already has problems where its overlays will end of underneath page content.

Inserted content goes below the line of death (https://textslashplain.com/2017/01/14/the-line-of-death/). There are other minor deficiencies: you can't get the browser's theme on the bar, etc.

For Rikai-chan, it seems like it'd be nice to allow the background script to write to a page that sits on top of the space that shows the actual page and have the content scripts communicate what should be rendered. AFAIK, the only ways to show something on the screen is to either send it to the content scripts and have them modify the DOMs, or show it in a popup for a button.

Re:Firefox 57 as the first release where only WebExtensions ... by delroth on Saturday February 18, 2017 @01:53PM (#13676078)
I've been using Rikai-kun[1] on Chrome. It claims to be a port of Rikai-chan, I'm curious in which ways it's inferior (I have not tried the original Firefox addon).

[1] https://chrome.google.com/webstore/detail/rikaikun/jipdnfibh...

Re:Firefox 57 as the first release where only WebExtensions ... by Grue3 on Saturday February 18, 2017 @04:23PM (#13676765)
May I recommend http://ichi.moe? There's no browser plugin, but it has way better word segmenting and conjugation algorithms than jisho.
Re:Firefox 57 as the first release where only WebExtensions ... by hysan on Saturday February 18, 2017 @08:12PM (#13677634)
That might be nice for the occasional translation, but it pales in comparison to the usability and experience Rikai-chan offers or I guess soon offered.