Re: [dev] surf script.js - incompatible with openjdk6?
On Fri, Oct 15, 2010 at 11:42 PM, Antoni Grzymala wrote: > Gregor Best dixit (2010-10-15, 22:35): > >> On Fri, Oct 15, 2010 at 03:15:03PM -0400, MItchell Church wrote: >> > I've still been unable to implement link hinting in surf. Numerous >> > searches of >> > dev archives and internet forums make me believe that it could be some >> > sort of >> > incompatibility non proprietary java packages. That doesn't sound >> > plausible to >> > me, but I can think of no other reason why it wouldn't work. I can't even >> > get >> > the script to throw any errors, it is just simply not calling script.js >> > when I >> > ctrl-f. >> >> WOW... >> >> I'm sure you're just trolling, but I'm going to feed you anyway... The >> 'Java' in 'JavaScript' has _nothing_ to do with Java as in bytecode >> language interpreted by the JVM. It's just marketing blah to ride on the >> ever so neat wave of success that is Java. > > With JavaScript being actually a much nicer language. The smell of a pile of stale donkey dung is a much nicer language than Java. But there are always worse things... there are always C++ and D. uriel > -- > [a] >
Re: [dev] surf script.js - incompatible with openjdk6?
Gregor Best dixit (2010-10-15, 22:35): > On Fri, Oct 15, 2010 at 03:15:03PM -0400, MItchell Church wrote: > > I've still been unable to implement link hinting in surf. Numerous > > searches of > > dev archives and internet forums make me believe that it could be some sort > > of > > incompatibility non proprietary java packages. That doesn't sound > > plausible to > > me, but I can think of no other reason why it wouldn't work. I can't even > > get > > the script to throw any errors, it is just simply not calling script.js > > when I > > ctrl-f. > > WOW... > > I'm sure you're just trolling, but I'm going to feed you anyway... The > 'Java' in 'JavaScript' has _nothing_ to do with Java as in bytecode > language interpreted by the JVM. It's just marketing blah to ride on the > ever so neat wave of success that is Java. With JavaScript being actually a much nicer language. -- [a] pgpe2Bffrg7H0.pgp Description: PGP signature
Re: [dev] surf script.js - incompatible with openjdk6?
On Fri, Oct 15, 2010 at 03:15:03PM -0400, MItchell Church wrote: > I've still been unable to implement link hinting in surf. Numerous searches > of > dev archives and internet forums make me believe that it could be some sort of > incompatibility non proprietary java packages. That doesn't sound plausible > to > me, but I can think of no other reason why it wouldn't work. I can't even get > the script to throw any errors, it is just simply not calling script.js when I > ctrl-f. WOW... I'm sure you're just trolling, but I'm going to feed you anyway... The 'Java' in 'JavaScript' has _nothing_ to do with Java as in bytecode language interpreted by the JVM. It's just marketing blah to ride on the ever so neat wave of success that is Java. -- $l="\n";$p=q-sub r{rand}sub c{((shift)**2+(shift)**2)<1}while( $i++<=$s){$t++if c r,r}die("Gregor Best, 0xDB9F9A7C, ".($t/$s* 4).$l)-;$s+=ord$$|$_ for split //,$p;srand($s|$$);eval$p;die$@ pgpXV20c5j29o.pgp Description: PGP signature
Re: [dev] [surf] script.js
On Tue, Mar 23, 2010 at 01:43:41PM +, Anselm R Garbe wrote: > More sucking technologies don't work on suckless.org ;) Seriously, it is possible to throw javascript away. Arora implements hints (hit ctrl) without javascript, it manipulates DOM through WebKit API. Maybe hints can be distributed as patch, not as script?
Re: [dev] [surf] script.js
On Tue, Mar 23, 2010 at 01:43:41PM +, Anselm R Garbe wrote: > > On 23 March 2010 13:35, julien steinhauser > wrote: > > On Tue, Mar 16, 2010 at 10:33:04PM +0100, julien steinhauser wrote: > >> > >> On Wed, Mar 17, 2010 at 12:15:43AM +0300, anonymous wrote: > >> > > >> > Anyway, even if this thread is repost, problem is not solved > >> > completely. Looks like problem is not with link_hints. script.js > >> > sometimes > >> > don't work at suckless.org at all even if it is just for `alert("hello, > >> > world")`. Looks like loading script.js is bound to wrong event. > >> > > >> Link_hints works on http://werc.cat-v.org/ though. > >> Despite they are both werc powered, the difference is big enough > >> to change script.js behavior. > >> > >> > > Here is something one can easyly test, > > > > 1) Put the http://surf.suckless.org/files/link_hints script in script.js, > > then launch surf on suckless.org, test link_hints and see that > > it doesn't work. > > More sucking technologies don't work on suckless.org ;) > > Cheers, > Anselm > It seems you didn't read the message until the end. ;)
Re: [dev] [surf] script.js
On 23 March 2010 13:35, julien steinhauser wrote: > On Tue, Mar 16, 2010 at 10:33:04PM +0100, julien steinhauser wrote: >> >> On Wed, Mar 17, 2010 at 12:15:43AM +0300, anonymous wrote: >> > >> > Anyway, even if this thread is repost, problem is not solved >> > completely. Looks like problem is not with link_hints. script.js sometimes >> > don't work at suckless.org at all even if it is just for `alert("hello, >> > world")`. Looks like loading script.js is bound to wrong event. >> > >> Link_hints works on http://werc.cat-v.org/ though. >> Despite they are both werc powered, the difference is big enough >> to change script.js behavior. >> >> > Here is something one can easyly test, > > 1) Put the http://surf.suckless.org/files/link_hints script in script.js, > then launch surf on suckless.org, test link_hints and see that > it doesn't work. More sucking technologies don't work on suckless.org ;) Cheers, Anselm
Re: [dev] [surf] script.js
On Tue, Mar 16, 2010 at 10:33:04PM +0100, julien steinhauser wrote: > > On Wed, Mar 17, 2010 at 12:15:43AM +0300, anonymous wrote: > > > > Anyway, even if this thread is repost, problem is not solved > > completely. Looks like problem is not with link_hints. script.js sometimes > > don't work at suckless.org at all even if it is just for `alert("hello, > > world")`. Looks like loading script.js is bound to wrong event. > > > Link_hints works on http://werc.cat-v.org/ though. > Despite they are both werc powered, the difference is big enough > to change script.js behavior. > > Here is something one can easyly test, 1) Put the http://surf.suckless.org/files/link_hints script in script.js, then launch surf on suckless.org, test link_hints and see that it doesn't work. 2) Click on "powered by werc" in suckless.org bottom bar, test link_hints and see that it works. 3) Come back on Suckless.org, test the script again and see that it works although it didn't the first time. Suckless.org doesn't contain any javascript but http://werc.cat-v.org/ does. It seems that script.js doesn't become active before surf met some javascript on his way, which is maybe logical (?), but breaks link_hints and middle_click_link until surf met a page with javascript. I'm affraid i post symptoms but no solutions, sorry. Julien
Re: [dev] [surf] script.js
On Wed, Mar 17, 2010 at 12:15:43AM +0300, anonymous wrote: > > Anyway, even if this thread is repost, problem is not solved > completely. Looks like problem is not with link_hints. script.js sometimes > don't work at suckless.org at all even if it is just for `alert("hello, > world")`. Looks like loading script.js is bound to wrong event. > Link_hints works on http://werc.cat-v.org/ though. Despite they are both werc powered, the difference is big enough to change script.js behavior.
Re: [dev] [surf] script.js
On Tue, Mar 16, 2010 at 09:56:53PM +0100, julien steinhauser wrote: > I know it won't help you a lot but both middle_click > (which also work with ^click) and link_hints > work here in my ~/.surf/script.js. > > I only have little issue with link_hints on a very few sites > (including suckless.org) where the numbers don't display. Anyway, even if this thread is repost, problem is not solved completely. Looks like problem is not with link_hints. script.js sometimes don't work at suckless.org at all even if it is just for `alert("hello, world")`. Looks like loading script.js is bound to wrong event.
Re: [dev] [surf] script.js
Sorry, it is repost. Something strange happened with my MUA, don't know why it reposted it. I have started this thread some time ago and problem is already solved.
Re: [dev] [surf] script.js
On Tue, Mar 16, 2010 at 08:18:08AM -0600, Eze wrote: > > I know it sounds silly but i would like to know that too, i tried the > middle click script and didnt work (yes i tried the one that was > supposed to be over a uzbl wiki) > > Eze > > On Mon, Mar 15, 2010 at 10:28:47PM -0400, anonymous wrote: > > I have tried to put code from http://surf.suckless.org/files/link_hints > > to ~/.surf/user.js, but it didn't work. Then I looked at config.h and > > moved user.js to script.js. It didn't work too. Even putting > > "alert('test');" to script.js don't work. style.css works as expected. > > > > Is there anything I obviously done wrong or how can I get more > > information from surf/webkit? > > I know it won't help you a lot but both middle_click (which also work with ^click) and link_hints work here in my ~/.surf/script.js. I only have little issue with link_hints on a very few sites (including suckless.org) where the numbers don't display.
Re: [dev] [surf] script.js
I know it sounds silly but i would like to know that too, i tried the middle click script and didnt work (yes i tried the one that was supposed to be over a uzbl wiki) Eze On Mon, Mar 15, 2010 at 10:28:47PM -0400, anonymous wrote: > I have tried to put code from http://surf.suckless.org/files/link_hints > to ~/.surf/user.js, but it didn't work. Then I looked at config.h and > moved user.js to script.js. It didn't work too. Even putting > "alert('test');" to script.js don't work. style.css works as expected. > > Is there anything I obviously done wrong or how can I get more > information from surf/webkit? > >
Re: [dev] [surf] script.js
Looks like script is not evaluated sometimes. Just simple script like `window.alert("debug");` don't work sometimes. On suckless.org it evaluates only when I go there with ^g, not when I start `surf suckless.org`. Probably binding JS evaluation to "window-object-cleared" is wrong. I don't know when it is called (maybe before there is any document object?), there is almost no documentation on WebKit. Also JS evaluating function throws no exception when there is no alert (just added some checking code).
Re: [dev] [surf] script.js
Same problem here... using hg thanks in advance for fixing ;) On Mon, Feb 01, 2010 at 05:19:34PM +0300, anonymous wrote: > This works: > window.alert('test'); > > Numbered links still don't, I'll try to fix them. > pgpztHYk8Tr7s.pgp Description: PGP signature
Re: [dev] [surf] script.js
This works: window.alert('test'); Numbered links still don't, I'll try to fix them.