Discuss Scratch
- Discussion Forums
- » Suggestions
- » If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page. Please DO NOT publicly report other us
- i_eat_coffee
-
1000+ posts
If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page. Please DO NOT publicly report other us
<script> window.addEventListener("load", function() { let username = document.querySelector('h2').innerText.trim(); if (username.endsWith('*')) { let reportWarning = document.createElement('p'); reportWarning.classList = 'alert alert-danger'; reportWarning.innerHTML = 'If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page.<br/><b>Please DO NOT publicly report other users, as this is not allowed, even if you are trying to do a good thing.</b>'; reportWarning.style = 'margin-top: 5px; margin-bottom: -20px;'; document.querySelector('#comment-form').append(reportWarning); } }); </script>
This simply adds a message next to the comment box if a user is trying to comment on a Scratch Team member's profile to prevent public reports, because I see this is a huge issue and no one is really taking action.

It looks like this.
It is a very simple fix, simply just to add the code anywhere on the users page as it initiates when the page is fully loaded, and just for safety, here's a heavily explained version:
<script> // this will add an eventlistener to the page, meaning that it will run the code only when the event happens. // the event here is "load", meaning that the code will only run once, the moment that the page is fully loaded window.addEventListener("load", function() { // this defines the variable "username", with the username of the user (asterisk included) // it selects the "h2" tag (the header tag, in which the username is located) takes the text, and then trims it (it removes any spaces before and after it) let username = document.querySelector('h2').innerText.trim(); // it checks if the username ends with an asterisk, meaning that this user is a scratch team member if (username.endsWith('*')) { // this code only runs if the user is a scratch team member // it creates the actual message element let reportWarning = document.createElement('p'); // it adds the "alert" styling, as seen in the picture above reportWarning.classList = 'alert alert-danger'; // it adds the actual text. <br/> means a new line (enter), and <b> means bold text. reportWarning.innerHTML = 'If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page.<br/><b>Please DO NOT publicly report other users, as this is not allowed, even if you are trying to do a good thing.</b>'; // it adds some extra styling, specifically removing some space after it // otherwise there would be a lot of space between the warning and the first comment reportWarning.style = 'margin-top: 5px; margin-bottom: -20px;'; // this code basically selects the comment box and adds the message element after it document.querySelector('#comment-form').append(reportWarning); } // if the user is NOT a scratch team member, nothing happens. // end of code }); </script>
- Elijah999999
-
1000+ posts
If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page. Please DO NOT publicly report other us
Scratch Team members already say this in their About Me, yet users do it anyway. This might stop some, but it wouldn't completely solve the problem.
- Za-Chary
-
1000+ posts
If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page. Please DO NOT publicly report other us
- Catscratcher07
-
1000+ posts
If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page. Please DO NOT publicly report other us
The warning should not be red, which is the same color as alerts an
, it should be a color that isn't used to demand a full stop, but a warning. Sorry, this post appears to include unsuitable language and will not be posted.
- i_eat_coffee
-
1000+ posts
If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page. Please DO NOT publicly report other us
https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/491812/they're not really the same suggestion, this user came up with adding a pop-up, while my suggestion is literally adding a message next to the comment box for everyone. Duplicate:
- Paddle2See
-
1000+ posts
If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page. Please DO NOT publicly report other us
https://scratch-mit-edu.ezproxyberklee.flo.org/discuss/topic/491812/Thanks for the link! It does look like this is a duplicate topic so I'll close it to keep the conversation all in one place. Duplicate:
Please use the existing topic in the link above.
- Discussion Forums
- » Suggestions
-
» If you need to report rule-breaking content, use the report button or the Contact Us link at the bottom of the page. Please DO NOT publicly report other us