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).
Questions tagged [javascript]
75 questions
34
votes
4 answers
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? If such thing exists, how usable & stable is it?
J-unior
- 691
- 3
- 7
- 15
19
votes
2 answers
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=/path/to/file.js.css
Which unix commands may I…
João Pimentel Ferreira
- 750
- 1
- 6
- 16
11
votes
1 answer
Launch a GUI browser on server without a GUI?
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 support. Once the page is loaded it can close…
user38896
10
votes
3 answers
Debian Buster: install yarnpkg as yarn
I have installed yarn - Node.js package manager (alternative to npm):
$ sudo apt install yarnpkg
...
$ dpkg -l | grep yarn
ii yarnpkg 1.13.0-1 all Fast, reliable and secure npm alternative
But…
Messa
- 221
- 1
- 8
10
votes
6 answers
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 recommended method, to best utilise package…
UpTheCreek
- 828
- 3
- 10
- 17
6
votes
1 answer
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 am certain that I am entering the correct URL.…
0nyx
- 105
- 1
- 4
6
votes
2 answers
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 how to write the javascript, but I do not know how…
vhwitt
- 71
- 6
4
votes
4 answers
Javascript to HTML converter?
Take for example this snippet of code on a web page.
If I were to retrieve this web page via CURL or WGET I would get…
Meer Borg
- 916
- 2
- 8
- 12
4
votes
2 answers
What is the term to describe the naming method "MyVariable" (as opposed to "myVariable")?
Variables and procedures in JavaScript are often named via the "camelCase" naming method, as:
myVariable
Any letter of the only or not-only-but first letter in an expression which acts as a data structure's name or part of a name is…
timesharer
- 51
- 5
4
votes
1 answer
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 different results.
Javascript:
btoa("hello"); …
Philip Kirkbride
- 9,816
- 25
- 95
- 167
4
votes
1 answer
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).
However, when I visit a site…
Ned64
- 8,486
- 9
- 48
- 86
4
votes
1 answer
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 like this:
/*[file-name]*/[malicious…
Marvin Pollock
- 41
- 1
4
votes
1 answer
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 the contents l require.
Mutai Mwiti
- 141
- 1
- 1
- 3
3
votes
3 answers
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": "BMA",
"description": "",
"email":…
WhoAmI
- 159
- 1
- 4
- 8
3
votes
0 answers
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 dropbox website in lynx. lynx https://dropbox.com/…
Konrad
- 313
- 1
- 8