Created
January 6, 2017 09:26
-
-
Save mickadoo/ef570d5cf416261bcf860e66742b2918 to your computer and use it in GitHub Desktop.
Open all zendesk tickets from your inbox in one click. Store as browser bookmark and click on from inbox screen. Not tested with gmail.
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
javascript:( | |
function(){ | |
var links = document.getElementsByClassName("bV"); | |
for(var i = 0; i < links.length; i++) | |
{ | |
var link = (links.item(i)); | |
if (link.text == 'View ticket') { | |
window.open(link.getAttribute('href')); | |
} else { | |
console.log('not expected' + link.text); | |
} | |
} | |
} | |
)(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment