Last active
July 11, 2021 23:19
-
-
Save gonza7aav/6b3c2f922aa534694b7e367227d6b087 to your computer and use it in GitHub Desktop.
This will remove the giveaways already entered in Steam Gifts
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
// ==UserScript== | |
// @name Steam Gifts Enhancer | |
// @description This will remove the giveaways already entered in Steam Gifts | |
// @version 1.0.2 | |
// @author gonza7aav | |
// @match https://www.steamgifts.com/ | |
// @match https://www.steamgifts.com/giveaways/ | |
// @match https://www.steamgifts.com/giveaways/search?* | |
// @grant none | |
// @run-at context-menu | |
// @iconURL https://cdn.steamgifts.com/img/favicon.ico | |
// ==/UserScript== | |
(function () { | |
'use strict'; | |
// get all the giveaways from the page | |
const allGiveaways = [ | |
...document.querySelectorAll('.giveaway__row-outer-wrap'), | |
]; | |
// filter the entered | |
const enteredGiveaways = allGiveaways.filter((x) => | |
x.children[0].className.includes('is-faded') | |
); | |
// remove them | |
enteredGiveaways.map((x) => x.remove()); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment