Sciencemadness Discussion Board
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Reported posts in my outbox
Mr. Rogers
Hazard to Others
***




Posts: 153
Registered: 30-10-2017
Location: Ammonia Avenue
Member Is Offline

Mood: No Mood

[*] posted on 19-11-2018 at 10:19
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.
View user's profile View All Posts By User
Melgar
Anti-Spam Agent
*******




Posts: 2002
Registered: 23-2-2010
Location: NYC
Member Is Offline

Mood: Aromatic

[*] posted on 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




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!
View user's profile View All Posts By User
Dr.Bob
International Hazard
*****




Posts: 1914
Registered: 26-1-2011
Location: USA - NC
Member Is Offline

Mood: No Mood

[*] posted on 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.
View user's profile View All Posts By User
diddi
International Hazard
*****




Posts: 685
Registered: 23-9-2014
Location: Victoria, Australia
Member Is Offline

Mood: Fluorescent

[*] posted on 18-12-2018 at 12:26


and mods wonder why i complained about spam...


Untitled-1.jpg - 290kB




Beginning construction of periodic table display
View user's profile View All Posts By User
hacker
Harmless
*




Posts: 33
Registered: 18-12-2018
Member Is Offline


[*] posted on 18-12-2018 at 16:50


I can easily write you a script that will delete all reported post messages.
View user's profile View All Posts By User
hacker
Harmless
*




Posts: 33
Registered: 18-12-2018
Member Is Offline


[*] posted on 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);
View user's profile View All Posts By User
Dr.Bob
International Hazard
*****




Posts: 1914
Registered: 26-1-2011
Location: USA - NC
Member Is Offline

Mood: No Mood

[*] posted on 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?
View user's profile View All Posts By User
hacker
Harmless
*




Posts: 33
Registered: 18-12-2018
Member Is Offline


[*] posted on 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?
View user's profile View All Posts By User
Metacelsus
International Hazard
*****




Posts: 2162
Registered: 26-12-2012
Location: Cambridge, UK
Member Is Offline

Mood: Double, double, toil and trouble

[*] posted on 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).




As below, so above.
View user's profile View All Posts By User
hacker
Harmless
*




Posts: 33
Registered: 18-12-2018
Member Is Offline


[*] posted on 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.
View user's profile View All Posts By User
andy1988
Hazard to Self
**




Posts: 56
Registered: 11-2-2018
Location: NW Americus ([i]in re[/i] Amerigo Vespucci)
Member Is Offline

Mood: No Mood

[*] posted on 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!
View user's profile View All Posts By User
fusso
International Hazard
*****




Posts: 1184
Registered: 23-6-2017
Location: Toaru city, Toaru nation, Asia, Earth, ∥ universe
Member Is Offline

Mood: You, a degenerate: OWO Me, an intellectual: tungsten dioxide

[*] posted on 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?



Useful sites:
Balance Chemical Equation: http://www.webqc.org/balance.php
Molecular mass and elemental composition calculator: https://www.webqc.org/mmcalc.php
Solubility table: https://en.wikipedia.org/wiki/Solubility_table
It's not crime if noone finds out - Nyaruko
List of materials made by ScienceMadness users:
Remake: https://docs.google.com/spreadsheets/d/1nmJ8uq-h4IkXPxD5svnT...
Original: https://docs.google.com/document/u/1/d/1AoI2VA5L4bmFw2HwXS2O...
View user's profile View All Posts By User
andy1988
Hazard to Self
**




Posts: 56
Registered: 11-2-2018
Location: NW Americus ([i]in re[/i] Amerigo Vespucci)
Member Is Offline

Mood: No Mood

[*] posted on 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]
View user's profile View All Posts By User
hacker
Harmless
*




Posts: 33
Registered: 18-12-2018
Member Is Offline


[*] posted on 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.
View user's profile View All Posts By User

  Go To Top