Last active
September 25, 2017 21:12
-
-
Save ashander/c4f59ef39aedf9d42dead451170ef429 to your computer and use it in GitHub Desktop.
Google scholar advanced bookmarklet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- copy and paste all lines starting with javascript: below into a new bookmark. you will need to click it twice to | |
get to GS advanced. | |
Uses logic from from https://stackoverflow.com/questions/2267718/loading-page-and-executing-js-on-it-from-js-bookmarklet --> | |
javascript: | |
var url = this.document.location.href; | |
if(!url.includes("https://scholar.google.com/")) { | |
this.document.location.href = "https://scholar.google.com/"; | |
} else { | |
if (document.readyState === "complete") { | |
var hp = document.getElementById('gs_hp_drw_adv'); | |
var res = document.getElementById('gs_res_drw_adv'); | |
if (hp === null) { | |
res.click(); | |
} else { | |
hp.click(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment