GithubHelp home page GithubHelp logo

alexfikl / e-nformation-redirect Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 99 KB

An extension to redirect scientific websites through the e-nformation.ro portals.

Home Page: https://addons.mozilla.org/en-US/firefox/addon/enformation-redirect

License: GNU General Public License v3.0

JavaScript 93.94% Makefile 6.06%
firefox-addon

e-nformation-redirect's People

Contributors

alexfikl avatar

Watchers

 avatar  avatar

e-nformation-redirect's Issues

Help Needed: Adding more universities

Not quite sure what the best way to add more universities would be. It doesn't seem like there's a documented list of the IDs used.

If anyone wants to use this for other universities, please add it to options.html. This essentially needs the ID used in the links, which you can get through

  1. Logging in and going to Profil institutional.
  2. Expand one of the resources.
  3. Copy the link from the Accesează button, which should look something like https://z.e-nformation.ro/UnivdeVestTM?action=source&sourceID=ScienceDirect_AnelisPlus, where UnivdeVestTM is the ID we're looking for.

Handle multiple resources for same hostname

There is e.g. WileyBooks_AnelisPlus and WileyJournals_AnelisPlus that both map to onlinelibrary.wiley.com. Not quite sure what the difference between these two is, but the extension should allow picking the desired one.

Improve redirection handling

At the moment, not sure how the site generates its urls. From a bit of playing around, it seems to do something like this:

  1. A URL is given on the main page, of the form https://z.e-nformation.ro/<UNIVERSITY_ID>?action=source&sourceID=<SOURCE_ID>, where

    • UNIVERSITY_ID is some short form name of the university, e.g UnivdeVestTM.
    • SOURCE_ID is some short form name for the publisher, e.g. ScienceDirectEbooks_AnelisPlus
  2. Clicking on that URL redirects to a page that looks like https://0610db95m-y-https-www-sciencedirect-com.z.e-nformation.ro/

    • The initial hash is generated by some means.
    • The rest of the URL is from the website name itself and depends on the original SOURCE_ID.
  3. On this page, we can translate by appending the pathname like this

    • https://www.sciencedirect.com/science/article/pii/S1878535217300990
    • to https://0610db95s-y-https-www-sciencedirect-com.z.e-nformation.ro/science/article/pii/S1878535217300990.

Right now this is done in a two-step fashion by storing the original URL and then clicking on the button again when the redirect in step 2 is over. Would be nice to figure out a way to do this all at once.

Incorrect redirect when not signed in

If the user is not signed in to the e-nformation.ro website, then the first click to the extension will redirect directly to the https://e-nformation.ro website itself. Going back and clicking again will redirect to the sign-in page.

Would be nice to avoid this somehow?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.