NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Fiverr - Remove All Buyer Requests with One Click // @description Adds a "Remove All Requests" button on each page of the Buyer Request Table. // @version 1.1 // @namespace io.github.ni554n // @match https://www.fiverr.com/users/*/requests // @run-at document-idle // @grant none // @updateURL https://openuserjs.org/meta/ni554n/Fiverr_-_Remove_All_Buyer_Requests_with_One_Click.meta.js // @supportURL https://github.com/ni554n/userscripts/issues // @license MIT // @author Nissan Ahmed // @homepageURL https://ni554n.github.io/ // @contributionURL https://paypal.me/ni554n // ==/UserScript== /* Migration Notice */ console.log(` █████ ████████ ████████ ███████ ███ ██ ████████ ██ ██████ ███ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██ ██ ████ ██ ███████ ██ ██ █████ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ██ ████ ██ ██ ██████ ██ ████ `) console.log( `Thanks for using "Fiverr - Remove All Buyer Requests with One Click" userscript downloaded from OpenUserJS. You are seeing this message because due to a change introduced in OpenUserJS, future updates to this script will no longer be vaiable. If you like to get updates in the future, please open your userscript manager program, and remove the "Fiverr - Remove All Buyer Requests with One Click" script. Then head over to this Github link and install this script again. https://github.com/ni554n/userscripts/blob/master/fiverr/remove-all-buyer-requests-with-one-click#installation It's very easy to do and will take only 3-4 clicks. Sorry for the inconvenience!` ); const buyerRequestTable = document.getElementsByClassName("db-new-main-table")[0]?.firstElementChild; if (!buyerRequestTable) throw new Error("Failed to get a reference of the buyer requests table."); const headerRow = buyerRequestTable.rows[0]; // Adjust the first column span for accommodating the remove all button. headerRow.firstElementChild.setAttribute("colspan", "3"); const removeAllButtonHtml = `<td colspan="1" style="text-transform: none;font-size: 12px;font-weight: 400;"><a href="#" class="${GM_info.script.namespace}-remove-button">Remove All Requests</a></td>`; // Insert the button in the first row. headerRow.firstElementChild.insertAdjacentHTML("afterend", removeAllButtonHtml); const removeAllButton = headerRow.cells[1].firstElementChild; removeAllButton.addEventListener("click", (event) => { event.preventDefault(); // Gather all the "Remove Request" button that shows up when hovering on each request. const removeButtons = buyerRequestTable.tBodies[0] .querySelectorAll("tr > td > div.hover-show > a.remove-request.js-remove-request"); [...removeButtons].forEach((listItem, i) => { // Automate clicking the remove button at random intervals to avoid being detected as bot. setTimeout(() => listItem.click(), i * randomInt(400, 600)); }); return false; }); const randomInt = (min, max) => Math.floor(Math.random() * (max - min)) + min;