Skip to content

Commit 187d46a

Browse files
authored
Merge pull request #2 from refatK/#1-greasemonkey-bug
#1-greasemonkey-bug
2 parents 31365d4 + ac7c535 commit 187d46a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

ItchioSimpleRemoveFromCollection.user.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// ==UserScript==
22
// @name Itch.io Simple Remove from Collection
33
// @namespace https://github.com/refatK
4-
// @version 0.9
4+
// @version 1.0
5+
// @homepageURL https://github.com/refatK/Itch.io-Simple-Remove-from-Collection
56
// @description Easily remove games from your itch.io collections from within the "Add to Collection" modal of a game.
67
// @author RefatK
78
// @updateURL https://github.com/refatK/Itch.io-Simple-Remove-from-Collection/raw/main/ItchioSimpleRemoveFromCollection.user.js
@@ -10,7 +11,7 @@
1011
// @require https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js
1112
// @require https://static.itch.io/api.js
1213
// @grant unsafeWindow
13-
// @grant GM_xmlhttpRequest
14+
// @grant GM.xmlHttpRequest
1415
// @connect itch.io
1516
// @run-at document-end
1617
// ==/UserScript==
@@ -119,7 +120,7 @@ $(document).ready(function () {
119120
}
120121

121122
function PostRemoveGameFromCollection(collectionId, gameId, csrf_token, elToHideOnSuccess) {
122-
GM_xmlhttpRequest({
123+
GM.xmlHttpRequest({
123124
method: "POST",
124125
headers: { "Content-Type": "application/x-www-form-urlencoded" },
125126
url: `https://itch.io/collection/${collectionId}/remove/${gameId}`,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Easily remove games from your itch.io collections from within the "Add to Collec
55

66
## INSTALLATION
77

8-
1. Install [Tampermonkey](https://www.tampermonkey.net/) browser extension.
8+
1. Install [Tampermonkey](https://www.tampermonkey.net/)/[Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) browser extension.
99
2. Click [HERE](https://github.com/refatK/Itch.io-Simple-Remove-from-Collection/raw/main/ItchioSimpleRemoveFromCollection.user.js) and you should be prompted to install the script.
1010

1111
## PURPOSE

0 commit comments

Comments
 (0)