fuyu / alexa-rank-webextension

Minimalist alexa rank extension for firefox
GNU General Public License v3.0
15 stars 2 forks source link

FireFox v60+ compatibility broken #2

Closed xGSTx closed 6 years ago

xGSTx commented 6 years ago

Hi,

This great Addon has stopped working with FireFox v60+

No Alexa Information is anywhere to be found!

The Addon itself is no longer clickable in the options button in the url bar.

Please fix this. I cannot live without this Addon.

Thank You.

12121

fuyu commented 6 years ago

I would fix it if I knew how to reproduce the issue. I'll need more details.

xGSTx commented 6 years ago

Well, it just suddenly stopped working after the FireFox automatic update to v60.

I uninstalled and reinstalled your alexa extension but had no luck.

This is all the information i have. I can't tell you what the issue is.

Is there something specific you need?

EDIT: I am using Firefox v60.0.1 - 64-Bit - German Language.

Maybe you can reproduce the Issue with my setup?

fuyu commented 6 years ago

Okay, I have an idea how you can get some helpful information. In address bar type about:debugging then enable debugging mode, scroll to the extension and click Debug. You should see a console where hopefully something useful could be. But as you can see in my case everything is working:

screen shot 2018-06-15 at 20 22 33
xGSTx commented 6 years ago

Hi,

I did what you said and i got the ouput shown below. I don't have any extension called adblocker or human-web or anti-phishing. This seems to be causing the issue. I use uBlock Origin but that is nowhere to be found in the ouput.

fuyu

I hope this helps. Let me know if there is something else i can do. I don't seem to be the only one having this issue. There are other people with the same problem. I cannot live without this great extension. Please help me fix this.

Regards.

fuyu commented 6 years ago

Unfortunately, it doesn't make much sense to me. Can you make a raw request to alexa.com? Try running in console:

$ curl "http://xml.alexa.com/data?cli=10&dat=nsa&url=github.com"

If you are willing to go further as to install web-ext for firefox, make a git clone and try running in direcory:

$ web-ext run

See if the extension appears now. Then try opening the console window (as described above) and see the output.

xGSTx commented 6 years ago

Sorry, I guess i am done with my abilities here.

the curl thing worked in bash but not in firefox console:

$ curl "http://xml.alexa.com/data?cli=10&dat=nsa&url=github.com" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4 100 4 0 0 12 0 --:--:-- --:--:-- --:--:-- 12Okay

I installed git and cloned web-ext, cd into the directory and ran web-ext run but it couldn't find the command.

I am just going to reinstall windows from scratch. if it is working for you in FF60+ well then it must work after a new reinstall of windows.

Sorry, i have no developer skills. i can't help on this level :(

ntd commented 6 years ago

I have the same problem: something seems to have changed on the Alexa side.

By leveraging a free proxy, if I send the request from an EU zone I get Okay as response body while sending from an US zone gives the proper XML response.

xGSTx commented 6 years ago

Oh wow!

Thanx for the input ntd. I was too dumb to locate the issue. haha. I also live in the EU hence the problem i guess. So, there you go. Now we know a lot more about the issue.

My Life is not worth living without this addon. Please fix this. Thanks.

hiddenchamp commented 6 years ago

I have the exact same problem. After upgrading to firefox 60 the alexa plugin got greyed out as show in the screenshot posted above by another user. This is the debug error I get:

Connecting to localhost:53317, ws: false [Exception... "Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIInputStream.available]" nsresult: "0x80470002 (NS_BASE_STREAM_CLOSED)" location: "JS frame :: resource://devtools/shared/base-loader.js -> resource://devtools/shared/security/socket.js :: onInputStreamReady :: line 328" data: no] onInputStreamReady@resource://devtools/shared/base-loader.js -> resource://devtools/shared/security/socket.js:328:9

jackdorsey commented 6 years ago

It seems it does not work for certain IPs: https://stackoverflow.com/questions/50279057/alexa-site-rank-api

It may be completely banned in the future so maybe it is better to parse this: https://www.alexa.com/minisiteinfo/stackoverflow.com or this: https://www.alexa.com/siteinfo/stackoverflow.com

hiddenchamp commented 6 years ago

@Jack you are right. I tried it with VPN and it worked for a few seconds. I have no idea what happened but after a minute or so it stopped working again.

Now whatever country I select it doesnt work. BTW I am from Romania.

fuyu commented 6 years ago

@hiddenchamp Does the URLs provided by jackdorsey work for you?

It may be completely banned in the future so maybe it is better to parse this:
https://www.alexa.com/minisiteinfo/stackoverflow.com
or this:
https://www.alexa.com/siteinfo/stackoverflow.com
hiddenchamp commented 6 years ago

@fuyu yes those links work fine. I actually use them daily now that the plugin does not work.

fuyu commented 6 years ago

This should be fixed in v0.9.2: https://github.com/fuyu/alexa-rank-webextension/releases/tag/v0.9.2