doi2scihub
doi2scihub copied to clipboard
Unexpected reloads on Google, Stack Exchange and Reddit
Sites have unexpected reloads:
- Stack Exchange
Actually, I don't manage to reproduce this behavior (tried Firefox 38/GM and Chrome 56/TM). A quick (and dirty) fix could be:
// @exclude http*://*.google.*
// @exclude http*://*.stackexchange.com/*
I suppose this is due to the 'addEventListener' routine (see commit ffee633). But it appears necessary on certain websites (e.g. ScienceDirect). Try removing it from the script and tell me how it goes.
Sorry for this late response. Rolling back to your version 4 does not solve the problem. I think it happens maybe because it conflicts with my other scripts. That quick fix works as expected, since rarely in those sites I click on any DOIs. Thanks for your work.