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.
16 Comments - Last post 10 minutes ago by Tenn
9 Comments - Last post 12 minutes ago by Onii01
238 Comments - Last post 1 hour ago by BHTrellis188
386 Comments - Last post 2 hours ago by Bum8ara5h
18 Comments - Last post 3 hours ago by RobbyRatpoison
214 Comments - Last post 3 hours ago by Bentosan
1,736 Comments - Last post 7 hours ago by MBaer
155 Comments - Last post 3 minutes ago by kctan
1,242 Comments - Last post 23 minutes ago by aquatorrent
157 Comments - Last post 24 minutes ago by ArchelonGaming
122 Comments - Last post 1 hour ago by VahidSlayerOfAll
324 Comments - Last post 1 hour ago by 00david00
5 Comments - Last post 1 hour ago by Camryn
165 Comments - Last post 3 hours ago by DudeNukem
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.