Created
October 21, 2019 16:38
-
-
Save dstollie/740780d5d5137855c93cc75f545a1b36 to your computer and use it in GitHub Desktop.
Favro Bulk Restore User Script
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 Favro Bulk Restore | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://favro.com/* | |
// @grant unsafeWindow | |
// ==/UserScript== | |
unsafeWindow.restoreLastFavroTicket = (stopAtCount, counter = 0) => { | |
if (counter >= stopAtCount) { | |
return; | |
} | |
document.querySelector('.js-appmenu').click(); | |
setTimeout(() => { | |
document.querySelector('.js-org-recyclebin').click(); | |
setTimeout(() => { | |
document.querySelector('.js-restore').click(); | |
setTimeout(() => { | |
unsafeWindow.restoreLastFavroTicket(stopAtCount, counter + 1); | |
}, 1000); | |
}, 1000); | |
}, 1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A simple script to restore all the accidently deleted items of a board or a lane with just 1 function :). Call it like
where x is the amount of items you want to restore.