Skip to content

Commit 9ca14ac

Browse files
authored
Merge pull request #4 from refatK/#3-download-page-bug
#3 Fix download page bug
2 parents 187d46a + d7d0fde commit 9ca14ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ItchioSimpleRemoveFromCollection.user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
// ==UserScript==
22
// @name Itch.io Simple Remove from Collection
33
// @namespace https://github.com/refatK
4-
// @version 1.0
4+
// @version 1.0.1
55
// @homepageURL https://github.com/refatK/Itch.io-Simple-Remove-from-Collection
66
// @description Easily remove games from your itch.io collections from within the "Add to Collection" modal of a game.
77
// @author RefatK
8+
// @license MIT
89
// @updateURL https://github.com/refatK/Itch.io-Simple-Remove-from-Collection/raw/main/ItchioSimpleRemoveFromCollection.user.js
910
// @match *://itch.io/*
1011
// @match *://*.itch.io/*
@@ -16,6 +17,7 @@
1617
// @run-at document-end
1718
// ==/UserScript==
1819

20+
/* jshint esversion: 8 */
1921
/* global $, Itch */
2022
$(document).ready(function () {
2123
const GAME_URL_REGEX = "/https:\/\/.+\.itch\.io/g"
@@ -45,7 +47,7 @@ $(document).ready(function () {
4547
// --- EVENTS ---
4648

4749
// On click "Add To Collection" button for a game
48-
$('#user_tools, div[class*="game_grid_widget"]').on('click', 'a.add_to_collection_btn', function () {
50+
$('div, #user_tools').on('click', 'a.add_to_collection_btn', function () {
4951
_gameId = GetGameIdFromGameCell(this)
5052
});
5153

0 commit comments

Comments
 (0)