Sciencemadness Discussion Board

Reported posts in my outbox

Mr. Rogers - 19-11-2018 at 10:19

I have something like 18 reported posts in my Outbox to various members.

I'm not sure what this is about.

It's this post: https://www.sciencemadness.org/whisper/viewthread.php?tid=10...

I didn't report anything, certainly not my post.

Melgar - 19-11-2018 at 13:29

If you report spam, then what happens is that the system sends messages on your behalf to every moderator, alerting them to the spam post.

Yeah, it's not a great system, which is why I've been pushing to get everyone on board with transitioning to phpBB. Check out this link if you're interested:

http://230.63.185.35.bc.googleusercontent.com/talk/index.php

Dr.Bob - 18-12-2018 at 07:28

I just saw the same thing, but the challenge is that I cannot seem to delete them in bulk, if I select a number of outgoing emails and then try to delete them, it just sits until the connection is lost. But if I go into each of the 18 outgoing emails and then pick delete, it works. But that makes it very hard to clean up the email folder. Is there a way to fix this? Or some way to delete email fro the selected list? I have tried a few ways now and none seem to work.

diddi - 18-12-2018 at 12:26

and mods wonder why i complained about spam...


Untitled-1.jpg - 290kB

hacker - 18-12-2018 at 16:50

I can easily write you a script that will delete all reported post messages.

hacker - 18-12-2018 at 17:23

Just set this to run on your U2U outbox page with Greasemonkey, Tampermonkey, or the equivalent plugin:

Code:
var jq = document.createElement('script'); jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(jq); setTimeout(function() { var reported_post_count = 0; $("a").each(function(i){ var a = $(this); var href = a.attr("href"); var text = a.text().substr(0, 13); if(href.substr(0, 33) == "u2u.php?action=view&folder=Outbox" && text == "Reported post") { var checkbox = a.parent().parent().children().first().children().first(); console.log(checkbox); checkbox.prop("checked", true); reported_post_count++; } }); if(reported_post_count > 0) { var modaction = $("input:radio[name=modaction]"); modaction.filter("[value=delete]").prop("checked", true); $("input:submit[name=u2umodsubmit]").click(); } } ,1000);

Dr.Bob - 18-12-2018 at 19:33

Why does it not work to just select the messages I don't want and just hit "delete" at the bottom. I have tried that and it just crashes. Is that a known bug in the forum?

hacker - 18-12-2018 at 20:23

Good question. I would require administrative access to the web server to diagnose the issue fully. Deleting in batches works fine for me over https. Are you logged in via http or https?

Metacelsus - 18-12-2018 at 23:40

Giving a "hacker" admin access (especially a "hacker" who just joined this forum) sounds like a questionable idea.

Anyway, I believe the vast majority of people here use https (and if they don't, they should).

hacker - 19-12-2018 at 01:38

Quote: Originally posted by Metacelsus  
Giving a "hacker" admin access (especially a "hacker" who just joined this forum) sounds like a questionable idea.

Anyway, I believe the vast majority of people here use https (and if they don't, they should).


You might be surprised. I have had conversations that went like this:

Quote:

Hi. I'm a hacker :cool:

Oh, wow! Here are all my passwords!


I do not understand why that happens. Perhaps people think they are following the path of least resistance. I am not asking for administrative access, but if people thought that granting me administrative access would serve the forum, I would accept it.

There is a bit of a stigma against hackers. But it depends on what you mean by "hacker." Before computers, a hacker was a person who did bad carpentry. In the early days of the Internet, a hacker was a person who broke into computers. Nowadays, it means computer enthusiast.

I am indeed a hacker of extraordinary talent. But I would never use my powers for evil.

It is a good idea to use https when logged into the forum. Otherwise, your password and/or session cookies will be transported across the Internet unencrypted and could be stolen. I do not know if https will solve the problem with deleting multiple messages.

andy1988 - 19-12-2018 at 16:23

Quote: Originally posted by hacker  
Just set this to run on your U2U outbox page with Greasemonkey, Tampermonkey, or the equivalent plugin:


Ah clever! I will improve this technique, you don't even need a plugin, you just need a bookmark!

See photo:
scimadness_u2u_deletespamreports.jpg - 57kB

Place the bookmark in the bookmark bar. For the url of the bookmark, use the following to encapsulate hacker's javascript (place the script within the {}).
Code:
javascript :(function() {})()


In full this will be:
Code:
javascript :(function() { var jq = document.createElement('script'); jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(jq); setTimeout(function() { var reported_post_count = 0; $("a").each(function(i){ var a = $(this); var href = a.attr("href"); var text = a.text().substr(0, 13); if(href.substr(0, 33) == "u2u.php?action=view&folder=Outbox" && text == "Reported post") { var checkbox = a.parent().parent().children().first().children().first(); console.log(checkbox); checkbox.prop("checked", true); reported_post_count++; } }); if(reported_post_count > 0) { var modaction = $("input:radio[name=modaction]"); modaction.filter("[value=delete]").prop("checked", true); $("input:submit[name=u2umodsubmit]").click(); } } ,1000); })()


Just copy paste it into the edit field, it will paste as one line.

The bookmark bar must be visible on the U2U screen. Open the U2U screen in a new tab. Then click the bookmark to run the script on the U2U screen!

fusso - 19-12-2018 at 18:12

Quote: Originally posted by andy1988  
In full this will be:
Code:
javascript :(function() { var jq = document.createElement('script'); jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; document.getElementsByTagName('head')[0].appendChild(jq); setTimeout(function() { var reported_post_count = 0; $("a").each(function(i){ var a = $(this); var href = a.attr("href"); var text = a.text().substr(0, 13); if(href.substr(0, 33) == "u2u.php?action=view&folder=Outbox" && text == "Reported post") { var checkbox = a.parent().parent().children().first().children().first(); console.log(checkbox); checkbox.prop("checked", true); reported_post_count++; } }); if(reported_post_count > 0) { var modaction = $("input:radio[name=modaction]"); modaction.filter("[value=delete]").prop("checked", true); $("input:submit[name=u2umodsubmit]").click(); } } ,1000); })()
I can't add the bkmk in firefox after pasting the code. Why?

andy1988 - 19-12-2018 at 19:33

Quote: Originally posted by fusso  
I can't add the bkmk in firefox after pasting the code. Why?

Apparently the thing is called a "bookmarklet", putting javascript in a bookmark.

Looks like it is disabled via bug in firefox. Two workarounds:
(1) Web Console
(2) Try to change bookmarklet

----------------------

(1) I think for firefox you can run javascript in the web console.

(2) Try putting this line at the top of the script? I don't know where exactly, try both first line and within the {}
"Content-Security-Policy-Override: script-src sciencemadness.org, form-action sciencemadness.org";

Anyways, beats a plugin. I believe I was keylogged once due to a malicious plugin... I've since removed all plugins. I guess you could still install one of those plugins for firefox if it still won't work, and disable the plugin when not in use.

[Edited on 20-12-2018 by andy1988]

hacker - 19-12-2018 at 21:55

With Greasemonkey or Tampermonkey, you can use the script to automatically delete all reported message U2Us. With a bookmarklet, you have to click on the bookmark on each page of U2Us :)

Bookmarklets are pretty cool, though.