export_blocked_noTS.js
· 345 B · JavaScript
Raw
(async function() {
const items = [];
for(const item of document.getElementsByClassName("selectable")) {
items.push(item.attributes['data-steamid'].textContent)
}
var a = document.createElement("a");
a.href = "data:application/json," + JSON.stringify(items);
a.download = "banned_users.json";
a.click();
})();
| 1 | (async function() { |
| 2 | const items = []; |
| 3 | for(const item of document.getElementsByClassName("selectable")) { |
| 4 | items.push(item.attributes['data-steamid'].textContent) |
| 5 | } |
| 6 | var a = document.createElement("a"); |
| 7 | a.href = "data:application/json," + JSON.stringify(items); |
| 8 | a.download = "banned_users.json"; |
| 9 | a.click(); |
| 10 | })(); |