Skip to content

Instantly share code, notes, and snippets.

@phyesix
Last active October 22, 2021 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phyesix/54f20b13d18f4500da31258fcd7001c1 to your computer and use it in GitHub Desktop.
Save phyesix/54f20b13d18f4500da31258fcd7001c1 to your computer and use it in GitHub Desktop.
document.querySelectorAll('.style_pt-desktop-6__1jDK_').forEach(function(element ,index) {
if(element.querySelector('button').classList.contains('styles_upvoted__2FBD8') === false ) {
setTimeout(function(){
element.querySelector('.styles_externalLinkIcon__1p0HV').click();
element.querySelector('button').click();
}, 500);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment