Skip to main content

Questions tagged [javascript]

GENERAL QUESTIONS ABOUT JAVASCRIPT ARE OFF-TOPIC. This tag is for questions relating specifically to the use of JavaScript on the Stack Exchange sites.

Filter by
Sorted by
Tagged with
2 votes
1 answer
89 views

JS errors on SE business site

Going to stackoverflow business page I see the following javascript errors in the console: oct.js:1 Uncaught TypeError: Cannot read property 'appendChild' of null B2B-SO-Global.min.js:1 Uncaught ...
kenorb's user avatar
  • 2,169
-17 votes
1 answer
243 views

Exploiting Stack Exchange with the browser console

I viewed the source of a page on Stack Exchange and I discovered that all the up-vote buttons share the same CSS class and so do all the down-vote buttons. That got me thinking: what if user(s) ...
clickbait's user avatar
  • 660
6 votes
1 answer
112 views

Where is the StackExchange JavaScript object documented?

I learnt of the StackExchange JavaScript object recently via Tim Stone's answer. Is this is the same object documented in the API documentation? That doesn't mention the using() function from Tim ...
muru's user avatar
  • 8,235
6 votes
1 answer
90 views

Can a user script modify or apply syntax highlighting in SE sites?

SE currently use Prettify for syntax highlighting. However, there are still some languages which have no support from default Prettify, or by the extensions that SE may be using. If I wanted to test ...
muru's user avatar
  • 8,235
3 votes
0 answers
207 views

What on EARTH is this eggs.js thing? [duplicate]

So, whilst perusing the src for the chat.Travel.SE page to see if the background of the bottom chat bar showed where you were in the world (which would be cool, feature-request), I found a handy ...
Addison Crump's user avatar
-18 votes
1 answer
645 views

LibreJS support

It would be cool if Stack Exchange supported LibreJS, a Firefox extension for blocking non-free non-trivial Javascript code. Currently LibreJS blocks almost all of it. For example I had to temporarily ...
user avatar
1 vote
0 answers
43 views

'More hot questions' JS is broken in the new nav

When I try to click the 'more hot questions' link at the bottom of the sidebar on SO or mSE (with the new navigation), it just bumps me to the top of the page and doesn't do anything. Nothing in the ...
Undo's user avatar
  • 50.8k
1 vote
0 answers
61 views

Focus changes when adding tags with Safari

Using Safari 8.0.8 on Yosemite, the focus changes from the tag editor back to the post whenever I add tags, in some SE communities I'm a member of (not sure which ones do it,and which ones don't yet). ...
MicroMachine's user avatar
7 votes
0 answers
515 views

