Hack Forums
[Userscript] Delete "X" amount of old PMs - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Computing (https://hackforums.net/forumdisplay.php?fid=88)
+---- Forum: Computing Lounge (https://hackforums.net/forumdisplay.php?fid=8)
+---- Thread: [Userscript] Delete "X" amount of old PMs (/showthread.php?tid=5393142)



Delete "X" amount of old PMs - Raymond Reddington - Sep 1, 2016

This is so annoying when you have your PM space 99% and you want to delete the old non important PMs, but you have to do it manually since there's no feature that deletes "X" amount of old PMs.

The constant refreshing makes it even worse.

Can somebody create a script for it where I enter the amount of messages from the end and it deletes it on its own? I am sure this would be helpful to many.

Thanks!


* - Hash G. - Sep 1, 2016

https://raw.githubusercontent.com/hashlabxyz/Userscripts/master/HackForums/Delete_multiple_PMs.user.js

It'll go through each page and delete. Be aware I'm requesting a number of pages and not of PMs. I would suggest saving the PM's before using it.


* - Raymond Reddington - Sep 1, 2016

(Sep 1, 2016 03:40 PM)Hash G. Wrote:  https://raw.githubusercontent.com/hashlabxyz/Userscripts/master/HackForums/Delete_multiple_PMs.user.js

It'll go through each page and delete. Be aware I'm requesting a number of pages and not of PMs. I would suggest saving the PM's before using it.

Like PMs from the beginning or the end? Should I enter page index individually in this format?

Code
247,246,244

Or,

Number of pages = 5.

It deletes the PMs from 1st or the last page?


I thank you very much for your efforts.


* - Hash G. - Sep 2, 2016

(Sep 1, 2016 07:30 PM)Raymond Reddington Wrote:  Like PMs from the beginning or the end? Should I enter page index individually in this format?

Code
247,246,244

Or,

Number of pages = 5.

It deletes the PMs from 1st or the last page?


I thank you very much for your efforts.

If you enter let's say 5 pages and you have 245 total pages, it'll go to the 245th page, delete all PM's, then go to the 244th, delete all etc.
No one wants to delete their newest PM's 😝


* - Mαxim - Sep 2, 2016

Good job Hash. I am sure many will have use of this script.


* - Raymond Reddington - Sep 13, 2016

Looks like its not working for me Hash. Can you please look into it once?


* - Streetlight. - Oct 6, 2016

(Sep 13, 2016 05:31 AM)Raymond Reddington Wrote:  Looks like its not working for me Hash. Can you please look into it once?

You need to change "http://" to https:// in the script.


* - Captain Steve Rogers - Oct 8, 2016

(Oct 6, 2016 11:46 AM)Streetlight. Wrote:  You need to change "http://" to https:// in the script.

He posted that before HF went SSL.