26

formatUnicorn is just a utility function for subbing in values to simple string templates in various places in the Stack Exchange JavaScript, using curly braces as the token delimiter. It's used on things like request routes to inject parameters. As for the name, we can only guess… * *It knows it's an abomination, don't stare at it!


26

Go there! http://teststackoverflow.com/ We are running performance tests analyzing changes to our global network. It is not malicious, we're just collecting performance metrics as we make major changes to our infrastructure. We want to ensure performance gets better, not worse, as we make changes. Edit: I forgot to mention the separate domain is ...


23

Well, that was my bad. Time to back go spin the wheel of blame to make sure we choose an appropriate victim. I should have shelved a change and instead pushed the go live button.


20

UPDATE: Yes! Victory for reverse-engineering of the unicorn voting animations! UPDATE 2: I made a userscript! Find it here on Stack Apps! Here I shall document my progress so far. This URL: http://meta.stackoverflow.com/unicoin/available-powerups looks promising.... {"powerups":[{"name":"Voting animations","useid":"f1bb643faf2c4382a56a7dfb945269c8","...


18

We are trying to block a scraper that is scraping against our terms & conditions. This bug was an unforeseen consequence of trying to ban them client side - not realizing that atob is not supported by IE 7/8/9 (and 10 in 7/8/9 mode). I am reverting the change and deploying as we speak. Meta is back to normal now... as is the rest of the network.


18

Being fixed as we speak; should be back to working in a few minutes.


15

Would convert Mołot's answer to a comment, but I can't as JavaScript is broken on meta. Would comment to that effect, but I can't for the same reason that he can't either. But if JavaScript wasn't broken, this question wouldn't have existed in the first place. Why am I still here?


13

If I understand it correctly, the only way to do that would be to license the entire JavaScript part of the SE website under an open source license. I don't see any compelling reason for SE to do that. They have open-sourced various parts of their platform in the past, but none of those were core components of the Q&A platform. I'd also guess that the ...


13

This is caused by an error in Easylist. See GitHub. All sites with an N anywhere have resources blocked, including cdn.sstatic.net. It should be fixed now. Make sure to update Easylist to get the solution.


13

Thanks for reporting this. It has been fixed across the network now and you should be able to add bounties until your heart is content. Thanks to balpha who smashed the bug very quickly.


12

This is fixed in the next build, which should roll out within a few minutes. Sorry 'bout that :-(


12

I feel your pain; the local devs would allow console in production code from time to time for some reason. As a workaround, just bring up the IE dev tools by pressing F12. This will define console and the button will work.


12

You can't hack the parent site when using Stack Snippets since those are loaded in a sandboxed iframe. You also can't hack from the browser console since voting HTTP requests has to come from the same origin, so you can't make cross site requests (CSRF). The only possible way to 'hack' is when you yourself have access to the browser and its console and ...


11

Voting is broken: the one valid use case ever for a "me, too" answer? Sign the petition below the line if you're having the same p0rblem. You will all be expected to upvote the question when things are fixed. Undo JoshC bfavaretto & sergio - This is also happening on Stack Overflow em Português, and its meta. (and we are overwriting each other's edits ...


11

We changed to the UglifyJS2 compiler yesterday to eliminate the dependency on Closure in our environment. Why? Cause Java, that's why. We don't install Java on our build machines, it just happens to be there in a small way because we use TeamCity as our build system, so the agent itself is Java-based and contains a small JRE within. The conflict of required ...


10

I think this is a good idea. As a Chinese visitor I'd like to use jquery cdn from baidu.The url is http://libs.baidu.com/jquery/1.11.1/jquery.min.js


10

There's a bit of plumbing going on ... Well, this might be a more accurate depiction: A fix is being has been deployed.


10

This was the work (but not the fault) of jTab, which is used on Music Stack Exchange to render guitar chord notation. We were telling jTab to handle each and every <pre><code> block we could find; especially every indented block like the ones you created. jTab dutifully converted them to a graphical representation, but of course your tables don't ...


9

This has been fixed on our side (Adzerk, I'm the Founder and CEO) - we recently added events to our client-side JavaScript and when de-serializing some records it was failing. This was due to the fact that we use a modified BASE64 (that will work on our URLs) and we weren't correctly de-modifying it before we tried to decode it. It didn't cause any issues -...


9

Jeremy Banks wins: that hack was overzealously replacing commas everywhere, even inside scripts. It has been replaced with, hum, a more proper hack.


8

It is not a library; this is a custom implementation by the Stack Exchange team. This approach is known as parallax web design, and usually involves moving elements in response to a user scrolling. The animation leverages the jQuery API, but other than a few shortcuts jQuery provides, jQuery itself has nothing to do with it. You can see the script here. (...


8

I can confirm I'm able to reproduce the error as well. Looking into the issue further now. I'll post any relevant updates here. Update: It appears that the error was a result of secure content being served on the regular, http version of SO. The client provided non-SSL tags, which when tested, no longer created the NPObject error. In anticipation of SO ...


8

Using Keith's C# class MouseOperation and the code below all you need is to point to the rock and hold Shift: [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] public static extern short GetAsyncKeyState(int vkey); static void Main(string[] args) { for (;;) { System.Threading.Thread.Sleep(5); if (...


8

You can make sure Prettify is loaded by invoking StackExchange.using('prettify', <callback>) in your script, which will then guarantee that PR is available in the global scope. I did this a while ago as part of a quick proof-of-concept for Mathematica highlighting (which may or may not work correctly now, depending on whether or not anything's changed)...


7

This is a bug in Chrome, where the content of the <noscript> tag is incorrectly interpreted as text the first time. It should be fine on subsequent refreshes, and there's not much that can be done about it on the Stack Exchange's end.


7

After seeing that nobody else has this problem I went through my browser extensions one by one. It turned out that the popular privacy extension Ghostery 4.0.0 was responsible! I'm now looking for a solution ... So Ghostery does in fact explicitly bock Google AJAX Search API. I'm not exactly sure why but they have a page on it that doesn't seem to really ...


7

Would upvote and comment to say I have the same issue. But I can't as JavaScript is broken on meta...


7

Yippie! I'd upvote if I could, but I confirmed the issue: Uncaught TypeError: Cannot read property 'klass' of undefined in https://meta.stackoverflow.com/content/Js/full.en.js


7

This aberration has been terminated with extreme prejudice from the codebase. With you in the next build (rev 2014.3.4.1421, meta rev 2014.3.4.2014).


7

As Nick Craver already mentioned the API for the client-side JavaScript object StackExchange isn't public. You can however rather easily obtain a non-minified version of that file from the Developer CDN. The object is created in the full.js and that version is annotated with comments in some spots. You'll find this as a start: // Begin c:\teamcity\...


Only top voted, non community-wiki answers of a minimum length are eligible