Topic: Raccoony plugins

Posted under e621 Tools and Applications

alphamule

Privileged

This specific source code file right here deserves attention. I'm trying to figure out how it works, and it seems well-documented in the comments there.
I wonder if others would like to look into the plugins on this extension.

alphamule said:
I'm trying to figure out how it works, and it seems well-documented in the comments there.

Basically, the querySelector() calls in that code are looking for specific items in e621's HTML, either on a gallery page (like posts) or on the page for a single image. If those calls find what they are looking for, the relevant strings get parsed out of the HTML.

Tip: All those logger.log() statements in that code will put comments in your browser console, as you browse e621, or any other site that Raccoony supports. Tools > Browser Tools > Web Developer Tools, or Hamburger Button > More Tools > Web Developer Tools in a Firefox near you. Then, click on the "Console" tab, to see the log statements that Raccoony is printing.

It might also be helpful to read the fine manual for an overview of how Raccoony plugins work.

  • 1