Skip to content

Instantly share code, notes, and snippets.

@trumad
Created June 16, 2023 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trumad/b86f786bfcae0dd5cb873a68fc064b4b to your computer and use it in GitHub Desktop.
Save trumad/b86f786bfcae0dd5cb873a68fc064b4b to your computer and use it in GitHub Desktop.
Deletes all games at play.date/sideload
// ==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