Re: [dev] [surf] Disable javascript

2012-11-16 Thread Christoph Lohmann
Greetings.

On Fri, 16 Nov 2012 10:13:56 +0100 sta...@cs.tu-berlin.de wrote:
 * Nick suckless-...@njw.me.uk [2012-11-15 15:47]:
  Insert mode? Since when did surf become modal? Why is this needed
  (except for people who like to pretend they're using vim)?
 
 I agree, insert mode is quite special and maybe is worth having it as a
 patch rather than in mainline surf. It makes character handling less
 readable. 
 
 If you want it, you will know that and will know how to get it working. 

The  insert  mode  is  now removed in the tip of surf. Yes, it will only
confuse people and there is no real need for the insert mode in  average
browsing.

Who will send the patch to replace Webkit with something sane?


Sincerely,

Christoph Lohmann




Re: [dev] [surf] Disable javascript

2012-11-16 Thread Edgaras
On Fri, Nov 16, 2012 at 10:13:56AM +0100, Christoph Lohmann wrote:
 Who will send the patch to replace Webkit with something sane?
 
 Sincerely,
 Christoph Lohmann

Well there is no sane thing for web, and I think trying to make one would drive
the creator insane. I think the closest thing to sanity between web browsers is
edbrowse (and I'm joking here only very very slightly).



Re: [dev] [surf] Disable javascript

2012-11-15 Thread Julian Dammann
 I read them, but I suppose I don't remember them...

No.
Not to sound too rude, but this is not the problem here...

Welcome to How to answer almost all your questions about any software without 
wasting other people's time:

1.  Is there a manual? If no goto 2 else 1a
1a. Have you read it? If no read it; goto 1c
1b. Do you remember all of it? If no read/search it; goto 1c
1c. Is the answer to your question in the manual? If no goto 2; else done

2.  Google it. 5min time investment minimum. goto 2a
2a. Found a solution? If no goto 3; else done

3.  You may now start involving other people. Good luck.


Some futher observations: Both 1 and 2 would have solved your problem.
The man page includes information about '-s', and google's first answer to 
suckless surf disable java script is the man page as well, highlighting '-s'.

The reason why I wrote this: instead of taking 5 min of your own time, you just 
went ahead and posted a trivial question to a mailing list of many people (how 
many?), thus wasting, even if only 1 min, of everyone's time.
This is not only rude to others, but this also adds up to a lot more time 
wasted than you would have on your own.

Sorry for wasting the time of those people who follow this algorithm, maybe 
it will save some time in the future though (I don't have much hope for that :( 
)



Re: [dev] [surf] Disable javascript

2012-11-15 Thread 7heo

On 11/15/2012 10:40 AM, Julian Dammann wrote:

I read them, but I suppose I don't remember them...

No.
Not to sound too rude, but this is not the problem here...

Welcome to How to answer almost all your questions about any software without 
wasting other people's time:

1.  Is there a manual? If no goto 2 else 1a
1a. Have you read it? If no read it; goto 1c
1b. Do you remember all of it? If no read/search it; goto 1c
1c. Is the answer to your question in the manual? If no goto 2; else done

2.  Google it. 5min time investment minimum. goto 2a
2a. Found a solution? If no goto 3; else done

3.  You may now start involving other people. Good luck.


Some futher observations: Both 1 and 2 would have solved your problem.
The man page includes information about '-s', and google's first answer to suckless 
surf disable java script is the man page as well, highlighting '-s'.

The reason why I wrote this: instead of taking 5 min of your own time, you just 
went ahead and posted a trivial question to a mailing list of many people (how 
many?), thus wasting, even if only 1 min, of everyone's time.
This is not only rude to others, but this also adds up to a lot more time 
wasted than you would have on your own.

Sorry for wasting the time of those people who follow this algorithm, maybe 
it will save some time in the future though (I don't have much hope for that :( )

While we're talking about the man page [1], it could use a little 
refreshment, as it's not very up to date. Even if the answer to this 
problem is there; I was searching for a way to zoom with surf, and I 
have not found it in the online man.


[1] http://man.suckless.org/surf



Re: [dev] [surf] Disable javascript

2012-11-15 Thread Thuban
Well, you don't know what I did, so don't judge too fast.
I alsa used for a while a kind of noscript in .surf/script.js.

I did read the manual, a long time ago, bit I did. And I'm sure such
mistakes can happen to anyone.

Le 10:40:08 le 15 nov. 2012 , Julian Dammann a écrit :
  I read them, but I suppose I don't remember them...
 
 No.
 Not to sound too rude, but this is not the problem here...
 
 Welcome to How to answer almost all your questions about any software 
 without wasting other people's time:
 
 1.  Is there a manual? If no goto 2 else 1a
 1a. Have you read it? If no read it; goto 1c
 1b. Do you remember all of it? If no read/search it; goto 1c
 1c. Is the answer to your question in the manual? If no goto 2; else done
 
 2.  Google it. 5min time investment minimum. goto 2a
 2a. Found a solution? If no goto 3; else done
 
 3.  You may now start involving other people. Good luck.
 
 
 Some futher observations: Both 1 and 2 would have solved your problem.
 The man page includes information about '-s', and google's first answer to 
 suckless surf disable java script is the man page as well, highlighting 
 '-s'.
 
 The reason why I wrote this: instead of taking 5 min of your own time, you 
 just went ahead and posted a trivial question to a mailing list of many 
 people (how many?), thus wasting, even if only 1 min, of everyone's time.
 This is not only rude to others, but this also adds up to a lot more time 
 wasted than you would have on your own.
 
 Sorry for wasting the time of those people who follow this algorithm, maybe 
 it will save some time in the future though (I don't have much hope for that 
 :( )
 

-- 
 ,--.   Xavier Cartron   ,   /(
: /` )  M2 MEFPCo **}=\\,\(,,  
| `-'   Debian user0--(___(_\\
 \_ jabber : thu...@jabber.fr  / ,)   ,/ ``==



Re: [dev] [surf] Disable javascript

2012-11-15 Thread Nick
Quoth Thuban:
 I alsa used for a while a kind of noscript in .surf/script.js.

Care to share the details? I'd like to be able to disable javascript 
on a per site basis, but have never got around to doing that. Adding 
proper support in surf rather than just script.js would probably be 
better, but I'd be interested to hear what you hacked together.



Re: [dev] [surf] Disable javascript

2012-11-15 Thread Julian Dammann
 Well, you don't know what I did, so don't judge too fast.

I'm stating facts, take away any judgement you feel entitled to.
Fact is: your question was trivial; the answer to your question *was* one man 
surf or web search away.

 I did read the manual, a long time ago, bit I did. And I'm sure such
 mistakes can happen to anyone.

Yes, I have read many man pages, too, and i too am sure that almost anyone 
forgets this stuff eventually.
I'm just saying, instead of making these mistakes you should take a moment to 
consider re-reading man or doing the research yourself, before bothering 
other people.

Also stop making excuses - you asked a trivial question (nothing more, nothing 
*bad* happened - no need for excuses really).
Maybe next time you can avoid making this mistake.

Have a nice day



Re: [dev] [surf] Disable javascript

2012-11-15 Thread Julian Dammann
On 2012/11/15 - 09:49:04 +, Raphael Proust wrote:
 On Thu, Nov 15, 2012 at 9:40 AM, Julian Dammann damma...@googlemail.com 
 wrote:
  I read them, but I suppose I don't remember them...
 
  No.
  Not to sound too rude, but this is not the problem here...
 
 The problem is surf has no GUI with drop-down menus and stuff… If it
 had, then everyone would refer to http://xkcd.com/627/ and the list
 would be more silent.

Yes, everyone refers to this - as we all know ;D
And now I'm off to my student job as support monkey. Have you tried turning it 
off and on again?



Re: [dev] [surf] Disable javascript

2012-11-15 Thread skls
Nick suckless-...@njw.me.uk wrote:

 (...) I'd like to be able to disable javascript 
 on a per site basis, but have never got around to doing that. 
 (...)

Hello,

Sorry, not related to the per site basis :

The handiest way to deal with javascript on surf at the moment
is IMO the toggle patch you put on the wiki,
being able to toggle on the fly is very convenient.

As a side note, I wonder how difficult would it be to create
a generic toggle function for surf which could be called with
any WebKitWebSettings boolean parameter in config.h such as
auto-load-images, enable-scripts and so on ...

It is out of my reach because I don't c
but maybe some more knowledgeable user has a clue about it.
Furthermore, it could save surf a few command line switches,
but I guess that if they're here at the moment
it's because someone use them ...

--

Julien





Re: [dev] [surf] Disable javascript

2012-11-15 Thread Christoph Lohmann
Greetings.

On Thu, 15 Nov 2012 14:11:09 +0100 Raphael Proust raphla...@gmail.com wrote:
 On Thu, Nov 15, 2012 at 9:40 AM, Julian Dammann damma...@googlemail.com 
 wrote:
  I read them, but I suppose I don't remember them...
 
  No.
  Not to sound too rude, but this is not the problem here...
 
 The problem is surf has no GUI with drop-down menus and stuff… If it
 had, then everyone would refer to http://xkcd.com/627/ and the list
 would be more silent.

This bugreport has been marked as:

WONTFIX

Reason: GUI is unrelated to suckless.


Sincerely,

Christoph




Re: [dev] [surf] Disable javascript

2012-11-15 Thread stanio

* s...@alternametz.org [2012-11-15 12:56]:
 As a side note, I wonder how difficult would it be to create
 a generic toggle function for surf which could be called with
 any WebKitWebSettings boolean parameter in config.h such as
 auto-load-images, enable-scripts and so on ...

look for 20120602113939.GA26438 in your mailbox or 
http://permalink.gmane.org/gmane.comp.misc.suckless/9458

--s_



Re: [dev] [surf] Disable javascript

2012-11-15 Thread stanio
* sta...@cs.tu-berlin.de [2012-11-15 14:34]:
 * s...@alternametz.org [2012-11-15 12:56]:
  As a side note, I wonder how difficult would it be to create
  a generic toggle function for surf which could be called with
 
 look for 20120602113939.GA26438 in your mailbox or 
 http://permalink.gmane.org/gmane.comp.misc.suckless/9458

If you use that you might be interested in the following to keep track
of the status. 
http://permalink.gmane.org/gmane.comp.misc.suckless/9461

--s_



Re: [dev] [surf] Disable javascript

2012-11-15 Thread Thuban
No problem. The method is based on a piece of code found on uzbl wiki.

Just paste this in ~/.surf/script.js (see attachement).

The first part of the code is just simple rules towhitelist some
domains. (see examples)

Have a nice day everyone!




Le 10:38:28 le 15 nov. 2012 , Nick a écrit :
 Quoth Thuban:
  I alsa used for a while a kind of noscript in .surf/script.js.
 
 Care to share the details? I'd like to be able to disable javascript 
 on a per site basis, but have never got around to doing that. Adding 
 proper support in surf rather than just script.js would probably be 
 better, but I'd be interested to hear what you hacked together.
 

-- 
 ,--.   Xavier Cartron   ,   /(
: /` )  M2 MEFPCo **}=\\,\(,,  
| `-'   Debian user0--(___(_\\
 \_ jabber : thu...@jabber.fr  / ,)   ,/ ``==


noscript.js
Description: application/javascript


Re: [dev] [surf] Disable javascript

2012-11-15 Thread Nick
On Thu, Nov 15, 2012 at 03:29:45PM +0100, Christoph Lohmann wrote:
 Thanks for the patches. Toggle, insert and the status area patch are now
 in surf tip. And they are documented in the manpage too.

Insert mode? Since when did surf become modal? Why is this needed
(except for people who like to pretend they're using vim)?

In my experience modality in a web browser seems neat for the first
day or two, then becomes really annoying, as you have to keep track
of which mode you're in, keep accidentally toggling stuff rather
than typing into text fields, etc.



Re: [dev] [surf] Disable javascript

2012-11-15 Thread stanio
* Nick suckless-...@njw.me.uk [2012-11-15 15:47]:
 Insert mode? Since when did surf become modal? Why is this needed
 (except for people who like to pretend they're using vim)?

I agree, insert mode is quite special and maybe is worth having it as a
patch rather than in mainline surf. It makes character handling less
readable. 

If you want it, you will know that and will know how to get it working. 

cheers
--s_



Re: [dev] [surf] Disable javascript

2012-11-14 Thread Thuban
How could I have missed this?

Thank you

Le 09:56:34 le 12 nov. 2012 , Nick a écrit :
  Do you have any method to disable completely javascript in surf (I mean
  always, not by a per-site rule)?
 
 surf -s
 

-- 
 ,--.   Xavier Cartron   ,   /(
: /` )  M2 MEFPCo **}=\\,\(,,  
| `-'   Debian user0--(___(_\\
 \_ jabber : thu...@jabber.fr  / ,)   ,/ ``==



Re: [dev] [surf] Disable javascript

2012-11-14 Thread Christoph Lohmann
Greetings.

On Wed, 14 Nov 2012 20:59:12 +0100 Thuban thu...@singularity.fr wrote:
 How could I have missed this?

Because you never read manpages.


Sincerely,

Christoph Lohmann




Re: [dev] [surf] Disable javascript

2012-11-14 Thread Thuban
I read them, but I suppose I don't remember them...

Le 20:59:12 le 14 nov. 2012 , Christoph Lohmann a écrit :
 Greetings.
 
 On Wed, 14 Nov 2012 20:59:12 +0100 Thuban thu...@singularity.fr wrote:
  How could I have missed this?
 
 Because you never read manpages.
 
 
 Sincerely,
 
 Christoph Lohmann
 
 

-- 
 ,--.   Xavier Cartron   ,   /(
: /` )  M2 MEFPCo **}=\\,\(,,  
| `-'   Debian user0--(___(_\\
 \_ jabber : thu...@jabber.fr  / ,)   ,/ ``==



[dev] [surf] Disable javascript

2012-11-12 Thread Thuban
Hello,
Do you have any method to disable completely javascript in surf (I mean
always, not by a per-site rule)?

Thanks

-- 
 ,--.   Xavier Cartron   ,   /(
: /` )  M2 MEFPCo **}=\\,\(,,  
| `-'   Debian user0--(___(_\\
 \_ jabber : thu...@jabber.fr  / ,)   ,/ ``==



Re: [dev] [surf] Disable javascript

2012-11-12 Thread Nick
 Do you have any method to disable completely javascript in surf (I mean
 always, not by a per-site rule)?

surf -s