Questions tagged [javascript]
JavaScript is a programming language. Programming questions are off topic here; ask on Stack Overflow instead.
45
questions
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 ...
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 ...
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 ?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
8
votes
3
answers
10k
views
Advertisement suddenly appearing on top of almost every page
Since this morning strange advertisement is appearing on top of many pages I open in webbrowser (see screenshot at the end). It's happening in any browser (tested FF, IE and Chrome), on any of three ...
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 ...
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 ...
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 ...
6
votes
1
answer
3k
views
Middle clicking a link on chrome sometimes also switches the current tab to the new one
In chrome, most of the time, when i middle click on a link (text or image), it opens a new tab and the current tab does not change. This is the expected behaviour.
However, some websites have links (...
4
votes
1
answer
7k
views
How can I make my browser lie about my operating system?
I'm using Chromium (Version 30.0.1599.114 Ubuntu 12.10) under Linux. I'm trying to access a website that claims that it doesn't work under Linux. Of course, this is most likely crazy since the web is ...
4
votes
1
answer
4k
views
Is it possible to run JavaScript in Textmate?
If I try to run it now I get a XCode error. Do I need to install a JavaScript interpreter on my computer?
0
votes
1
answer
408
views
Blocking the ISP's ads appearing after a possible DNS grab and redirect via port 53?
I'm asking this question here because I already asked it on ProWebmasters and the moderators said the people on SuperUser might be able to answer it.
The question: https://webmasters.stackexchange....
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 ...
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 ...
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 ...
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 &...
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
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,...
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....
9
votes
4
answers
27k
views
Save website containing javascript after it was interpreted
There's a website I want to save that contains javascript (if that helps, the site is vyou.com; here's a link to Andrew W. K.'s user page) which updates the contents of what the user sees on the ...
7
votes
1
answer
10k
views
Text based webbrowser that supports JavaScript?
If I
lynx beforeitsnews.com
then I can't see the page because it needs a JavaScript compatible webbrowser.
Are there any text-based webbrowsers that supports JavaScript?:
6
votes
2
answers
12k
views
Firefox: Disable window.location on website
I'm trying to prevent a certain site from being able to use javascript to redirect the browser to another page. The script in question is an inline script so Greasemonkey and adBlock can't do ...
4
votes
8
answers
1k
views
Soft version of NoScript [closed]
I'm looking for a soft version of NoScript, by which I mean a Firefox extension that blocks most of the usual crap such as google analytics, without blocking unknown stuff by default. Basically I'm ...
4
votes
2
answers
8k
views
Why is my system waiting for google-analytics?
When I go to certain websites that have google analytics, they never load up. One example is www.jquery.com.
I tried in firefox, chrome, safari and explorer.
Chrome & safari, flash the ...
3
votes
3
answers
30k
views
Are Google Chrome's in-text ads from malware?
Google Chrome on Windows double-underlines words on every page. On mouse hover I get an ad overlay from infolinks or similar. Is this a legit part of Windows Chrome or is it due to some kind of ...
3
votes
2
answers
5k
views
How to get IE to open JavaScript as text
I am running IE 9. Up until last week sometime, if I would put the URL of a JavaScript file in the address bar, it would show the JavaScript as text in the browser window. Now when I do that, it wants ...
3
votes
2
answers
449
views
How to prevent JavaScript on web site messing with browser
Is there any way to prevent specific JS scritps messing with browser (Firefox or Chrome)? For example some sites are blocking copy\paste functionality for input fields forcing user to type some text ...
3
votes
2
answers
4k
views
How do I prevent automatic browser page refreshment done by Javascript?
There are some news websites which automatically and periodically refresh their page just in order to show the user more advertisement. If you are watching a video, all the buffered stream is gone ...
2
votes
1
answer
1k
views
Restore my browser's middle-click behaviour
Some sites do annoying things with JavaScript, like replace the default behaviour of the browser to open a new tab on middle click, with code such as:
<a href="http://stackoverflow.com"
onclick="...
2
votes
1
answer
4k
views
How to disable a specific JavaScript alert
On an active website I go to, there is this javascript code that is displayed on every page.
<script type="text/javascript">
(function(){var d=document;var i=d.getElementsByTagName('iframe');if(...
2
votes
1
answer
6k
views
How to rename the file name with timestamp of created date by JavaScript, Perl or shell on OSX?
Could you tell me how to get timestamp of created date of file and rename the file name with it by JavaScript, Perl or shell on OSX 10.9.2?
Example:
Existing: Untitled.txt timestamp is 2014/05/03 ...
1
vote
0
answers
77
views
Parsing wmic logicaldisk get Information [duplicate]
I am retrieving disk information via JavaScript with the wmic statement, wmic logicaldisk get freespace,name,size,volumename, which produces the following output, but in a single string.
"FreeSpace ...
1
vote
2
answers
218
views
Possible to modify hardcoded Firefox JavaScript Ctrl-Tab panel behavior?
In the source code for the Firefox Ctrl+Tab behavior there's a hardcoded limit of 6 tabs:
/**
* Ctrl-Tab panel
*/
var ctrlTab = {
maxTabPreviews: 6,
//...
for (let i = 0; i < this....
1
vote
1
answer
11k
views
Is it possible to run a custom script whenever loading a web page on web browsers?
I would like to block content on some specific languages whenever I open a page on my browsers (Safari and Chrome on macOS 11.4). I think the best solution is to use Google Translate API and check ...
1
vote
3
answers
11k
views
What tools can be used to download all images in a webpage? [closed]
I would like to download all images in a web page. The tool should be smart enough to examine the css and javascript files in the page source to look for the images.
Ideally, it should also replicate ...
0
votes
1
answer
5k
views
Hack for running multiple iMacros in random fashion
I have 20 iMacros (for browser) and they are specific to different URLs. I run these macros one after another, and then repeat or loop all of them 10 times.
But within that loop, i need those 20 ...
0
votes
1
answer
6k
views
JavaScript suddenly stopped working on windows7 all browsers? [duplicate]
Possible Duplicate:
All my browsers suddenly don't support Javascript files anymore?
I am facing some weird problem on Windows 7. JavaScript suddenly stopped working on windows 7 on all ...
0
votes
2
answers
2k
views
How to prevent flash and javascript from consuming my CPU?
I fed up of browsers eating CPU by rinning useless flash and javascript. A few questions how to have my CPU power back:
Are there any Opera or Firefox plugins which show which exactly webpage eats 80%...
0
votes
3
answers
1k
views
Web site does not show ads - GoogleSyndication.com Server not found [closed]
I put a Google Ad in a MOST BASIC web page.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
&...