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.
23 Comments - Last post 21 minutes ago by Inkyyy
31 Comments - Last post 27 minutes ago by doomofdoom
1,177 Comments - Last post 28 minutes ago by J1mmyG1ft
2,317 Comments - Last post 36 minutes ago by MonoceroS
330 Comments - Last post 1 hour ago by aquatorrent
4 Comments - Last post 1 hour ago by hbarkas
207 Comments - Last post 2 hours ago by anditsung
13 Comments - Last post 5 minutes ago by Hawkingmeister
39 Comments - Last post 10 minutes ago by PapaSmok
243 Comments - Last post 14 minutes ago by quijote3000
25 Comments - Last post 14 minutes ago by AceBerg42
161 Comments - Last post 26 minutes ago by BerkutS
302 Comments - Last post 38 minutes ago by aquatorrent
133 Comments - Last post 45 minutes ago by TinaG
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.