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
9 votes
1 answer
73 views

The preview link on the community digests page is broken

Clicking on one of the preview links on the network community digests page results in a blank white box filling the screen and an error being logged to the console. This is from clicking the preview ...
Ginger's user avatar
  • 2,279
7 votes
0 answers
128 views

"more hot questions" link is broken

When I visit a question, and then try to use the 'more hot questions' link in the sidebar, it doesn't work as advertised. Hovering over it shows me the URL of the post I'm currently on, and clicking ...
Tinkeringbell's user avatar
  • 41.2k
6 votes
0 answers
153 views

Have an option to permanently switch to the jQuery fallback across all SE sites

Every SE site loads script from https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js. Unfortunately, the majority of Google's domains, including ajax.googleapis.com, are blocked by GFW. ...
typed-sigterm's user avatar
15 votes
1 answer
326 views

What are the selected vote button colors?

Edit: user3840170's stylesheet does what I was planning to do, and is a cleaner solution than anything I would have come up with. I'm working on a userscript to reverse the upcoming vote button ...
Someone's user avatar
  • 2,134
4 votes
1 answer
352 views

Can't comment because of a bug

Wherever I click Add a comment on Stack Exchange sites, even on my own questions, the screen gets like this: without any possibility to comment. How can I fix it? I'm using Chrome version 111.0.5563....
George Lee's user avatar
3 votes
0 answers
64 views

Can the other external JavaScript content be automatically used? [duplicate]

When browsing a Stack Exchange site and encountering a message like ... Stack Exchange requires external JavaScript from another domain, which is blocked or failed to load. Retry using another source....
Tim's user avatar
  • 1,756
50 votes
1 answer
713 views

2023 DOM Changelog for Userscript Community

Here's a thread to catalog any minor DOM updates we do throughout 2023 just to give folks in the user community a bit of a heads up and an official source of documentation around any DOM changes. ...
KyleMit's user avatar
  • 7,779
11 votes
1 answer
1k views

I'm getting "Uncaught ReferenceError: Stacks is not defined" errors in my browser console on Stack Exchange sites

The last few weeks the amount of 'Stacks is not defined' errors is increasing. This occasionally occurs on any StackExchange site, and throws the following error in the console [1]: Uncaught ...
0stone0's user avatar
  • 3,517
37 votes
1 answer
639 views

JavaScript is broken

Some things I noticed: Editing inline is broken The editing toolbar is missing on the old editor Tags don't appear Can't "Review question" to be able to post normally An error is present ...
Laurel's user avatar
  • 56.4k
12 votes
0 answers
85 views

Attempting to protect a question that is no longer eligible for protection silently fails

I opened a question that had just gotten a new answer. The answer scores were as follows: 65 10 7 4 -1 (new answer) 0 (deleted) 0 (deleted) -2 (deleted) The protect link was present on the question. ...
miken32's user avatar
  • 2,034
11 votes
0 answers
194 views

When JavaScript is disabled, sort orders other than "votes" are buggy

I normally browse Stack Exchange with JavaScript disabled, and reading, searching, etc. mostly work just fine in that context. However, sort orders other than "votes" are broken, for users ...
ais523's user avatar
  • 2,200
13 votes
1 answer
525 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 ...
Sebastian Simon's user avatar
9 votes
0 answers
151 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 ...
Sebastian Simon's user avatar
9 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 ...
Ian W's user avatar
  • 431
20 votes
1 answer
312 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 ...
hb20007's user avatar
  • 817
16 votes
0 answers
1k 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, ...
Low power's user avatar
  • 845
3 votes
1 answer
128 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 ...
Stock Exchange's user avatar
64 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 ...
Kyle Pollard's user avatar
  • 7,743
258 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 ...
Kyle Pollard's user avatar
  • 7,743
16 votes
0 answers
1k 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 ...
XP1's user avatar
  • 369
8 votes
0 answers
247 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 ...
undefined's user avatar
  • 194
2 votes
0 answers
256 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 ...
Ian W's user avatar
  • 431
12 votes
1 answer
960 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 ...
dbc's user avatar
  • 4,167
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 ...
Benjamin Hodgson's user avatar
27 votes
1 answer
562 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 ...
Glorfindel's user avatar
  • 256k
2 votes
0 answers
53 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 ...
g4s8's user avatar
  • 187
9 votes
0 answers
172 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 ...
Quasímodo's user avatar
  • 1,022
1 vote
0 answers
120 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" (...
Scratch---Cat's user avatar
5 votes
0 answers
116 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 ...
einpoklum's user avatar
  • 26.9k
11 votes
0 answers
79 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 "...
CertainPerformance's user avatar
9 votes
0 answers
139 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 ...
ert's user avatar
  • 1,310
7 votes
0 answers
155 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
1k 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? ...
Attila Kun's user avatar
5 votes
0 answers
104 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 ...
Sonic the Anonymous Hedgehog's user avatar
6 votes
1 answer
134 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 ...
Ilmari Karonen's user avatar
3 votes
0 answers
93 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 ...
Suvitruf - Andrei Apanasik's user avatar
16 votes
1 answer
169 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.
Shadow Wizard's 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 ...
numbermaniac's user avatar
3 votes
0 answers
98 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 ...
Dave Tweed's user avatar
  • 1,037
3 votes
1 answer
744 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=...
Mosh Feu's user avatar
  • 149
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 ...
Jan Doggen's user avatar
  • 2,336
-10 votes
2 answers
150 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 ...
Richard T's user avatar
  • 119
0 votes
0 answers
112 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.
user1632812's user avatar
2 votes
0 answers
320 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 ...
prasanth's user avatar
  • 121
5 votes
1 answer
853 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(), ...
Jason C's user avatar
  • 26.1k
2 votes
0 answers
90 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 ...
Jason C's user avatar
  • 26.1k
5 votes
0 answers
48 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 ...
Arulkumar's user avatar
  • 39k
4 votes
0 answers
542 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. ...
Andrew Willems's 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, ...
Chris Sunami's user avatar
9 votes
1 answer
156 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-...
Undo's user avatar
  • 50.8k

1
2 3 4 5