Created
June 16, 2023 13:08
-
-
Save trumad/b86f786bfcae0dd5cb873a68fc064b4b to your computer and use it in GitHub Desktop.
Deletes all games at play.date/sideload
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Delete all playdate games | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description deletes all playdate games at play.date/sideload | |
// @author trumad | |
// @match https://play.date/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=play.date | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
if (document.URL.includes('sideload')){ | |
if (!document.querySelector('.sideloadGameCardImage')){ | |
alert("don't forget to disable this script before adding games again!") | |
} | |
document.querySelector('.sideloadGameCardImage').click(); | |
} | |
if (document.URL.includes('user')){ | |
document.querySelector('a[href*=delete]').click() | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment