Skip to content

Instantly share code, notes, and snippets.

@diraol
Last active April 29, 2018 01:26
Show Gist options
  • Save diraol/ec407450317a6c4bd2e1f7728430d19c to your computer and use it in GitHub Desktop.
Save diraol/ec407450317a6c4bd2e1f7728430d19c to your computer and use it in GitHub Desktop.
Mailman BanAll + Discard
// Load a recent jquery version
var jq = document.createElement('script');
jq.src = "https://code.jquery.com/jquery-3.1.1.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// Wait until jquery is loaded before running the code below
window.setTimeout(()=>{
jQuery.noConflict();
// Check everyone for BAN
jQuery("input[name|='senderbanp']").attr('checked', true)
// Check everyone for filtering action
jQuery("input[name|='senderfilterp']").attr('checked', true)
// Check everyone to filter Discard
jQuery("input[name|='senderaction'][value='3']").attr('checked', true)
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment