forked from nandee95/Extended_Steamgifts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExtended_Steamgifts_Enter_All.user.js
More file actions
25 lines (24 loc) · 1.25 KB
/
Copy pathExtended_Steamgifts_Enter_All.user.js
File metadata and controls
25 lines (24 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ==UserScript==
// @name Extended Steamgifts - Enter all button
// @description New features for Steamgifts.com
// @author Nandee
// @namespace esg
// @include *steamgifts.com*
// @version 1.0
// @downloadURL https://github.com/nandee95/Extended_Steamgifts/raw/master/Extended_Steamgifts_Enter_All.user.js
// @updateURL https://github.com/nandee95/Extended_Steamgifts/raw/master/Extended_Steamgifts_Enter_All.user.js
// @supportURL http://steamcommunity.com/groups/extendedsg/discussions/0/
// @icon https://raw.githubusercontent.com/nandee95/Extended_Steamgifts/master/img/logo.png
// @homepage https://github.com/nandee95/Extended_Steamgifts
// @grant none
// @license MIT
// ==/UserScript==
if(window.location=="https://www.steamgifts.com/giveaways/search?type=wishlist")
{
$(".page__heading__breadcrumbs:first").after('<div class="sidebar__entry-insert enterall" style="cursor:pointer"><i style="margin-left:5px;display:inline" class="fa fa-plus-circle"> Enter all</div>');
$(document).on('click', '.enterall', function() {
$(".sidebar__entry-insert:not(.is-hidden):not(.enterall)").each(function () {
if($(this).closest('.pinned-giveaways__inner-wrap').length===0) $(this).trigger('click');
});
});
}