Open ericjung opened 2 weeks ago
For now, the following script snippet can be used to bulk delete proxies.
(() => {
// ----- bulk delete
// user settings
// example: const list = [1, 2, 4];
const list = [];
// end of user settings
document.querySelectorAll('details.proxy').forEach((i, n) => list.includes(n + 1) && i.remove());
})();
For now, the following script snippet can be used to bulk delete proxies.
- Read FoxyProxy Help: Bulk Edit on how to use the script
- Set the values under the user settings
(() => { // ----- bulk delete // user settings // example: const list = [1, 2, 4]; const list = []; // end of user settings document.querySelectorAll('details.proxy').forEach((i, n) => list.includes(n + 1) && i.remove()); })();
To delete all (assumes no more than 10,000 proxies are defined):
(() => {
const list = [...Array(10001).keys()];
document.querySelectorAll('details.proxy').forEach((i, n) => list.includes(n + 1) && i.remove());
})()
To delete all proxies ...
document.querySelectorAll('details.proxy').forEach(i => i.remove());
PS. If Bulk Edit operations becomes popular, I can define some globals to make it easier. :thinking:
Suggestion from a user: ability to select and delete multiple proxy settings at once. Current solution is very tedious for many proxy settings. Older versions of FoxyProxy had this capability; see screenshot and look for "Delete Selection" button
The current UI has no way to select/unselect rows, so this may be challenging.