Mr. Rogers
Hazard to Others
Posts: 184
Registered: 30-10-2017
Location: Ammonia Avenue
Member Is Offline
Mood: No Mood
|
|
Reported posts in my outbox
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
Anti-Spam Agent
Posts: 2004
Registered: 23-2-2010
Location: Connecticut
Member Is Offline
Mood: Estrified
|
|
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
The first step in the process of learning something is admitting that you don't know it already.
I'm givin' the spam shields max power at full warp, but they just dinna have the power! We're gonna have to evacuate to new forum software!
|
|
Dr.Bob
International Hazard
Posts: 2732
Registered: 26-1-2011
Location: USA - NC
Member Is Offline
Mood: No Mood
|
|
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
National Hazard
Posts: 723
Registered: 23-9-2014
Location: Victoria, Australia
Member Is Offline
Mood: Fluorescent
|
|
and mods wonder why i complained about spam...
Beginning construction of periodic table display
|
|
hacker
Harmless
Posts: 34
Registered: 18-12-2018
Member Is Offline
|
|
I can easily write you a script that will delete all reported post messages.
|
|
hacker
Harmless
Posts: 34
Registered: 18-12-2018
Member Is Offline
|
|
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
International Hazard
Posts: 2732
Registered: 26-1-2011
Location: USA - NC
Member Is Offline
Mood: No Mood
|
|
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
Harmless
Posts: 34
Registered: 18-12-2018
Member Is Offline
|
|
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
International Hazard
Posts: 2539
Registered: 26-12-2012
Location: Boston, MA
Member Is Offline
Mood: Double, double, toil and trouble
|
|
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
Harmless
Posts: 34
Registered: 18-12-2018
Member Is Offline
|
|
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
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
Hazard to Others
Posts: 135
Registered: 11-2-2018
Location: NW Americus ([i]in re[/i] Amerigo Vespucci)
Member Is Offline
Mood: No Mood
|
|
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:
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
International Hazard
Posts: 1922
Registered: 23-6-2017
Location: 4 ∥ universes ahead of you
Member Is Offline
|
|
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
Hazard to Others
Posts: 135
Registered: 11-2-2018
Location: NW Americus ([i]in re[/i] Amerigo Vespucci)
Member Is Offline
Mood: No Mood
|
|
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
Harmless
Posts: 34
Registered: 18-12-2018
Member Is Offline
|
|
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.
|
|