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
13 votes
1 answer
158 views

Toast notifications are not being shown; a TypeError in `StackExchange.helpers.showToast` is thrown instead

Some toast notifications (i.e. those banners as shown in this screenshot) are not being shown; an error is visible in the console instead. This bug applies to Meta Stack Overflow and Meta Stack ...
user avatar
9 votes
0 answers
65 views

In review queues, when clicking “links” with `href="#"`, the popstate event is dispatched without a state, throwing a TypeError

While trying to reproduce another bug, I found this error in the browser console while in the review queues: Uncaught TypeError: can't access property "reviewTaskId", t.state is null ...
user avatar
8 votes
4 answers
1k views

Stack Exchange changes broke UI on multiple legacy browsers - Again

The previously reported and resolved issues of broken UI behaviour on legacy browsers (Latest Stack Exchange changes broke UI on Firefox Android), specifically, Firefox 68.11.0 (the last one before ...
user avatar
  • 421
20 votes
1 answer
252 views

The PGN Viewer (replayer) stopped working on Chess Stack Exchange

On Chess Stack Exchange, there is a jQuery plugin which is integrated to display diagrams like this: Today (1 February 2022), at around the time when this chess question was first posted, the PGN ...
user avatar
  • 737
14 votes
0 answers
218 views

JS broken on older web browsers due to undefined 'globalThis'

It seems a recent change in StackExchange has rendered it no longer working correctly on my browser (Firefox 60.7esr). The error message is: ReferenceError: globalThis is not defined As a result, ...
user avatar
  • 817
3 votes
1 answer
124 views

Core functionalities broken by a site update [closed]

A change near CE 2021-12-17 22:00 UTC has caused the core JavaScript based functionalities (comments loading, posting, etc.) cease to work on Chrome 77: rendering the site pretty much unusable on this ...
user avatar
58 votes
52 answers
2k views

Essential Stack Exchange user scripts and the dependencies they utilize

As part of our discovery for providing a JavaScript API for user scripts, we want to know what user scripts you're currently using. This can be used to report user scripts that you use and the global ...
user avatar
  • 6,255
255 votes
7 answers
15k views

Providing a JavaScript API for userscripts

Over the years, a number of community members have developed unofficial browser userscripts to add or supplement functionality on our platform. While we do have an official API, these scripts ...
user avatar
  • 6,255
16 votes
0 answers
243 views

Script error: Missing polyfill for replaceAll

This is a bug report for Stack Exchange frontend code (sstatic.net); don't close it as off-topic! Script error: Missing polyfill for replaceAll On older browsers, the site is broken. I can't click on ...
user avatar
  • 369
8 votes
0 answers
238 views

JavaScript no longer works all of a sudden [duplicate]

Since today it seems like almost all buttons on the site have href="#". When I click on them, the page just jumps up, but nothing else. For example: the 'more hot questions' link the ...
user avatar
  • 194
2 votes
0 answers
217 views

Latest Stack Exchange changes broke UI on Firefox Android [duplicate]

Update 2021-12-15 as noted here, so happy this is working again!!!! FF 68.11.0. I will say that BWC can be interpreted liberally. If it was not possible to reinstate the same functionality, say for ...
user avatar
  • 421
11 votes
1 answer
705 views

Was support for the SeaMonkey browser just removed?

For years I've been browsing the site using the SeaMonkey Gecko-engine-based browser. It has the following user agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 ...
user avatar
  • 3,988
76 votes
4 answers
2k views

We're Migrating our JavaScript

TL;DR: We’re making a substantial repayment on our JavaScript technical debt. Apologies in advance for any bugs as we work through it! An administrative note: Rather than posting bug reports as ...
user avatar
26 votes
1 answer
515 views

Review queues not working because of JavaScript error

For some users, reviewing is not possible at the moment; the queues show up blank. Both active queues and completed review items are not visible, probably because of a JavaScript error: I'm using the ...
user avatar
  • 212k
2 votes
0 answers
48 views

Automatically retry loading external JavaScript from another domain [duplicate]

Every time I'm opening any Stack Exchange sites in a new web session (I'm doing it every day or sometimes multiple times per day), it shows me a banner " requires external JavaScript from another ...
user avatar
  • 187
6 votes
0 answers
90 views

When blocking 'ajax.googleapis.com' on the sites, JavaScript "retry using another source" link should not redirect to the home page

Blocking ajax.googleapis.com results in a red bar that says: [This site] requires external JavaScript from another domain, which is blocked or failed to load. Retry using another source. Once that ...
user avatar
1 vote
0 answers
64 views

The "Add A Comment" Button sometimes Freezes

Whenever I see a red banner stating: Stack Overflow requires external JavaScript from another domain, which is blocked or failed to load. Retry using another source. The "Add a comment" (...
user avatar
5 votes
0 answers
94 views

Can't insert links or images: "Permission denied to access property "apply"" [closed]

For a few days now, I've been unable to insert images or links using the formatting toolbar above the post input textbox. When I press one of these two buttons, I get: Error: Permission denied to ...
user avatar
  • 23.1k
11 votes
0 answers
76 views

When VTCing as dupe, if the question you're on gets edited before you VTC, the whole question goes blank

To reproduce: Open up the VTC as duplicate interface Click on an original question (this can also be done after the edit notice appears in the next step) Wait for the question to be edited, so that "...
user avatar
7 votes
0 answers
118 views

Past audits on deleted posts fail to render due to JS error

I recently stumbled onto an old post which mentioned the following failed audit on this question (deleted): https://stackoverflow.com/review/low-quality-posts/19920226 This is what's rendered: (The ...
user avatar
  • 1,180
7 votes
0 answers
152 views

What is the 'i1l' hidden form element for in Stack Overflow/Exchange/Super User?

I have noticed that a mysterious hidden form element called "i1l" is magically added (with JavaScript, no doubt) to the middle of the form when submitting a new question. Its value appears to be a ...
user avatar
18 votes
1 answer
632 views

Scrolling on Stack Overflow is slow if a question has lots of answers

Chrome Version: Google Chrome 70.0.3538.77 (Official Build) (64-bit) OS: Ubuntu Try opening one of these pages: How do I create a URL shortener? How to use a decimal range() step value? ...
user avatar
5 votes
0 answers
99 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 ...
user avatar
6 votes
1 answer
114 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 ...
user avatar
3 votes
0 answers
88 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 ...
user avatar
16 votes
1 answer
164 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.
user avatar
5 votes
0 answers
46 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 ...
user avatar
3 votes
0 answers
96 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 ...
user avatar
4 votes
1 answer
646 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=...
user avatar
  • 159
4 votes
0 answers
84 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 ...
user avatar
  • 1,820
-10 votes
2 answers
148 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 ...
user avatar
  • 119
0 votes
0 answers
106 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.
user avatar
2 votes
0 answers
209 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 ...
user avatar
  • 137
5 votes
1 answer
544 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(), ...
user avatar
  • 25.2k
2 votes
0 answers
69 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 ...
user avatar
  • 25.2k
5 votes
0 answers
46 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 ...
user avatar
  • 33.3k
4 votes
0 answers
463 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. ...
user avatar
3 votes
0 answers
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, ...
user avatar
9 votes
1 answer
143 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-...
user avatar
  • 48k
2 votes
1 answer
85 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 ...
user avatar
  • 2,028
-17 votes
1 answer
235 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) ...
user avatar
  • 630
6 votes
1 answer
111 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 ...
user avatar
  • 6,308
6 votes
1 answer
86 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 ...
user avatar
  • 6,308
3 votes
0 answers
199 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 ...
user avatar
-18 votes
1 answer
606 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
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 ...
user avatar
  • 48k
1 vote
0 answers
60 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). ...
user avatar
0 votes
0 answers
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!
user avatar
  • 101
7 votes
0 answers
491 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 ...
user avatar
  • 71
-6 votes
1 answer
63 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 = $(...
user avatar

1
2 3 4 5