Login broken without JavaScript (submit button can't be clicked)

Trying to log in with JavaScript disabled does not work. Using a Stack Exchange email and password, the "Log in" button does nothing. This is likely because the <input type="button"> instead ...
Rachie's user avatar
  • 71
-6 votes
1 answer
64 views

Can the live-updating also load the content of the post?

Could the live-updating box auto update everything? Instead of showing a box, why not: Just get the new post content, unless you're on SO Do this: window.setInterval(function() { var activity = $(...
Universal Electricity's user avatar
9 votes
1 answer
197 views

Sometimes a SyntaxError is logged to console while viewing questions on Stack Overflow

I am not sure if it is related to the Stack Exchange network, but the Developer Tools in Chrome sometimes log an Uncaught SyntaxError: JSON.parse while viewing questions on Stack Overflow. The ...
Jehof's user avatar
  • 4,767
3 votes
0 answers
39 views

Can Chat allow POST requests from all origins? [duplicate]

In chat, I can read events by sending a POST request to this URL: http://chat.meta.stackexchange.com/chats/roomID/events However, there seems to be a Same Origin Policy, preventing CORS. Could it be ...
Universal Electricity's user avatar
5 votes
0 answers
117 views

Bug in reputation tab in stackoverflow? [duplicate]

Today I was using the graph located in the reputation tab for my own profile in Stack Overflow: As you can see it says select an area by dragging across the lower chart But nothing happens if ...
Pablo Matias Gomez's user avatar
11 votes
1 answer
92 views

Why is text disappearing from my answer? This doesn't happen when I disable javascript

Take a look at the answer here: music.stackexchange answer I use semi-ascii formated tables. They show up in editing mode. But they disappear shortly after 1 sec when the question page loads. When ...
JBeurer's user avatar
  • 213
-7 votes
1 answer
4k views

What is core.js and where is it?

In every single question about "How many secret hats are there", there's this sentence which I don't understand... ...according to core.js, there are 8 secret hats and... What exactly is core.js, ...
54D's user avatar
  • 2,782
0 votes
0 answers
24 views

Strange message at the top of the screen: external JavaScript ... is blocked or failed to load [duplicate]

When viewing this question, I receive the following message with big white letters on red background: Cross Validated requires external JavaScript from another domain, which is blocked or failed ...
user31264's user avatar
  • 169
-6 votes
1 answer
107 views

What does this red background dialog means? [duplicate]

Recently i saw a dialog with red background appeared in my SO page in Web Browser. What does it mean? and because of this dialog my SO site is not loaded questions properly..
M D's user avatar
  • 683
8 votes
1 answer
79 views

Which licences are acceptable for Javascript libraries embedded in SE sites?

Several SE sites have certain custom Javascript libraries that provide functionality that specific to those sites. For example, the Mathematics sites as well as many Science sites use MathJax to allow ...
Mad Scientist's user avatar
6 votes
1 answer
65 views

"Reject" popup is doublified in JavaScript when reviewing suggested edits

I was in the middle of writing a script to add keyboard shortcuts to /review pages, and I came across something... weird. Screenshot (click to enlarge): As you can see, there are two divs with an ID ...
Doorknob's user avatar
  • 45.5k
2 votes
0 answers
50 views

No disabled JavaScript warning on new mobile version

I was testing how a website worked without JS on my phone, and when I tried using SO, it just didn't work. There is no "JavaScript is disabled" banner; the inbox, rep tab, voting buttons, etc. just ...
Doorknob's user avatar
  • 45.5k
1 vote
0 answers
47 views

How do I troubleshoot when voting isn't working?

Today, I can't vote, at least on Travel.se and possibly on other sites. Sometimes, I get the red "an error occurred, please retry" message and sometimes it appears to work but if I load the page again,...
Kate Gregory's user avatar
  • 75.3k
27 votes
1 answer
146 views

Can't flag or close questions on all sites

Whenever I try to flag or close a question here, when clicking the submit button the button gets disabled, three dots animating and nothing really happens. JS console show a single error: Flagging: ...
Shadow Wizard's user avatar
30 votes
1 answer
459 views

Help me reverse-engineer Unicoin [closed]

Here; have the full, uncompressed source code for Unicoin you code monkeys! http://dev.stackoverflow.com/content/js/stub-uc.js This section looks pretty interesting: var loadingVersions = {}; var ...
Doorknob's user avatar
  • 45.5k
28 votes
5 answers
412 views

How to effective mine more Unicoins by hammering rocks? [duplicate]

I've clicked the hell out of this Unicorn-app and almost destroyed my mouse - got some suggestions on how to be more effective mining Unicoins? I mean, there must be some javascript-hack? Placed ...
Thomas Schwärzl's user avatar
7 votes
1 answer
340 views

Apparent recent change introduced an invalid character?

I'm stuck with Internet Explorer, so this matters to me. It appears to me that there's been a recent change to Stack Overflow which introduced the error below. The symptoms I see are that I can ...
CPerkins's user avatar
  • 269
3 votes
0 answers
41 views

Most JS buttons on SE and SO stopped working this weekend [duplicate]

I use Stack Overflow and the related sites on a semi-daily basis. Today I found that the following no longer works (the buttons do nothing): "Log in using Google" on at least rpg.se (I can work ...
l0b0's user avatar
  • 1,301
1 vote
0 answers
142 views

Content loss when CAPTCHA modal gets reloaded? (e.g., because JavaScript from google.com is disallowed)

The following just happened to me (on softwarerecs, but I guess it should be the same for all SE sites): I was entering a new question. When trying to post it, I was asked to solve a CAPTCHA. (*) The ...
unor's user avatar
  • 3,080
10 votes
1 answer
69 views

Voting writes a debugging message to the javascript console

If you vote on any question or answer, the javascript console log spits out: isElectionPrimary: false This comes from full.en.js line 184: console.log("isElectionPrimary: "+c);
durron597's user avatar
  • 11.7k
5 votes
0 answers
89 views

Race condition in Low Quality audit

I was just reviewing in the Low Quality queue, and after clicking the confirmation button on the dialog to close this question as "question as an answer", I accidentally clicked again somewhere in the ...
chrylis -cautiouslyoptimistic-'s user avatar
24 votes
1 answer
438 views

Cookies and JavaScript for teststackoverflow.com — legitimate?

Can someone authoritative explain what the cookies that teststackoverflow.com wants to set are for (tracking — I know, but tracking what, and what's wrong with the regular stackoverflow.com and is ...
Jonathan Leffler's user avatar
0 votes
2 answers
60 views

Don't understand code submission error in text box. [duplicate]

I have been trying to submit my html and java script to help with the clarification of a question. I created the html and java script in notepad++, so i thought it was properly formatted. I even ...
Learn2Earn's user avatar
25 votes
5 answers
262 views

Eeeeek! MSO JS is all borked!

I just noticed that clicking a JS-like link on MSO (like to show more hot network questions) just bumps me to the top of the page and doesn't do anything else. Also, adding a comment or any other JS-...
Undo's user avatar
  • 50.8k
8 votes
0 answers
388 views

Stack Overflow login is very complicated without third-party cookies and NoScript

I try to login with OpenID (stackexchange.com provider) with third-party cookies disabled and NoScript (with sane setup: always allow main domain). First you need to click two times "temporary allow ...
allo's user avatar
  • 1,207
10 votes
0 answers
202 views

How did "JavaScript is broken on meta" and my answer get upvoted while JavaScript was still broken on meta?

Would comment on my answer, but I couldn't as JavaScript was still broken on meta at the time. Would add another answer, but I couldn't as JavaScript was still broken on meta at the time. Therefore ...
BoltClock's a Unicorn's user avatar
17 votes
4 answers
400 views

JavaScript is broken on meta

I'm getting this error in Firebug: TypeError: l is undefined https://meta.stackoverflow.com/content/Js/full.en.js?v=29537078da9e Line 45 The icons in the top bar aren't clickable and I don't ...
Stijn's user avatar
  • 7,979
8 votes
1 answer
6k views

Browser console repeatedly prints "Error calling method on NPObject" on Stack Overflow

I was not signed into the site when I got this error. When I open any question on the Stack Overflow site, if I open the browser console, I keep getting an error message being continuously printed. ...
Ryan's user avatar
  • 181
-3 votes
2 answers
256 views

Bookmarking search query using javascript [duplicate]

Please provide me search queries for the below criteria,So that I can bookmark these links in my browser or use it in search box of Stackoverflow. Search all questions tagged ONLY java and asked ...
Chandrayya G K's user avatar
-3 votes
1 answer
257 views

Privilege creation: answering and upvoting without JavaScript, targets vision impaired people

I would like the creation of the privilege to answer and upvote, logged in, but without JavaScript. Set it at as high as 1000 points, if you fear robots. You may even take, for example, 200 points to ...
user2987828's user avatar
  • 1,618
20 votes
1 answer
5k views

What is formatunicorn for strings?

This is a serious post about unicorns! Here is a unicorn for everyone's enjoyment But in all seriousness, I was testing out some stuff for a Javascript question on strings, so I opened up the ...
scrblnrd3's user avatar
  • 6,944
11 votes
1 answer
153 views

Preview Breaks with Invalid Tag Name [tag:+]

In the formatted preview for Questions & Answers, typing a tag link with an invalid tag name "crashes" the preview. As soon as you type the following the preview stops updating and an error can be ...
Jacob Foshee's user avatar
3 votes
1 answer
299 views

Filter out results and answers that involve jQuery [duplicate]

Is there any easy way in Stack Overflow to filter out all solutions that involve jQuery. Due to licensing restrictions I only want to view solutions that use pure JavaScript.
user avatar
1 vote
1 answer
446 views

Meta Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load

I know this appears to be a duplicate. It's been brought up a dozen times on meta.stackoverflow.com. I've read many of them, but none of them really describe my scenario which I've been unable to ...
lurker's user avatar
  • 129
4 votes
1 answer
218 views

What Jquery plugin is used in Stack Overflow help section?

I want to ask the Stack Overflow owners: what JavaScript library is used in Stack Overflow help section? I like the animation that occurs when a part of the page is reached by scroll or just ...
Snake Eyes's user avatar
-3 votes
1 answer
245 views

bug in error messages in IE 10 [closed]

While using Internet Explorer 10, I am having problems MOST OF THE TIME when creating a new question, editing a question, or checking a question for the correct answer when there is a validation error....
Jonathan's user avatar
  • 101
2 votes
1 answer
103 views

What's with all the WebSocket errors?

I was just chatting in the Tavern when I saw this: click image to enlarge Eeek! Why are there so many WebSocket errors? I'm using Chrome 28.0.1500.95 (Official Build 213514) m.
Doorknob's user avatar
  • 45.5k
1 vote
0 answers
52 views

What's the technology used by the tiles at stackoverflow.com's site list? [duplicate]

I'd like to use the tech for stackoverflow.com's site list. The dynamic tile layout is really cool. I wonder how it is built. After viewing the code, I just find jquery js reference. Is it built using ...
SolessChong's user avatar
13 votes
3 answers
345 views

"Add comment" button no longer working on any Stack Exchange site for Internet Explorer 8

Today at 12:30 PM CST, the "add comment" button stopped working on any Stack Exchange site for Internet Explorer 8. It cites a javascript error. (Edit: I'm not using Compatibility Mode, and ...
called2voyage's user avatar
1 vote
0 answers
54 views

Fall back to local jQuery in case Google CDN fails to serve it [duplicate]

I was clicking around Meta Stack Overflow earlier and suddenly ran into a page with a big red error message at the top, "Meta Stack Overflow requires external JavaScript from another domain, ...
Ben Lee's user avatar
  • 6,097
0 votes
1 answer
3k views

WebSocket connection sometimes hangs while being behind a proxy

I am at work, and I am behind a Squid proxy. Usually everything works fine. But from time to time, I get this (in chrome console:) WebSocket connection to 'ws://sockets.ny.stackexchange.com/' ...
Benjamin Crouzier's user avatar
16 votes
3 answers
1k views

Dreaded error: "Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load"

I'm a huge fan of SO and also a IE user. I cannot use Firefox or Chrome because of company policy. So I get the dreaded error above. Based on other posts of SO I have tried the following: Typing the ...
Joe Tatavaran's user avatar