PM Remover

1. Go to www.wikidot.com.

2. Click F12 and open the console.

3. Paste the following code into the console.

(async(f,s,u,q,i,p,m)=>(u=v=>encodeURI(String(v)),q=(d,s,_)=>d[`querySelector${_?'All':''}`](s),i=(d,s)=>q(d,s).innerText.trim(),m=[...(await((async(h,c,t,a)=>((await(t=(async n=>(a=[],x=[...q((await h(n)),'tr.message',1)],(!x.length||(a=a.length?a:x.map(v=>v.innerText)).filter(v=>~c.map(v=>v.innerText).indexOf(v)).length)||(c=c.concat(x),await t(n+1)))))(1)),c))(async n=>(new DOMParser).parseFromString((await(p=async o=>(async f=>(await(await fetch('/ajax-module-connector.php',{method:'POST',body:(f.append('wikidot_token7',(document.cookie.split('; ').find(v=>v.match(/^wikidot_token7=/))||'').split('=')[1]),Object.keys(o).forEach(k=>(Array.isArray(o[k])?o[k].forEach(v=>f.append(`${k}[]`,u(v))):f.append(k,u(o[k])))),f)})).json()))(new FormData))({page:n,moduleName:'dashboard/messages/DMInboxModule'})).body,'text/html'),[])))].filter(v=>i(v,'td>span.from')==f&&i(v,'td>span.subject')==s).map(v=>q(v,'td>input[type="checkbox"]').value)).length?console.log('Removed PMs:',m,await p({action:'DashboardMessageAction',event:'removeMessages',messages:m,moduleName:'Empty'})):console.log('N/A'))(
    'Wikidot',
    'You received a membership application'
);

4. Click Enter, and tons of "You received a membership application" PMs will be removed on your PM box.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License