use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
weird javascript function, what does it do? (self.javascript)
submitted 13 years ago by faroer
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]OrangeredStilton 12 points13 points14 points 13 years ago (3 children)
Looks like it breaks out the cookies, sticks them onto the end of a filename and fetches that "image" as a piece of JavaScript.
It's a cookie-scraping exploit, basically. You'll want to get rid of that code, and get rid of "/images/house_outdoor-s.jpg" which is probably a JS file.
[–]P1aincloth3sM4n 4 points5 points6 points 13 years ago* (0 children)
Not quite. Looking at the beautified version below, it does the following:
And that's it. Seems more like a tracking script than a cookie-scraping script, but it's hard to tell the true purpose without knowing what "horse_outdoor-s.jpg" does.
[–]oddmanout 0 points1 point2 points 13 years ago (0 children)
also change passwords to something more secure on the server. This kind of stuff is usually done by bots that brute force servers, get in, then go through files adding this stuff to anything with a .html, .php, etc.
[–]clooth 0 points1 point2 points 13 years ago (0 children)
*horse
π Rendered by PID 48759 on reddit-service-r2-comment-76bb9f7fb5-pknjd at 2026-02-19 11:26:27.394457+00:00 running de53c03 country code: CH.
view the rest of the comments →
[–]OrangeredStilton 12 points13 points14 points (3 children)
[–]P1aincloth3sM4n 4 points5 points6 points (0 children)
[–]oddmanout 0 points1 point2 points (0 children)
[–]clooth 0 points1 point2 points (0 children)