Created
May 11, 2018 06:40
-
-
Save jadeallencook/47e9870da63aa4b2adc1dd2400d0a0b2 to your computer and use it in GitHub Desktop.
Reset tags on Likegrowers website.
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
var types = ['tag', 'location'] | |
for (var y = 0; y < types.length; y++) { | |
var type = types[y]; | |
for (var x = 0; x < document.querySelectorAll('a[data-type="' + type + '"]').length; x++) { | |
var elem = document.querySelectorAll('a[data-type="' + type + '"]')[x]; | |
while (elem) { | |
elem.click(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment