Skip to content

Instantly share code, notes, and snippets.

@pvdz
Created August 20, 2016 07:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pvdz/26473dd35c9ebd04d8a089fc0cd319d3 to your computer and use it in GitHub Desktop.
Save pvdz/26473dd35c9ebd04d8a089fc0cd319d3 to your computer and use it in GitHub Desktop.
mass steam confirmation clicking in gmail (through console)
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