Google Scholar Translator Problem
Hi All,
When I search Google Scholar through my library's proxy, the translator doesn't come up (i.e., no icon appears in the address bar in Firefox).
Looking at the .js file, I realize that the problem is likely with this regular expression:
"target": "^https?://scholar\\.google\\.(?:com|com?\\.[a-z]{2}|[a-z]{2}|co\\.[a-z]{2})/scholar(?:_case)*",
because the URL that I have for a search is:
https://scholar-google-com.eres.library.manoa.hawaii.edu/scholar?hl=en&q=dogside+story&btnG=&as_sdt=1%2C5&as_sdtp=
The problem is, I'm not very comfortable with regular expressions. Can anyone help me figure out how to change it so it catches my URL?
When I search Google Scholar through my library's proxy, the translator doesn't come up (i.e., no icon appears in the address bar in Firefox).
Looking at the .js file, I realize that the problem is likely with this regular expression:
"target": "^https?://scholar\\.google\\.(?:com|com?\\.[a-z]{2}|[a-z]{2}|co\\.[a-z]{2})/scholar(?:_case)*",
because the URL that I have for a search is:
https://scholar-google-com.eres.library.manoa.hawaii.edu/scholar?hl=en&q=dogside+story&btnG=&as_sdt=1%2C5&as_sdtp=
The problem is, I'm not very comfortable with regular expressions. Can anyone help me figure out how to change it so it catches my URL?
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
the problem is the stupid replacing of periods with hyphens in the URL that some proxys perform.
Your suggestion didn't quite work, but it was enough to get me fiddling through to a workable solution.
I ended up with this:
"target": "^https?://scholar[\\.\\-]google[\\.\\-](?:com|cat|(?:com?\\.)?[a-z]{2})(?:\\.eres\\.library\\.manoa\\.hawaii\\.edu)?/(?:scholar(?:_case)?\\?|citations\\?)",