Skip to content

Instantly share code, notes, and snippets.

@jadeallencook
Created May 11, 2018 06:40
Show Gist options
  • Save jadeallencook/47e9870da63aa4b2adc1dd2400d0a0b2 to your computer and use it in GitHub Desktop.
Save jadeallencook/47e9870da63aa4b2adc1dd2400d0a0b2 to your computer and use it in GitHub Desktop.
Reset tags on Likegrowers website.
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