Skip to content

Instantly share code, notes, and snippets.

@oaustegard
Created April 9, 2020 05:30
Show Gist options
  • Save oaustegard/c9a4232b4747e831606d72e6b5d5045c to your computer and use it in GitHub Desktop.
Save oaustegard/c9a4232b4747e831606d72e6b5d5045c to your computer and use it in GitHub Desktop.
Search Google for Gannett article keywords
//content-keywords only - OR
javascript:try{window.open("https://www.google.com/search?hl=en&gl=us&tbm=nws&authuser=0&q="+gciData[0]["content-keywords"].split(",").join(" OR "))}catch{alert("Must be Gannett article")}
//content keywords or title
javascript:try{window.open("https://www.google.com/search?hl=en&gl=us&tbm=nws&authuser=0&q="+gciData[0]["content-title"]+" OR "+gciData[0]["content-keywords"].split(",").join(" OR "))}catch{alert("Must be Gannett article")}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment