Skip to content

Instantly share code, notes, and snippets.

@harsxv
Last active April 17, 2023 06:34
Show Gist options
  • Save harsxv/7cd9d3a4d10da6324800cfbb96303269 to your computer and use it in GitHub Desktop.
Save harsxv/7cd9d3a4d10da6324800cfbb96303269 to your computer and use it in GitHub Desktop.
WHMCS: Mark Resolved all Queued Modules

WHMCS does not provide a button to mark all modules recently queued as resolved yet. They just provide the Retry All button.

However, if you wish to automate this process, you may use your browser's console to run the following JavaScript:

const buttons = document.querySelectorAll('button.resolve[data-entry-id]');

for (let i = 0; i < buttons.length; i++) {
  buttons[i].click();
}

This script will find all buttons with the resolve class and a data-entry-id attribute, and then loop through them to trigger the click event on each one.

To use this script, simply copy and paste it into your browser's console and press enter. The script will find all buttons with the resolve class and a data-entry-id attribute and click each one. This will include all buttons that exist on the page, regardless of their data-entry-id attribute value.

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