Created
April 25, 2016 18:03
-
-
Save bi0xid/71d17b52bcda7abd2e773ced9ebf6ad7 to your computer and use it in GitHub Desktop.
Quick way to open pending waiting strings when validating WordPress.org projects
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
// Use rapidlinkr.com to copy-paste the links that you are going to obtain and open them in two clicks | |
var divs = document.getElementsByClassName('contribute-button'); | |
var elem = []; | |
for (var i = 0; i < divs.length; i++) { | |
var a = divs[i].getElementsByTagName('a'); | |
for (var j = 0; j < a.length; j++) { | |
var elemento = a[j]; | |
elem.push(elemento); | |
} | |
} | |
var links = []; | |
for (var i = 0; i < elem.length; i++) { | |
var link = elem[i] + '<br />'; | |
links.push(link); | |
} | |
document.getElementById("wordpress-org").innerHTML = links; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment