Questions tagged [javascript]
JavaScript is a programming language. Programming questions are off topic here; ask on Stack Overflow instead.
881
questions
128
votes
16
answers
123k
views
How do websites block selecting text and how do I unblock that?
There's a website (example) that somehow blocks selecting text. Also it blocks Ctrl+A to select everything, there is also no “Copy” in the popup menu.
What I have tried:
Some sites use JavaScript to ...
60
votes
10
answers
64k
views
How do I set Google Chrome to not allow javascript to hijack my right click menu
I despise web sites that hijack my right mouse button via javascript. Other browsers ( like firefox) allow me to block sites from doing this. Does chrome have such an option, or does it leave me at ...
59
votes
6
answers
10k
views
Removing annoying click-handling logic from websites
There are a lot of websites out there that block your ability to right click or select text. I believe it's done as a sort of half-assed security measure to prevent people from copying text or images. ...
57
votes
6
answers
12k
views
Why can't old PCs view modern sites? [closed]
The reason for this question is that many times clients, friends and parents ask me why their perfectly working old PC cannot be used online anymore.
I am looking for a good answer to those people ...
55
votes
4
answers
8k
views
How do I prevent pages I visit from overriding selected Firefox shortcut keys?
In Firefox, how can I prevent pages from overriding Firefox built-in keyboard shortcuts through Javascript on a per-key basis? Preferably on a per-site basis, too? The most frustrating override is the ...
49
votes
5
answers
126k
views
Use AdBlock without being detected
Upon visiting a site today I was rewarded with Comic Sans.
Behold it's glory:
Source
Needless to say I can finally understand why so many people loathe this font.
However, this does bring up a ...
47
votes
5
answers
59k
views
Command line browser with js support
Does anybody know good command line browser with js support?
Ideally I need following ability:
some-browser http://example.com > ~/page.html
It means that cli browser download html, execute js ...
38
votes
6
answers
11k
views
How do I prevent "Read more: www.site.com" from being injected with non-Tynt JavaScript into copy-paste actions?
There are many sites that insert something like "Read more: www.site.com" into your clipboard when you copy text in your browser. I find this abominable. A Google earch reveals some ...
31
votes
5
answers
37k
views
How Can I Stop Scripts on a Page in Firefox?
How can I stop scripts on a page in Firefox? I don't care if the solution is draconian. Super-tech-savvy solutions are also fine.
Clarification: I don't want to turn off scripts permanently. I want ...
29
votes
2
answers
34k
views
What is JavaScript Obfuscation and why is it a threat?
AVG was recently telling me that a webpage was blocked because of JavaScript Obfuscation.
Why was the webpage blocked and what exactly does that mean?
28
votes
8
answers
50k
views
How do I disable Javascript in Chrome?
How do I disable Javascript in Chrome?
27
votes
9
answers
27k
views
Change a favicon locally in google chrome
This is a frustrating question, mostly because all searches for this usually give me information on how to change a favicon for a website the user owns. Allow me to elaborate on my issue.
I would ...
26
votes
5
answers
9k
views
Force Google Chrome to check for new JavaScript files every time I access a web site
So, if I go to Internet options in Internet Explorer:
I can adjust the settings for when IE checks for updates:
Can I do something similar in Google Chrome? Right now when I change my JavaScript ...
25
votes
6
answers
14k
views
Is there any *good* HTML-mode for emacs?
I love emacs,
and I want to do my web-programming work in it,
but I can't find a way to get it to edit HTML properly.
I mean it's seriously awful.
It will do HTML fine, but not PHP, javascript, etc....
23
votes
3
answers
88k
views
How can I disable javascript popups/alerts in Chrome?
Sorry if it's been asked. I've already found several solutions that aren't working. Not sure what I'm doing wrong.
I don't want to disable all javascript, only Javascript alert boxes. The ones that ...
22
votes
6
answers
14k
views
How to make Firefox always stop a script when it's not responding
On some pages I get the "Script not responding" error with an option to stop it and a checkbox to never ask again.
Later I get the same question again, with that pointless checkbox.
How do I make ...
20
votes
3
answers
19k
views
Javascript trick? How does scribd make it difficult to even copy & paste text
Lately, I have seen that scribd makes it very difficult for users (free users) to browse through a document hosted on their site. There is no ability to search within a document, let alone being able ...
20
votes
6
answers
78k
views
Is there a way to disable a specific JS script from a specific website?
I want to disable a specific JS script from a specific website without disabling the javascript completely. Is there a way to do that ?
19
votes
3
answers
114k
views
How do you download a PDF from Viewer.js?
I was on a site with a PDF without a download option. I read online that you should "inspect element" to find the true source.
After scrolling through the elements > properties I found a &...
19
votes
3
answers
21k
views
How to halt javascript execution after page load (Firefox)
Javascript is responsible for loading the content of a page I need, so disabling javascript with noScript prevents the content from loading. However, once the javascript for this page has finished ...
19
votes
3
answers
31k
views
How to enable inline JavaScript autocomplete in Eclipse IDE with the Aptana extension
Background
I have Eclipse IDE.
I have installed the Aptana studio plugin for Eclipse.
I am editing an HTML file.
JavaScript auto-complete / content assist only works half of the time:
Eclipse won’t ...
18
votes
3
answers
12k
views
Safari Web Developer Tools?
Where do you enable web developer tools in Safari on windows? I can't find it anywhere. A quick web search found some really complicated instructions that felt more like a hack then turning on a ...
18
votes
3
answers
13k
views
How to open stubborn javascript links in a new tab or new window?
Some websites use "creative" (javascript?) hyperlinks which break browser functionality, such as the ability to ctrl+click or middle click links to open them in a new tab.
A common example, taleo HR ...
17
votes
4
answers
54k
views
Is there a way to run Javascript without a browser, like a shell or batch script?
Is there a way one could run Javascript the way Python, Bash, Windows Batch or other scripting languages are run?
File access and other library functions would be nice but are not required - I'm just ...
17
votes
1
answer
12k
views
Disable Javascript for certain page in Chrome
In chrome, there is an option under Settings to disable javascript, and it is possible to manage on which sites you want to disable it.
But is it possible to enable or disable javascript on page ...
17
votes
4
answers
66k
views
Javascript error console in Chrome?
I know how to do it in Firefox - how do I see Javascript errors in Chrome?
16
votes
4
answers
10k
views
How to hide Browser Plugin Details in firefox for more privacy?
I'm trying to trick the results in this page to have more privacy/anonymity: https://panopticlick.eff.org/index.php?action=log&js=yes
So far the best I could do is change the user agent, with the ...
16
votes
10
answers
8k
views
Blocking hover ads
Okay, I am done with hover ads. I am so done with it, I am starting to avoid website which implement them even though I (used to) like those websites.
Obviously, it is considerably harder to block ...
15
votes
1
answer
8k
views
Chrome stops Javascript when console is opened
I'm not sure if this is a new update, or a browser setting I changed when I was drunk, but basically when I open the Chrome Developer Console, Javascript becomes blocked on that page (And the ...
15
votes
3
answers
5k
views
How can I stop JavaScript from modifying the clipboard?
More and more I find that when I copy text from a news site, the site adds in its own advertising/footnote link to my clipboard, so that when I paste, the copied text is appended with something like:
...
15
votes
1
answer
33k
views
How can I add autocomplete in notepad++ for javascript in an .html file?
Notepad++ does auto-complete for html and also for JavaScript. but the auto-completion depends on file extension.html file supports completion for html only. Is there a way to enable auto-completion ...
15
votes
3
answers
43k
views
How to prevent JavaScript alerts that fire when leaving a page?
Lots of pages have alerts when you leave them: if you close tabs, navigate away without saving, etc, there are numerous reasons why a site would alert/block you from leaving until you confirm an alert,...
14
votes
6
answers
10k
views
Greasemonkey script (or Firefox extension) to stop sites from disabling copy-paste?
Is there a GreaseMonkey script to disable the JavaScript-disabling of copy-paste in Firefox (3.0)? Or should I just run NoScript or some other extension on any site that attempts this (other things ...
13
votes
3
answers
3k
views
Is there a way to directly open Chrome's “dedicated devtools for node”?
I use Firefox for my daily browsing; so the process of getting a Node inspector running is somewhat annoying:
Launch Chrome.
Manually visit chrome://inspect, because it refuses to set a builtin page ...
13
votes
2
answers
4k
views
<noscript> is triggered for no reason in Chrome
I think I found a bug in Chrome, and I kind of have no idea where to post but it may as well be a misconfiguration on my part or something.
Here is the issue. I'll include a screenshot which should ...
12
votes
5
answers
27k
views
How do you use WGET to mirror a site 1 level deep, recovering JS, CSS resources including CSS images?
Pretend I wanted a simple page copy to be downloaded to my HD for permanent keeping. I'm not looking for a deep recursive get, just a single page, but also any resources loaded by that page to be also ...
12
votes
1
answer
4k
views
Is it possible to disable Javascript without reloading the page in modern Firefox?
I seem to remember that, in the past, when one disabled Javascript in Firefox, it would immediately stop all previous-loaded scripts and event handlers from running.
However, I am now running ...
12
votes
2
answers
3k
views
Stop console.trace from automaticly expanding in Chrome
I'm working on a project where some library calls console.trace every refresh. Chrome then automaticly unfolds the trace, so that it takes over 20 lines on the console.
This takes too much space and ...
12
votes
0
answers
5k
views
How to Disable Web Page Checks for Focus, or Spoof Focus on Firefox Browser Tabs?
Problem:
Some web sites refuse to load unless the tab is active, whereas most users appreciate tabs loading in the background. This behavior may not be specific to Firefox.
Examples:
https://www....
11
votes
3
answers
24k
views
Why does editing javascript in Chrome Developer Tools not work?
I have Google Chrome 13.0.782.220 on my Ubuntu 10.04 LTS (64-bit).
I try to edit a JavaScript code from an external JS file in the Chrome Developer Tools Scripts pane by double-clicking on the ...
11
votes
5
answers
107k
views
How do I disable JavaScript in Microsoft Edge?
The new Settings menu for Microsoft Edge does not seem to contain a way of disabling JavaScript. Going through Internet Options and disabling Active Scripting turns of JavaScript for IE11, but does ...
11
votes
2
answers
2k
views
How to prevent bare windows in Firefox and related browsers?
Some websites like to use JavaScript links that open a new window, which lacks any UI except for the address bar. Meaning no extension buttons, search bar, home/back/etc. buttons, bookmarks, tab bar ...
11
votes
1
answer
52k
views
Block certain script in the Chrome / Chrome DevTools [duplicate]
Is there a way to block, let's say some_script.js from domain.com, but not all of them?
11
votes
1
answer
11k
views
Where is the javascript console in Safari 5.0.5 for Windows?
Just what the title says. Where can I find the javascript console in safari?
11
votes
2
answers
5k
views
Syntax highlighting for embedded languages in VS Code
I am busy making my own grammar extension in Visual Studio Code. The language is called Snake, say, and the grammar kicks in when a file of the kind "*.snk" is opened, for instance "hello-world.snk". ...
11
votes
3
answers
13k
views
All my browsers suddenly don't support Javascript files anymore?
I'm experiencing the same issue as this question, which seems to be unresolved. I'll provide more detail, sot that this qualifies as a better representation of the issue. It all started after moving ...
11
votes
3
answers
2k
views
How to see exception message in Google Chrome while paused?
I'm using Google Chrome for debugging JavaScript. I opened up the JavaScript Console and the "Pause on Exception" feature is enabled. Now whenever I run JavaScript that has an exception in it, it ...
10
votes
7
answers
52k
views
How can I copy text from a web page where it been has disabled?
I use FF27 with noscript, but solutions for Chrome are also welcome.
I use online chat for customer support when available, and I'd like to keep the chat transcript in case of a dispute with the ...
10
votes
4
answers
7k
views
Prevent javascript from resizing IE window
I am looking for a way to prevent JavaScript on a webpage from resizing and repositioning my Internet Explorer window.
This option is available in Firefox, but I can't find anything similar in ...
9
votes
2
answers
18k
views
Turn JavaScript into bookmark or bookmarklet?
I have created one script that shows passwords on hover just like Windows 8 on eye click.
I have made this functionality through JavaScript with following code.
function text(){this.type="text"}...