Created
August 20, 2016 07:33
-
-
Save pvdz/26473dd35c9ebd04d8a089fc0cd319d3 to your computer and use it in GitHub Desktop.
mass steam confirmation clicking in gmail (through console)
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 e = document.createElement('div'); | |
e.innerHTML = Array.from(document.body.querySelectorAll('a[href^="https://steamcommunity.com/market/confirmlisting/"]')) | |
.filter(e => e.href.indexOf('cancel') < 0) | |
.map(e => '<a href="'+e.href+'" onclick="p=this.parentNode;p.removeChild(this.nextElementSibling);p.removeChild(this);if(!p.children.length)p.parentNode.removeChild(p);">'+e.href+'</a><br>') | |
.join('\n'); | |
document.body.appendChild(e); | |
e.style.position = 'absolute'; | |
e.style.top = 0; | |
e.style.backgroundColor='white'; | |
e.style.border='1px solid black'; | |
e.style.padding = '5px'; | |
e.style.zIndex = 1000; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment