Skip to content

Instantly share code, notes, and snippets.

@timlevett
Last active November 8, 2018 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timlevett/29ae591153ea6a8aa61cc2f6e760bac0 to your computer and use it in GitHub Desktop.
Save timlevett/29ae591153ea6a8aa61cc2f6e760bac0 to your computer and use it in GitHub Desktop.
javascript:(() => {
/* originally copied from https://gist.github.com/timlevett/29ae591153ea6a8aa61cc2f6e760bac0 */
var as = document.getElementsByClassName("external-link");
for(var i = 0; i < as.length; i++) {
if(as[i].href
&& as[i].href.indexOf('drive') != -1
&& as[i].href.indexOf('open') != -1) {
console.log(as[i].href);
window.open(as[i].href, "_blank");
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment