You are not logged in.

#1 2014-11-08 17:24:06

INVAL1D
Member
Registered: 2014-10-26
Posts: 8

Login + Running Javascript on a page with no GUI?

Is it possible, with something like phantomjs, that somebody could navigate to a site, log in, and then execute a javascript code on the given site? (as if chrome's javascript console was open). Thanks.(No GUI, I need to use just the terminal for maximum speed and less power usage)

Last edited by INVAL1D (2014-11-08 17:28:03)

Offline

#2 2014-11-08 21:51:58

INVAL1D
Member
Registered: 2014-10-26
Posts: 8

Re: Login + Running Javascript on a page with no GUI?

Bump

Offline

#3 2014-11-08 22:28:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Login + Running Javascript on a page with no GUI?

I have no idea what phantomjs is - do you need to use that?  Some text-mode browsers support javascript - elinks is one.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2014-11-08 22:30:10

INVAL1D
Member
Registered: 2014-10-26
Posts: 8

Re: Login + Running Javascript on a page with no GUI?

Thanks for the reply.
I have elinks, (no, I don't need to use phantomjs) but I have no idea how to run javascript. I looked up the tutorial but it wants me to install a package that doesn't exist: libmozjs-dev.

Last edited by INVAL1D (2014-11-08 22:37:17)

Offline

#5 2014-11-08 22:35:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Login + Running Javascript on a page with no GUI?

What tutorial?  What wants you to install a package?  There is really no need to add "help?" to your message - frankly it will likely have the opposite result and turn people away.  If you want help spend more time clarifying the issue.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2014-11-08 22:37:40

INVAL1D
Member
Registered: 2014-10-26
Posts: 8

Re: Login + Running Javascript on a page with no GUI?

Here is the "tutorial". Scroll down to ECMAscript support, I looked on various forums and that's how to enable javascript.


http://elinks.or.cz/documentation/manual.html

Last edited by INVAL1D (2014-11-08 22:39:01)

Offline

#7 2014-11-08 22:44:04

INVAL1D
Member
Registered: 2014-10-26
Posts: 8

Re: Login + Running Javascript on a page with no GUI?

When I try to install, it says it has no installation candidate.

Sorry for the double-post

Last edited by INVAL1D (2014-11-08 22:44:30)

Offline

#8 2014-11-08 22:51:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Login + Running Javascript on a page with no GUI?

That is the debian package name.  Have you even tried searching for a spidermonkey/mozjs package in the AUR.  There is one.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2014-11-08 23:49:29

INVAL1D
Member
Registered: 2014-10-26
Posts: 8

Re: Login + Running Javascript on a page with no GUI?

This is a noob question, but how do I add that repo and install the package?

Offline

#10 2014-11-08 23:57:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Login + Running Javascript on a page with no GUI?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#11 2014-11-09 00:17:27

INVAL1D
Member
Registered: 2014-10-26
Posts: 8

Re: Login + Running Javascript on a page with no GUI?

EDIT: Got it.

Last edited by INVAL1D (2014-11-09 00:30:07)

Offline

#12 2014-11-09 00:31:44

INVAL1D
Member
Registered: 2014-10-26
Posts: 8

Re: Login + Running Javascript on a page with no GUI?

==> ERROR: Cannot find the strip binary required for object file stripping.

When I try to makepkg it

Offline

#13 2014-11-09 00:42:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: Login + Running Javascript on a page with no GUI?

Then either read the wiki again, or search for that same error message.  Don't be a help vampire


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB