Created
January 11, 2019 22:55
-
-
Save privatezero/80b1d952ec8ed4c1cba5b7aaab0aa5eb 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
function checkCollection() { | |
if ( window.location.href.split('/collection/')[1] != undefined){ | |
var collectionToSearch = window.location.href.split('/collection/')[1].split('/')[0]; | |
collectionButton = document.getElementsByClassName("btn-see-more-less")[0].click(); | |
document.getElementsByName("selectAll")[0].click(); | |
var collectionToSearch = window.location.href.split('/collection/')[1].split('/')[0]; | |
document.getElementsByName(collectionToSearch)[0].click(); | |
collectionButton = document.getElementsByClassName("btn-see-more-less")[0].click(); | |
document.querySelectorAll("[data-id='updateBtn']")[0].click(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment