JavaScript is a programming language. Programming questions are off topic here; ask on Stack Overflow instead.

learn more… | top users | synonyms

1
vote
0answers
8 views

How to search and highlight long passages in a PDF file?

I made several highlights on Kindle Touch to PDF files. Kindle saves the highlighted text in a separate file, not on the PDFs themselves. I have all the text of the passages I want highlighted, what I ...
-3
votes
1answer
24 views

Javascript - I can't make the “this” keyword on my html [on hold]

Untitled Document function nonoto() { alert(document.getElementById(this.id).value); }
0
votes
1answer
270 views

Open browser type with javascript window.open() [closed]

Is it possible to open a specific browser type i.e. Google chrome, Firefox, Chromium using the window.open() method? For instance, I have Google chrome, Firefox and chromium installed on my system and ...
0
votes
0answers
11 views

Multiple character lookup within square brackets with regex [migrated]

I’m using regex in JavaScript for certain text replacements to convert legacy encoded text to unicode (it’s an indic language). Suppose I anywhere I find either of a,b,c followed by either of x,y,z ...
0
votes
0answers
12 views

How to override an included JavaScript file with GreaseMonkey? [migrated]

Example: One page has a script: build/function.js and I want to replace it with build/function2.js.
5
votes
2answers
2k views

What is Best-Deals-Products and is it malware?

I have found something that I suspects to be malware/addware. Script is added in every website I visit, even once I made myself. This is added in the : http://puu.sh/dgIF0/0c452eb390.png and iFrames ...
0
votes
1answer
28 views

How to configure linux to display webpage at localhost 127.0.0.1 that allows javascript-issued terminal commands?

Sorry if I am confusing things (don't know much about this topic). Basically, I want to access my raspberry pi wirelessly from my phone as long as I am within a few meters of it, and in this situation ...
1
vote
1answer
23 views

Multiple downloads from public source (web site), how to bypass “click on OK button” triggered by Javascript?

I'm trying to download multiple data sets from a public source, the European Union Transaction Log. I'm using the "Allocation / Compliance" search tool (in the left blue pane). From there I must ...
1
vote
1answer
3k views

Access-Control-Allow-Origin '*' not allowed/working with Apache2

I'm trying to connect to hood.ie via Javascript: hoodie = new Hoodie('http://xxx.com:6001'); But then get an error: A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when ...
0
votes
0answers
25 views

How to bypass empty user for VLC 2.1.x HTTP Control

I am controlling four VLC simultaneously for demo purposes. To achieve that, I use a mix of AutoIt to launch four instances with the F9 key : C:\VLC\vlc.exe -Idummy --extraintf http --http-port 8080 ...
0
votes
1answer
35 views

Block javascript on specific websites in Internet Explorer

I'm looking for a way to block javascript for specific websites in Internet Explorer, like YesScript does in Mozilla Firefox. Is there a plugin or a way to do this? It seems like this is not possible ...
-1
votes
1answer
24 views

run a function and print that's output after clicking on submit button [closed]

Hi I'm new to js and i have to use something in my project. I have a function that is it : function hash_f() { var hash = new XMLHttpRequest(); hash.onload = function(){ ...
1
vote
1answer
3k views

Why doesn't Javascript work in Internet Explorer?

I'm trying to use Internet Explorer to test a website, but scripts don't seem to be running. This seems like it's an issue on a lot of pages - for example, I tried going to the Acid3 page, and it said ...
1
vote
1answer
17 views

How to toggle JavaScript on demand (Chrome browser)

In Chrome, I know how to manage exceptions by pointing my browser to chrome://settings/content so as to disable JavaScript on just a few sites. But there's this one site which was coded badly, and a ...
0
votes
1answer
4k views

How to correctly use javascript:alert(document.lastModified); to check a website last update?

I read many webpages. They said that I could use javascript:alert(document.lastModified); to find the last update of a site. I test at least 10 websites. Only the website that I made gives me the ...
-1
votes
0answers
16 views

Using Greasemonkey to execute Javascript every 5 seconds?

I am new to Greasemonkey and javascript but have found the script below, I want to execute it every 5 seconds. javascript:$('.comments-stream .more:not(.dnone)').parent().find('.fa-minus').parent() ...
0
votes
1answer
7k views

JavaScript injection script, how to remove?

today I started to notice a very strange behavior. At some intervals my web pages in Chrome browser changes its web address to some javascript code javascript:try{if(document.body.innerHTML){var ...
0
votes
0answers
23 views

Computer malware injects scripts causing full of javascript errors

I have a local browser application (written in php, running on usbwebserver) which runs fine on all of my users' computers except for one. When i checked the app, it seems that there have been ...
1
vote
0answers
18 views

How can I find out what a remote script does before I let a website run it?

I use NoScript (on seamonkey, on Ubuntu linux) to defend myself against irrelevant scripting. However, many sites use a mix of scripts I will tolerate and scripts I do not want running (such as ...
0
votes
1answer
25 views

Force javascript to use a non-default sound device

I'm trying to force a single page that's playing audio through javascript to use a different soundcard from the rest of the browser(from the rest of the system actually). My current understanding is ...
-1
votes
0answers
9 views

How to open javascript links in a new tab [duplicate]

<a href="javascript:doSomething(256496967,%20false);">link text</a> When I left click on this link, it opens a page. When I middle click or request to open up in a new window, it just ...
5
votes
1answer
10k views

How to prevent a dialog box from opening in Google Chrome?

I have to visit a website in a regular basis that reminds me it was originally designed for Internet Explorer 8 and Mozilla Firefox 3.5.12 to 3.6.10. It displays a dialog box with that warning ...
1
vote
0answers
25 views

how do I prevent websites from automatically playing mp3 audio without turning javascript off?

Some websites like http://www.publika.ro/ use javascript to automatically load and play mp3 audio. How do I prevent any site from automatically starting playback, without losing the ability to run ...
0
votes
1answer
39 views

Download full web page: css, js, images and one or more levels of links

I am trying to download a web page including everything. I tried several methods and so far what worked better is the build in save page in Firefox, nevertheless it does not allow me to include one or ...
0
votes
0answers
28 views

Is it possible to have IE10 developer tools launch JavaScript debugger during infinite loop?

The issue is that my client has an application that is deployed to IE8 and IE10. The application doesn't work on any other browsers. Occasionally end-users are reporting browser crashes, where they ...
0
votes
0answers
21 views

UglifyJS only compresses my JS file

How to setup UglifyJS in intellij idea to compress and mangle all of my JS files? Right now I only have compress enabled. I went over this article: LINK After I setup a file watcher the script seems ...
-1
votes
1answer
43 views

Re-enable right click on the Images where it is prevented

I swear that I don't have any bad Intentions, I just want to know the reason. In the below you can see an alert that this website returns when I do a right-click on the Images : I want to ...
4
votes
4answers
7k views

How to get Firefox Greasemonkey script to use a local cascading stylesheet?

What's the correct syntax to link to a CSS file in the same directory as a Greasemonkey JavaScript? I've tried the following but it doesn't work: var cssNode = document.createElement('link'); ...
19
votes
2answers
1k 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 ...
17
votes
5answers
15k 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 ...
0
votes
0answers
33 views

Notepad++ function list: Account for jquery listeners in javascript class

Notepad++'s function list works decently well with PHP and Javascript. I am having an issue with DOM listeners breaking my FL structure though. Does anyone know how to solve this? Here's a ...
25
votes
7answers
29k views
0
votes
0answers
32 views

Allow Tampermonkey scripts in ScriptSafe in Chrome

I am using Google Chrome with Tampermonkey and ScriptSafe extensions. ScriptSafe blocks all the scrpts installed in Tampermonkey. I am wondering if there is anyway to make ScriptSafe to allow ...
0
votes
0answers
34 views

Block pages opened from JavaScript

Some websites open pages in a new browser window automatically, thanks to JavaScript. For example, when clicking at a play button, the video starts and another page gets opened in a new window. AFAIK, ...
0
votes
1answer
59 views

Regex for cron pattern not working

Tried to create a (simplified) regex for cron patterns for myself and came up with the following one: ^(((\d+(,\d+)*)|(\d+-\d+)|(\*(\/\d+)?))(\s+(\d+(,\d+)*)|(\d+-\d+)|(\*(\/\d+)?)){4})$ This is ...
0
votes
1answer
67 views

How to find matched parenthesis

Suppose I use Visual Studio 2010 to write jquery code, there are a lot of parenthesises. I may miss one or more parenthesises. What i sthe quick way to find or check matchness of parenthesis?
2
votes
4answers
2k views

Prevent users from being able to change JavaScript variables

Is it possible somehow to prevent users from being able to change JavaScript variables, trough the address bar or with programs like FireBug?
12
votes
5answers
12k 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 ...
1
vote
0answers
35 views

Chrome Debugger skip wrapper functions, until they call the real function

I am debugging in Chrome, there are some functions that are just wrappers, and I want to quickly skip them, something like this: function breakpointHere() { step1(); callWrappedFunc(); } ...
0
votes
0answers
91 views

Only the first row is accessed on the foreach loop

What I want to do is to pass using javascript the following values (refer to the value of the radio button) whenever I click on the radio button. I have this code on a blade template using laravel. ...
1
vote
1answer
2k views

Various issues with common websites and Internet Explorer

Windows 7 Home Premium SP1 64-bit | Dell Core i5 laptop, 4GB RAM Internet Explorer 10 (upgraded to 11 - problem persists) TROUBLESHOOTING: IE 10 - Advanced/Reset/Delete Personal Settings - problem ...
0
votes
1answer
65 views

Preventing javascript from grabbing arrow keys

It's becoming more and more popular for websites to grab the arrow keys via JavaScript and use them for site navigation in ways that breaks scrolling with the arrow keys. Short of NoScript, is there ...
5
votes
3answers
914 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 ...
0
votes
0answers
165 views

FireFox's NoScript equivalent for Opera Next

It's good that Opera Next has the built-in ability to disable JavaScripts for websites by default. But it's tedious to open the corresponding settings page and add an exclusion if we want to enable ...
0
votes
1answer
26 views

Javascript alert box unblock on Mozilla

I have blocked Javascript alert messages on my Mozilla browser and now I want to turn them back on, but I can't figure out how. Does anyone else have this problem?
0
votes
0answers
43 views

hundred-tab friendly Mozilla w/ no continuous javascript

I often have hundreds of tabs open in many windows in Mozilla, and, after a while, it starts consuming significant amount of CPU for these dormant pages, and each new window and page takes a very long ...
0
votes
0answers
14 views

JavaScript script for searching Kindle Unlimited

I have a list of about 150 books that I want to check whether or not are on Kindle Unlimited. Ideally, I'd like to write a script to automate this for me. Is this possible using AWS (preferably the ...
-1
votes
1answer
2k views

Modifying website source code to bypass survey

Whenever you open websites like downloadsafe.org there is a pop-up that you have to fill a survey. Till the time you don't fill that survey out it keeps sending request back to a server that gives a ...
1
vote
0answers
38 views

Is there a way to 'clean out' physical memory (RAM) that is tied up on my Centos/Apache webserver?

I am developing something that requires Server-side javascript, and as such am using PhatomJS to run the JS. It uses up about a 1GB of physical memory when all is well, but if I screw up some ...
0
votes
1answer
54 views

JavaScript to detect user activity?

My question is very short. Is it somehow possible to monitor/ detect the user's activity? This does not include any direct mouse input on the website itself. I've never come across something similar ...