Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [javascript]

JavaScript is the common name for the language initially used for scripting in web browsers. It is NOT the same as Java. Use this tag for questions regarding ECMAScript and its dialects/implementations (excluding ActionScript and JScript).

1
vote
0answers
7 views

Transferring wordpress site from server A to B ends with some corrupted js files in the target server

I had copied an entire wordpress site from one server (A) to another (B), and in the target server (B) a couple of js files seems to be corrupted like I show in the two screen captures.. In my local ...
1
vote
2answers
110 views

JQ (GET ID based on NAME)

I get a long list of such arrays { "id": "byu6g6c4cjys5mdkg5znh8ju8c", "create_at": 1511875272294, "update_at": 1511875272294, "delete_at": 0, "display_name": "BMA", "name": "...
0
votes
1answer
43 views

Why would javascript document.lastModified stop working, and return current date?

I have web pages on Ubuntu that return the lastModified date as part of the displayed text using javascript to create the following: Last modified: 08/28/2017 That's the actual last-modified date of ...
1
vote
1answer
29 views

How this process running in the background?

user 1550 1 0 Jun19 ? 00:00:00 node /usr/bin/nodemon src/server.js user 11051 1550 0 Jun19 ? 00:00:38 /usr/bin/node src/server.js Can someone tell how this process running ...
0
votes
0answers
68 views

How to install HTML5/JavaScript to Netbeans?

I installed the NetBeans Connector plugin to Chromium on my MacBook. That worked perfectly. I could create new projects in HTML5/Javascript. I tried to do the same on my Linux Mint 18.3 computer. But ...
0
votes
0answers
83 views

Profile a Gnome Shell extension

An extension I'm working on is having severe performance issues, causing the screen or gnome to freeze and other issues. I'd like to fix it, but I have no idea how or where to start. Is there a way ...
-1
votes
1answer
354 views

Run javascript on headless browser with specific website as origin

I'm using ubuntu server (only terminal) and I have a javascript that must be run from a specific website (to avoid cross-domain issues). Basicly I would follow this steps if I were in a convencional ...
-1
votes
1answer
60 views

Correct way to call a Bash function from all sessions

I use Ubuntu with Bash and I have a file hosting a script with 5 functions. Sometimes I want to call some function of these functions (but not all of them), directly from the CLI. I could say it's ...
-1
votes
1answer
68 views

error when compiling java file script

So I am trying to compile a .java file in my vim script but it keeps giving the error "could not find or load main class name.java" while I have put a main class in my .java file`, can someane help me ...
1
vote
0answers
92 views

Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format

When I try fetch v8 or gclient sync I get this error: Error: Command 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-clang-format -s v8/buildtools/linux64/...
1
vote
0answers
420 views

Is it possible to make Firefox open a URL in a popup window?

I would like Firefox (the new super fast Quantum with low memory usage) to open some URLs in a special/popup window, i.e. almost without anything (toolbar, menu bar, tab bar, address bar, etc.) other ...
1
vote
1answer
88 views

How to retrieve price information from www.meinfluessiggas.de in a bash script?

On https://www.meinfluessiggas.de one has to click a tank size button (section “Behältergröße”) and fill in a postal code (section “PLZ Behälterstandort”) for the price to appear on the right. I want ...
1
vote
1answer
281 views

Installing JavaScript Plasmoids in KDE 5

For the last year, I have been a happy user of KDE Plasma 5. KDE widgets, however, make me miss more directly programmable systems such as conky. Setting up an ad-hoc monitor for anything that needs ...
1
vote
1answer
674 views

Javascript BTOA vs base64 in bash?

I need to convert a username and password combination into base64 before sending to an API. The javascript BTOA function is working for me, but when I try to use base64 command in bash I get slightly ...
0
votes
0answers
31 views

Find where a javascript button redirects to through a bash script

I'm trying to make a bash script to display these forum posts through command line and w3m wont work because it can't press jvascript buttons. https://forum.roblox.com/Forum/ShowPost.aspx?PostID=...
0
votes
1answer
438 views

Javascript in Chromium very slow

In am running Chromium 57.0.2987.133 in FreeBSD 12-CURRENT with the Lumina desktop interface, in a Lenovo Ideapad with a Celeron N3050. I also set in /etc/sysctl.conf as recommended: kern.ipc....
1
vote
1answer
297 views

Unable to run a .py file in cgi-bin by using ajax call from my .php file

Hi guys:) I am using a Beagle Bone Black with Debian Wheezy to make a project. I have a small problem:I have my index.php in /var/www from there I call a python file called send_email.php using ajax: ...
1
vote
1answer
196 views

How to downloaded HTML file with obfuscated text

I use Firefox and I don't have any issues viewing and reading English text on the loaded websites. If I click Save in Firefox and save the web page in question as a text file I can read everything in ...
1
vote
1answer
457 views

How to get javascript key path in long json files in Linux

I'm using several keys from a long javascript object, represented as json. Example: ... "stock": { "type": 'str', "properties": { "warehouse": { "type": 123 }, "retail": { ...
2
votes
0answers
662 views

Emscripten fundamentally incompatable with clang on linux

A long time ago I wrote a really crude and primitive shell in C++, and I only just recently discovered asm.js, so I thought it'd be neat to try to compile and run it in a browser, but I can't because ...
3
votes
0answers
414 views

Accessing Dropbox login page through lynx / elinks via ssh on aws

I'm trying to install Dropbox in an entirely text-based Linux environment, following the instructions available on Dropbox wiki, which states: Use a command-line browser (lynx) Navigate to the ...
4
votes
1answer
798 views

How to disable JavaScript key events (and theft) in Firefox by websites?

I use Mozilla Firefox to browse the web. When I look at a site and wish to search text on the page, I use the slash / character to initiate incremental search (which is the default Firefox behaviour)....
1
vote
1answer
2k views

Data from python script to website

This involves a raspberry pi and apache2 so I thought the question would be good to go here.. have never used web sockets and things like that before so I'm pretty lost and hoping for some guidance......
2
votes
0answers
76 views

Using a web browser to generate a gallery/slideshow from local files

I'm trying to see how far I can go with using a web browser for various tasks vs. native apps. One of these tasks is selecting a group of local image files and generate a preview/gallery/slideshow in ...
5
votes
1answer
181 views

Search file name within file

Someone put a lot of malicious code onto every single wordpress instance on my server. For the second time. (At least) Every js file has been modified. There is a pattern though, the code always looks ...
1
vote
0answers
95 views

How do you pass variables to jsc/javascript?

I have a few javascript things that I am running from the Terminal by passing them to jsc, with <<<. (javascript is an alias to /System/Library/Frameworks/JavaScriptCore.framework/Versions/...
5
votes
2answers
8k views

How to minify Javascript and CSS with command-line using minify tool?

I'm not that versed in unix and I cannot have Java, so YUI Compressor does not apply, but I have this known Minify tool, which will get a minified version of a JS/CSS file from a specific URI /min/?f=/...
1
vote
1answer
165 views

Curl or Lynx: stripping Javascript possible?

I am doing corpus generation through curl or lynx of some web pages. I have written a program in bash to strip away the html code (e.g., when I do lynx -source myurl), but the problem is that some ...
0
votes
1answer
713 views

Is it possible to run programs nodejs in bash?

My question is simple : I have a program written in nodejs and want to run it in an infinite loop in the language bash, is this possible?
2
votes
2answers
12k views

How to get the contents of a webpage but after running javascript?

I am trying to download the contents of a web page using curl but it seems l am missing some content that l suspect to be generated by JavaScript. If the page runs on the browser l am able to get all ...
0
votes
1answer
229 views

Files getting reverted to older version

One of my site was infested with malware once and since then I am seeing every alternate day the header.php files are getting reverted back to older versions (possibly by a script) and a malicious ...
1
vote
0answers
326 views

Why is JavaScript embedded in a PDF opened with Firefox not executed?

I have embedded a simple JavaScript (app.alert messagebox) in a PDF using Didier Stevens pdf-tools. Then I open that PDF in Firefox in Linux and the Javascript is not executed. The messagebox is not ...
3
votes
3answers
15k views

How to do a fast convert of a .xls (MS Excel) file to .csv

How can I do a fast convert of excel to csv? I have tried with php, perl, JavaScript. but it takes too much time. For example, for a 5MB file it will take 3-5 minutes.
3
votes
2answers
1k views

Send javascript to Chromium or Firefox from linux terminal

I am using either a chromium or firefox web browser in kiosk mode to log in to a website from boot up, and I want to use a javascript to send in a command to login to a website automatically. I know ...
0
votes
1answer
45 views

To visualise systematically look-behinds

I am using Regexr to visualise my regexes now. I need look-behind but Javascript does not support it, example code here. The project code base seems to be dependent Javascript (NodeJS) in Github. I ...
3
votes
2answers
13k views

How to call a shell script from Javascript code?

I am not able to call a shell script program from javascript(for example if someone will click a button in webpage then a script will run and will throw some output)???
1
vote
0answers
77 views

Is there a solution for scanning webserver files for malicious code?

I have seen several times people move code into web servers now that had malicious code embedded into their HTML, php and other documents. These then get served up from the new server until they are ...
2
votes
1answer
6k views

NVM cannot find installed Node binary, PATH problem on Linux Mint 17?

I've successfully installed NVM and Node using official instructions. My .bashrc file contains [ -s "/home/user/.nvm/nvm.sh" ] && . "/home/user/.nvm/nvm.sh" After some time, maybe a day, I ...
1
vote
2answers
2k views

How to install Uglify on Debian Sid

I have a question about how to install Uglify or Uglify2 on Debian. I'm also wondering whether I have to install Node.js as well. My main goal of asking this question is to minify all my CSS and .js ...
2
votes
0answers
1k views

Using node.js and shelljs as interactive shell

Following the answer given at Is there a JavaScript shell? That requires me to always execute var shell=require("/usr/local/lib/node_modules/shelljs"); It seems like node forces execute a script ...
-1
votes
2answers
692 views

Alternative shells (Javascript, Ruby, etc)? [duplicate]

Does anyone use a shell written in Javascript, Ruby, Clojure, etc as their everyday unix shell, instead of bash, zsh, etc? Is there any reason not to?
4
votes
5answers
13k views

Javascript to HTML converter?

Take for example this snippet of code on a web page. <html><body> <script language="javascript"> document.write("The cat"); document.write(" sat on the mat"); </script> </...
1
vote
0answers
143 views

Create app that launches a local app in Joli OS

Recently (I mean, for the last 30 minutes) I have been playing with Joli OS. I spent quite a bit of time trying to figure out how local apps are launched within the web browser. After figuring out ...
7
votes
2answers
28k views

Launch a GUI browser on server without a GUI? [duplicate]

What's a simple way to launch a browser on an server that doesn't have a GUI, but needs a GUI-like browser? Something like Firefox or Chrome. I need to trigger a page load but it needs full javascript ...
30
votes
4answers
19k views

Is there a JavaScript shell?

Recently I've been working with JS and I'm very enthusiastic about this language. I know that there is node.js for running JS at server side, but is there a shell that uses JS as a scripting language? ...
0
votes
1answer
1k views

IDE or Editor for Front-end development (JavaScript/HTML/CSS)? [closed]

These days APTANA seems to be the IDE of choice for Javascript developers although there is no package for Ubuntu or any other distribution. How do I install Aptana on Ubuntu? Is it stable? (if you ...
6
votes
1answer
628 views

StackExchange with Elinks

I use Elinks to browse while I am connected remotely. I am unable to login to stackexchange using my OpenID. I enter the correct URL, and upon submission, I get the "No OpenID endpoint found." text. I ...
10
votes
6answers
18k views

What's the currently recommended way to install node.js on Debian?

I've found a few different methods on the web, but some of the articles are quite old, and I'm concerned that the methods they describe have been superceded. Can anyone tell me what the currently ...