Stack Overflow Requires JavaScript

It looks like Stack Overflow started requiring JavaScript.

I can still get to tags. But, answer pages seem to require JavaScript now.

I’m guessing that AI is turned on everywhere.

Answer to My Query

In case you are wondering about my query, the answer in Vim is:

:set fileformat?

And one of:

  • dos
  • unix
  • mac

will show in the Vim status line.

Mojeek Summary

Input

vim how to tell what line endings are used in a document

Output

To determine the line endings used in a document using Vim, you can open the file in Vim and enter the command :set fileformat? to display the current file format . The file format will be indicated as “dos”, “unix”, or “mac”, which corresponds to the type of line endings used in the file (DOS/Windows, Unix/Linux, or Mac, respectively) .

Alternatively, if you want to convert DOS/Windows line endings to Unix/Linux line endings, you can use the :w! command with the \n line break option in Vim. For example, to save the current file with Unix line endings, you can use the command :w! \n .

It is also worth noting that Vim’s $ command behaves differently depending on the type of line endings used in the file. With DOS/Windows line endings, the $ command will stop at the end-of-line, while with Unix/Linux line endings, the $ command will stop at the end of the last character on the line .

Finally, Vim has a feature called “folding” that allows you to hide and show sections of the file based on certain criteria, such as indentation or line numbers. This can be useful for navigating large files with specific line endings .

References

1 Like

This is unfortunate because in my estimation, if you do programming/software development for a living, Stack Exchange (and its subsidiary sites) is the single hardest non-privacy-respecting website to do without. It may be possible, depending on the exact nature of the job, but in general it seems difficult. This is because increasingly, a lot of languages, frameworks, and tools, rather than producing good, comprehensive documentation, simply rely on ordinary people reverse engineering and guessing and checking how things work and then writing about it on SE. In other words, they’re hoping for unpaid labor.

Side note: What is your theory with AI here? Can’t they harvest everything they need to without javascript? Or are you suggesting they did this as a protective measure against the web crawling AI mob that has become a nearly unsolvable issue for sys admins?

2 Likes

Stack Overflow has not changed for years.

The only reason to make a major change would be to introduce a new, AI-powered feature.

Of course, Stack Exchange has access to all of the data displayed on their website. Changes to the user interface concern only the display of that data. So, my specific comment would be that they are probably changing the website to accommodate some chat-like interface.

In part, I’m assuming this is similar to what Google did when they turned on AI features:

stack is using the browser’s processing of <noscript> tags to require JS - you can get around this, for example with uBO, by disabling the setting, ‘Disable JavaScript’ and then disabling JS in the uBO pop-up instead which also blocks JS, but without honoring <noscript> tags

ref: Per site switches · gorhill/uBlock Wiki · GitHub

there are advantages and disadvantages to both methods of blocking JS: if <noscript> tags are honored, then a site might instead present a non-JS version of the page, but on the flip side, as we see with stack, the content is blocked entirely

i don’t know is uBO’s JS blocking method can be configured per-site through custom filters, so if anyone does, please elaborate

of course it can - dummy me - and you don’t need custom filters - the blocking methods can be changed right from the pop-up UI


1 Like

ps: another way around this is to use a mirror and LibRedirect makes the job easy

1 Like