Why use a script when you can use "steamgifts.com/giveaways/search?level_min=2&level_max=3" for example?
Comment has been collapsed.
I can't help you with the script, but I wanted to let you know that witches are not female equivalents of wizards. Wizards and witches practice different kinds of magic and for different reasons. I think you can use the word "wizard" for females as well, or you could use "wizardess".
Comment has been collapsed.
You can get the level with this:
parseInt(document.querySelector('a.nav__button[href*="/account"]').children[1].title).toString()
And you can hide giveaways above your level in the settings.
But if you want to do a script like this you could also add something like this to it:
level = parseInt(document.querySelector('a.nav__button[href*="/account"]').children[1].title).toString();
element = document.links
for (var i=0; i<element.length; i++){
if(!!element[i].href.match(/\/giveaways\/.+\?/)){
element[i].href+="&level_max="+level;
}
}
So the hrefs from an oppened page will already have &level_max (just the ones that are /giveaways/ and have a ? on it, like https://www.steamgifts.com/giveaways/search?page=3
).
Comment has been collapsed.
286 Comments - Last post 53 minutes ago by hbouma
173 Comments - Last post 1 hour ago by hbouma
642 Comments - Last post 1 hour ago by Oppenh4imer
58 Comments - Last post 1 hour ago by RobbyRatpoison
864 Comments - Last post 2 hours ago by Ashtart
255 Comments - Last post 4 hours ago by XfinityX
30 Comments - Last post 11 hours ago by TinTG
23 Comments - Last post 44 seconds ago by Oppenh4imer
505 Comments - Last post 1 minute ago by Arouet
52 Comments - Last post 7 minutes ago by Greativity
433 Comments - Last post 8 minutes ago by OneManArmyStar
8,211 Comments - Last post 8 minutes ago by ClapperMonkey
14 Comments - Last post 20 minutes ago by GeekDoesStuff
79 Comments - Last post 1 hour ago by axolotlprime
I'm trying to mess around with Tampermonkey, and started by creating a script that auto inputs "&level_max=" into the giveaway filter to hide the higher-level GAs. My script makes pages take longer to load and doesn't auto-detect level. Help? :)
Comment has been collapsed.