Questions tagged [javascript]

This tag is for questions relating specifically to the use of JavaScript on the Stack Exchange sites. Do not use this tag to ask about general JavaScript problems

Filter by
Sorted by
Tagged with
4
votes
0answers
77 views

Stack Exchange JavaScript is taking much longer to load than usual

After the recent SE network outage, I noticed that the JavaScript that powers things like the vote buttons, the dropdowns, and the "add comment" button takes much longer to load than it did in the ...
6
votes
1answer
86 views

Was access to unminified JS code via cdn-dev.sstatic.net deliberately removed?

It used to be possible to access the unminified versions of (most) Stack Exchange JS files via cdn-dev.sstatic.net (as opposed to the usual cdn.sstatic.net host that serves the minified versions). It ...
2
votes
0answers
45 views

Don't send request to the server if content hasn't changed

For example, when you press "Save edits" on comment, the request will be send to the server, even though the content of the comment wasn't changed. You can check the content before sending to reduce ...
15
votes
1answer
160 views

Eeeek! Can't start a bounty on any question

Trying to start a bounty, on any question, results in this: Please fix, in the dev tools I noticed a request to non existent URL. This happens in all SE sites as far as I could see.
4
votes
0answers
37 views

Trying to close the “join this site” box at the top of a page throws a JavaScript error instead of closing the box

I was trying to close this box at the top of https://music.stackexchange.com: But every time I hit the X to close, it just throws a JavaScript error instead of closing the box: It's happening in ...
2
votes
0answers
66 views

Arrow keys stop scrolling after editing a post

I tend to use the keyboard extensively, including using the arrow keys and PgUp and PgDn keys to scroll through pages on the site. I recently got a new computer and am experiencing a minor, but ...
4
votes
1answer
544 views

Stack Exchange sites fail to load CSS and several JavaScript resources with AdBlock enabled [closed]

With the AdBlock add-on, this is what Stack Exchange sites look like: And there are lot of errors in the console, like: Uncaught ReferenceError: StackExchange is not defined at 51978760?noredirect=...
4
votes
0answers
54 views

What code is getting retrieved from scorecardresearch.com and why? What data is collected? [duplicate]

When loading SE sites in the browser is slow, I see scorecardresearch.com flashing by in the browser status bar. The page source shows that scorecardresearch.com/beacon.js is retrieved. What data is ...
-10
votes
2answers
141 views

Sudden WRONG perception of [name-the-site] about JavaScript being enabled [duplicate]

I don't know what's going on... I haven't (intentionally) upgraded anything, but just now I've been getting this banner over my connections here (Stack Overflow and Stack Exchange - probably ...
1
vote
1answer
67 views

JavaScript resources on the Stack Overflow site [duplicate]

On my machine (Fedora 25, Firefox 56.0) I got the error shown below. Suggestions? I can't log in through Google because of this.
-6
votes
1answer
42 views

What is the best place to ask for help, and tips, on designing a web application? [duplicate]

I'm new to web applications, and have some broad questions about designing a back end, and model view controllers. Where is the best place to ask?
2
votes
0answers
133 views

JavaScript error on Stack Overflow page causing it to not work properly on Chrome

My Stack Overflow account is not showing any option in the description box from today: And the reputation notification icon and message notification are not working. It's not showing anything. The ...
5
votes
1answer
168 views

Is there a way to programmatically open a topbar dropdown?

Is there a way to programmatically open a network item dropdown (site switcher, inbox, achievements) in the top bar (non-SO style only)? I found a way to hide them via StackExchange.topbar.hideAll(), ...
2
votes
0answers
57 views

JavaScript syntax highlighter does not highlight template literals correctly

The lang-js highlighter does not appear to recognize backticked strings properly: let s = `a a a 'a a a' "a a a" a a ${true}`; // not quite let t = `a a a 'a a a ${true}'`; // a little ...
5
votes
0answers
44 views

What is the purpose of the “this page” link in the teststackoverflow

When reading this post, I came to know about teststackoverflow. In this page, there is a link named as this page, when clicking on that it didn't respond any. Inspect on the element the code was ...
3
votes
0answers
307 views

Stack Overflow code snippet tool bug: `console.log` incorrectly reports missing array slot as undefined

The Stack Overflow code snippet tool produces an ambiguous and, depending on your definitions, incorrect output when using the JavaScript console.log command with an array that has missing slots, i.e. ...
3
votes
0answers
62 views

Is there a currently known JS bug preventing voting and other actions? [closed]

Starting this morning, I've been unable to vote or view more comments, or do most other actions. I've seen the same issue in multiple SE sites (Philosophy, Musicfans) and multiple browsers (FF, ...
9
votes
1answer
134 views

JS on timeline page is broken

I was looking at this timeline for very boring, uninteresting reasons. The JS (and, consequently, responsive elements) on that page is broken. Console: VM3535:6 Uncaught ReferenceError: Invalid left-...
2
votes
1answer
79 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 ...
-16
votes
1answer
204 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) ...
6
votes
1answer
104 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 ...
6
votes
1answer
69 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 ...
2
votes
0answers
107 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 ...
-18
votes
1answer
468 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 ...
1
vote
0answers
41 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 ...
1
vote
0answers
49 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). ...
0
votes
0answers
25 views

Download Stackoverflow's Graph [duplicate]

I like the Stackoverflow's graph to visualize the data, Do you know where I can retrieve the source code? Thank you!
6
votes
0answers
396 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 ...
-6
votes
1answer
56 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 = $(...
9
votes
1answer
175 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 ...
3
votes
0answers
34 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 ...
2
votes
0answers
94 views

Sorting lists fails after first sort in mobile version (change event listener on select element lost) [duplicate]

This bug seems to have been fixed as it is no longer reproducible. If any moderator is around, please tag this post and its duplicate target as status-completed. On the mobile version of Stack ...
5
votes
0answers
109 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 ...
11
votes
1answer
76 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 ...
-8
votes
1answer
2k 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, ...
0
votes
0answers
23 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 ...
-6
votes
1answer
103 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..
8
votes
1answer
75 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 ...
6
votes
1answer
60 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 ...
2
votes
0answers
49 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 ...
1
vote
0answers
42 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,...
27
votes
1answer
137 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: ...
31
votes
1answer
439 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 ...
5
votes
1answer
419 views

Stack overflow lied to me illegally [closed]

I saw @jfatty's comment on stack overflow question about jQuery. I then downloaded the jQuery Diet Plugin, and I followed the detailed tutorial, but it isn't working? Stack Overflow LIED to me. In ...
28
votes
5answers
398 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 ...
7
votes
1answer
271 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 ...
3
votes
0answers
40 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 ...
1
vote
0answers
133 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 ...
10
votes
1answer
67 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);
5
votes
0answers
85 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 ...