Last active
July 29, 2018 20:16
-
-
Save adam-acosta/d07ef2bc844a49ce8acc6d5966c57f29 to your computer and use it in GitHub Desktop.
Revisions
-
adam-acosta revised this gist
Jul 29, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,6 @@ function getElementsByText(str, tag = 'a') { var addButtons = getElementsByText('Add', 'button'); for(var i = 0; i <= addButtons.length-1; i++) { addButtons[i].click(); } -
adam-acosta revised this gist
Jul 29, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ function getElementsByText(str, tag = 'a') { return Array.prototype.slice.call(document.getElementsByTagName(tag)).filter(el => el.textContent.trim() === str.trim()); } var addButtons = getElementsByText('Add', 'button'); for(var i = 0; i <= addButtons.length; i++) { addButtons[i].click(); -
adam-acosta created this gist
Jul 29, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ // https://stackoverflow.com/a/45089849 function getElementsByText(str, tag = 'a') { return Array.prototype.slice.call(document.getElementsByTagName(tag)).filter(el => el.textContent.trim() === str.trim()); } var addButtons = getElementsByText('Promote again', 'button'); for(var i = 0; i <= addButtons.length; i++) { addButtons[i].click(); }