4

I can access various scientific journals for free through my university's internal site. However, I often find an interesting article through a Google search, and have to manually modify the url to access the free version.

For example:

www.nature.com/SomethingSpecifyingTheArticle

needs to be

www.nature.com.ExtraPart/SomethingSpecifyingTheArticle

The ExtraPart gives me free access to the article via my university credentials. I can manually add it to the URL, but I am looking for a way to do it automatically.

It always goes at the end of the root URL like this:

www.science.com.ExtraPart/SomethingSpecifyingTheArticle prl.aps.org.ExtraPart/SomethingSpecifyingTheArticle

Is it possible to automate this? Maybe using some script and Greasemonkey?

Thanks in advance.

4

2 回答 2

2

更好更通用的解决方案:

使用以下地址添加书签(在任何浏览器中):

javascript:(function(){%20var%20curloc%20=%20window.location.toString();%20var%20newloc%20=%20curloc.substring(0,%20curloc.indexOf("/",%208)) %20+%20".ExtraPart"%20+%20curloc.substring(curloc.indexOf("/",%208));%20location.href=newloc;%20})()

当您在页面上时,您希望在根 URL 的末尾添加 ExtraPart,请单击此书签。

于 2012-11-04T21:36:50.237 回答
0

URL Swap Run (https://addons.mozilla.org/en-us/firefox/addon/url-swap/) essentially does what I want - the only bad thing about it is that I have to manually add the individual journals as rules in the preferences, but that's not a big issue.

于 2012-11-04T11:17:31.643 回答