Skip to content

Instantly share code, notes, and snippets.

@dstollie
Created October 21, 2019 16:38
Show Gist options
  • Save dstollie/740780d5d5137855c93cc75f545a1b36 to your computer and use it in GitHub Desktop.
Save dstollie/740780d5d5137855c93cc75f545a1b36 to your computer and use it in GitHub Desktop.
Favro Bulk Restore User Script
// ==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);
}
@dstollie
Copy link
Author

A simple script to restore all the accidently deleted items of a board or a lane with just 1 function :). Call it like

unsafeWindow.restoreLastFavroTicket(X)

where x is the amount of items you want to restore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment