Discuss Scratch

-Radical-
Scratcher
500+ posts

Tampermonkey script for viewing deleted comments.....

I know it's possible, I just don't know how. Is there a way to do find-replace on the HTML on the page one is viewing?
DrKat123
Scratcher
1000+ posts

Tampermonkey script for viewing deleted comments.....

Oh gosh plz no.
Dylan5797
Scratcher
1000+ posts

Tampermonkey script for viewing deleted comments.....

-Radical- wrote:

I know it's possible, I just don't know how. Is there a way to do find-replace on the HTML on the page one is viewing?
Deleted comments aren't sent to the client.
Smitop
Scratcher
100+ posts

Tampermonkey script for viewing deleted comments.....

Dylan5797 wrote:

-Radical- wrote:

I know it's possible, I just don't know how. Is there a way to do find-replace on the HTML on the page one is viewing?
Deleted comments aren't sent to the client.
They are, but they are hidden, and the content is replaced with "[removed]".
How to see:
  1. Go to https://scratch.mit.edu/users/Paddle2See/#comments-19803528
  2. You can tell a deleted comment was there, because scratch doesn't hide the lines between deleted comments
  3. Inspect element, and look at the next comment
  4. Look at the next “reply”
  5. Removed the “removed” class, after looking at the element
  6. See the deleted comment
Smitop
Scratcher
100+ posts

Tampermonkey script for viewing deleted comments.....

Try this:
// ==UserScript==
// @name         show removed comments
// @version      1
// @description  Shows where removed comments are
// @author       Smitop
// @match        https://scratch.mit.edu/*
// @grant        none
// ==/UserScript==
setInterval(function () {
    $(".removed").each(function () {
        $(this).removeClass("removed");
    });
}, 1000);
It shows [removed] where the comment used to be.
Go to https://scratch.mit.edu/users/Paddle2See/#comments-19803528 for a demo.
Edit: works with projects

Last edited by Smitop (Jan. 14, 2016 12:32:30)

DrKat123
Scratcher
1000+ posts

Tampermonkey script for viewing deleted comments.....

Smitop wrote:

Try this:
// ==UserScript==
// @name         show removed comments
// @version      1
// @description  Shows where removed comments are
// @author       Smitop
// @match        https://scratch.mit.edu/users/*
// @grant        none
// ==/UserScript==
setInterval(function () {
    $(".removed").each(function () {
        $(this).removeClass("removed");
    });
}, 1000);
It shows [removed] where the comment used to be.
Go to https://scratch.mit.edu/users/Paddle2See/#comments-19803528 for a demo.
Cool!
Firedrake969
Scratcher
1000+ posts

Tampermonkey script for viewing deleted comments.....

Smitop wrote:

Dylan5797 wrote:

-Radical- wrote:

I know it's possible, I just don't know how. Is there a way to do find-replace on the HTML on the page one is viewing?
Deleted comments aren't sent to the client.
They are, but they are hidden, and the content is replaced with "[removed]".
I think he meant that the original text isn't sent to the client.
-Radical-
Scratcher
500+ posts

Tampermonkey script for viewing deleted comments.....

Yes, I was aware of the inspect-element trick, and that it was replaced with [deleted] I just wanted a tampermonkey. I'll try it out!

Last edited by -Radical- (Jan. 13, 2016 01:01:13)

Dylan5797
Scratcher
1000+ posts

Tampermonkey script for viewing deleted comments.....

Firedrake969 wrote:

Smitop wrote:

Dylan5797 wrote:

-Radical- wrote:

I know it's possible, I just don't know how. Is there a way to do find-replace on the HTML on the page one is viewing?
Deleted comments aren't sent to the client.
They are, but they are hidden, and the content is replaced with "[removed]".
I think he meant that the original text isn't sent to the client.
Yes thats what i mean
-Radical-
Scratcher
500+ posts

Tampermonkey script for viewing deleted comments.....

How this originally came up was I already knew extra lines meant deleted comments, and one day (by which I mean last night) I decided to inspect-element it. I discovered that it was a whole comment thingamajigger right there and they just had class=“comment removed” at top. So I changed it, and sure enough, it popped up.
MegaApuTurkUltra
Scratcher
1000+ posts

Tampermonkey script for viewing deleted comments.....

Not possible. The contents are literally "[removed]"

Last edited by MegaApuTurkUltra (Jan. 13, 2016 06:12:32)

Jonathan50
Scratcher
1000+ posts

Tampermonkey script for viewing deleted comments.....

MegaApuTurkUltra wrote:

Not possible. The contents are literally "[removed]"
But you can see the author, which is kind of cool.
-Radical-
Scratcher
500+ posts

Tampermonkey script for viewing deleted comments.....

Jonathan50 wrote:

MegaApuTurkUltra wrote:

Not possible. The contents are literally "[removed]"
But you can see the author, which is kind of cool.

You can even report, and even reply to the comments! Also, if the comment is a reply, you can see who they replied to!
DrKat123
Scratcher
1000+ posts

Tampermonkey script for viewing deleted comments.....

-Radical- wrote:

Jonathan50 wrote:

MegaApuTurkUltra wrote:

Not possible. The contents are literally "[removed]"
But you can see the author, which is kind of cool.

You can even report, and even reply to the comments! Also, if the comment is a reply, you can see who they replied to!
Woah

Powered by DjangoBB