Last active
January 9, 2020 14:58
-
-
Save lpanebr/befc928fcd37d14549aeec349cba7e5a to your computer and use it in GitHub Desktop.
This file contains 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
// To create the actual bookmarklet use | |
// https://mrcoles.com/bookmarklet/ | |
// prompts for a SELECT ID and displays all it's OPTIONS | |
var selector = prompt("qual ID do SELECT?"); | |
var states = document.getElementById(selector).getElementsByTagName('option'); | |
var list = ""; | |
for (var i = 0; i < states.length; i++) { list += states[i].value+"<br>" ; } | |
document.body.innerHTML = '<div style="color:#000;background:#fff;">'+list+'</div>'; | |
// shows the Gmail Thread ID | |
prompt("Código da mensagem",document.querySelector('[role="main"][data-legacy-thread-id]').getAttribute('data-legacy-thread-id')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment