News: Jan 07, 2025 Show

Jan 7th: Small update to the Uploading Guidelines today: We now no longer allow paintovers of AI generated content. Or in other words AI generated content that has been edited to some degree by humans.

Dec 1st: If your account has been hit in the most recent ban wave of compromised accounts please reach out to us at management[at]e621.net and we'll help you get your account back.
If you've already contacted us give us a moment to get to you, though if it takes longer than a day for us to get back to you do feel free to reach out again!
Dec 2nd: If you got got and suddenly aren't able to see any of our exquisite selection of sausage and taco posts double check that Safe Mode is disabled in your account settings (Account -> Settings -> Safe mode [right above the blacklist text box]).

We still have a Discord server, come talk to us!
Want to advertise on e621? Click here!
Are you an artist uploading your own art to e621? Get verified now!

Topic: Cloudfront script?

Posted under General

Hi there

Recently I was wondering at my NoScript-Icon. It told me that suddenly there's a script on that side it doesn't know and blocked it. I looked around some and on the end of the sourcecode theres a link to d1ros97qkrwjf5.cloudfront.net/42/eum/rum.js

Now I'm just careful and was wondering what at all this javascript might do? I'm not really good in programming and such and therefore wouldn't much be able to identify any code

Updated by Aurali

It's probably OK, Silent Strider. CloudFront.net is a redirection to Amazon CloudFront, which is a content delivery service. I suspect it may have something to do with ads on e621, but I'm not sure if that's all they do.

Updated by anonymous

It's a part of a new Ruby on Rails performance management application we recently deployed, there's nothing malicious about it. That specific script deals with page load times.

Updated by anonymous

I just opened the script in notepad, and I must say -I'm not the big shit on programming- that I have no idea.

RedRaven said:
It's probably OK, Silent Strider. CloudFront.net is a redirection to Amazon CloudFront, which is a content delivery service. I suspect it may have something to do with ads on e621, but I'm not sure if that's all they do.

Which ads? The only I've seen here are from BadDragon and Furoticon. I doubt they have something to do with Amazon.

Also the script makes a lot of comparisons... Any extension that you may have that displays ads? Like iminent or something?

Edit: Forget what I said, tony just said it

Updated by anonymous

The RUM JavaScript library (rum.js) creates a cookie to read the navigation start time when a user leaves a page. This is accomplished by hooking an event (beforeunload or pagehide), depending on the browser.

RUM computes the amount of time spent on the network as the amount of time spent on the backend, exclusive of time spent waiting in the queue and web app. (These are provided by the agent.)

So essentially rum.js measures how long it takes from clicking on a link until the new page is fully loaded and rendered in your browser and some additional timestamps for events in between.
I didn't understand the reaction though.
What happens if a user takes far longer than your ApdexT setting?
Please enlighten me admin-sensei.

Updated by anonymous

Akkira said:
So essentially rum.js measures how long it takes from clicking on a link until the new page is fully loaded and rendered in your browser and some additional timestamps for events in between.
I didn't understand the reaction though.
What happens if a user takes far longer than your ApdexT setting?
Please enlighten me admin-sensei.

It's statistic collecting. So we know where the kinks in the code are (seems mostly like the original danbooru base is CRAP in terms of sql queries)

Updated by anonymous

Over 18?

You must be 18 years or older and agree to the terms of service to access this website.

Content that is commonly considered objectionable is blacklisted by default. You may remove tags from this blacklist using the corresponding menu item.