Skip to content

Instantly share code, notes, and snippets.

View Seluj78's full-sized avatar
🐍
Working with Python

Jules Lasne Seluj78

🐍
Working with Python
View GitHub Profile
@Seluj78
Seluj78 / click_delete_all_admin_mail_requests_mailman2.js
Created September 28, 2020 06:38
This script will select all `delete` checkbox for mail requests in mailman2
function parse(str) {
var args = [].slice.call(arguments, 1),
i = 0;
return str.replace(/%s/g, () => args[i++]);
}
function getElementByXpath(path) {
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}
@Seluj78
Seluj78 / click_delete_all_admin_mail_sub_requests_mailman2.js
Created September 22, 2020 17:41
This script will select all `delete` checkbox for subsciption requests in mailman2
function parse(str) {
var args = [].slice.call(arguments, 1),
i = 0;
return str.replace(/%s/g, () => args[i++]);
}
function getElementByXpath(path) {
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}