You are not logged in.

#201 2011-02-20 21:52:12

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

The download issue is fixed with revision 286.

Offline

#202 2011-02-20 22:01:04

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

@portix -- I think you should keep things like mouse-gestures as userscripts...let's keep your browser as light as possible! KISS while still retaining important browsing functionality. A fine line to walk, and very user dependent, unfortunately smile

Scott

Offline

#203 2011-02-20 23:34:38

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

firecat53 wrote:

@portix -- I think you should keep things like mouse-gestures as userscripts...let's keep your browser as light as possible! KISS while still retaining important browsing functionality. A fine line to walk, and very user dependent, unfortunately smile

I still haven't decided yet, but i tend to not install it to  the systemscripts-directory.  But anyway, i have put it in the repo, it is located in $srcdir/data, i maybe move it to $srcdir/examples if i decide against the script. Currently there are only 4 gestures:

  • right->left navigates back in history

  • left->right  navigates forward

  • top->bottom reloads the page

  • bottom->top opens a new tab

All gestures are initiated by pressing the middle mousebutton. The autoscroll function is initiated by clicking  the middle mouse button.
I also uploaded a new snapshot release of the current revision.

Offline

#204 2011-02-21 18:09:42

cbrunos
Member
Registered: 2010-07-22
Posts: 55

Re: dwb - a webkit web browser

portix wrote:

@cbrunos: I have no costs for this project at the moment, so no. Btw. i don't know if you have noticed it, but i added an option background-tabs.

Ok.

Yeah I saw that middle-click now opens background tabs and that's really great BUT it doesn't work on google sites (notably google reader). Can you de something about it?


Xmonad gets sh*t done. Fast.

Offline

#205 2011-02-21 22:14:15

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

cbrunos wrote:

Yeah I saw that middle-click now opens background tabs and that's really great BUT it doesn't work on google sites (notably google reader). Can you de something about it?

Fixed, check the latest revision. Now only tabs opened by javascript with the left mouse button are opened in foreground, but i think this is the behaviour of most browsers.

Offline

#206 2011-02-21 22:23:55

cbrunos
Member
Registered: 2010-07-22
Posts: 55

Re: dwb - a webkit web browser

Dude you rock! Now I'm using dwb 80% of the time. Do you plan to add a" search in google" entry in the right click menu? For example you select a word, right click -> search in google.

I'm aware I'm asking a lot but I love dwb and since I can't code and you don't accept donations the least I can do is give my opinion big_smile

Last edited by cbrunos (2011-02-21 22:26:26)


Xmonad gets sh*t done. Fast.

Offline

#207 2011-02-21 22:32:38

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

There is already such a function, i haven't documented it yet. Holding down the left button and then pressing the right button will use your default searchengine to search for the selected text unless it is a valid url, then it will just be loaded. Pressing the middle button will search in your default searchengine in a new tab.

Offline

#208 2011-02-21 22:54:28

cbrunos
Member
Registered: 2010-07-22
Posts: 55

Re: dwb - a webkit web browser

Dude....words fail me.

Will you marry me? big_smile

I really wish you accept donations sometimes soon. I won't be able to give much but I'd really like to.


Xmonad gets sh*t done. Fast.

Offline

#209 2011-03-01 19:38:41

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

I made some major modifications in the latest revision:

  • The content blocker is removed because it couldn't detect scripts in a body of a html-page, so this was nearly useless.

  • The plugin blocker is removed.

  • Instead, is is possible to disable scripts completely (the property "enable-scripts")  but leave the systemscripts (hints, adding searchengines and following selected links) working. When scripts are disabled most javascript-userscripts won't work, since functions like addEventListener or the onkeypress property will be ignored, but all bookmarklets should work.

  • There are four new commands, the default shortcuts are a bit long and may be changed later:

    • toggle_scripts_uri ('tsu'): Allow scripts permanently for the current url

    • toggle_scripts_host ('tsh'): Same, but for current host.

    • toggle_scripts_uri_tmp ('ttu'): Allow scripts just for this Session and the current url

    • toggle_script_host_tmp ('tth'): Same for current host.

    If scripts are disabled, the status is indicated in the status bar, where [S] indicates that scripts are blocked for the site.

I started a hinting branch that creates hints without javascript but it seems that the the dom-api of webkit is nearly totally unusable in the current state. Doing the same things with javascript was a lot faster, up to 50 times on my machine, so i will stay with javascript.

Edit: There are some more commands i forgot to mention: 'go' sets the url in the addressbar, 'gO' sets the url in the addressbar and opens in a new tab, 'wO' opens in a new window.

Last edited by portix (2011-03-01 19:53:30)

Offline

#210 2011-03-01 19:58:51

PGMario
Member
Registered: 2010-12-14
Posts: 5

Re: dwb - a webkit web browser

cbrunos wrote:

Concerning the adblock, I downloaded privoxy-adblocker from the AUR which converts adblock+ easylist into a privoxy compatible adblock list which works fine with dwb ^^ most of the ads I had previously are now gone.

Could you elaborate on that? I only found “privoxy-blocklist” in the aur, installed it and copied the resulting easylist.script.filter as a file called “adblock” into ~/.config/dwb/, but it doesn’t work. Thanks!

Offline

#211 2011-03-01 20:06:06

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

I cannot say anything about  the privoxy-filterlist, but you also have to enable the adblocker, the property "adblocker", it is not enabled by default.

Offline

#212 2011-03-01 20:15:45

PGMario
Member
Registered: 2010-12-14
Posts: 5

Re: dwb - a webkit web browser

Thanks for the quick answer, but I had that enabled (I probably should have mentioned that). My regex skills are very limited, but I will look into writing a script. It would only be a shame if the work had already been done by someone else.

Offline

#213 2011-03-03 09:29:40

cbrunos
Member
Registered: 2010-07-22
Posts: 55

Re: dwb - a webkit web browser

PGMario wrote:
cbrunos wrote:

Concerning the adblock, I downloaded privoxy-adblocker from the AUR which converts adblock+ easylist into a privoxy compatible adblock list which works fine with dwb ^^ most of the ads I had previously are now gone.

Could you elaborate on that? I only found “privoxy-blocklist” in the aur, installed it and copied the resulting easylist.script.filter as a file called “adblock” into ~/.config/dwb/, but it doesn’t work. Thanks!

Yes you're right, privoxy-blocklist, not adblocker (silly me). I then just used it to convert my adblock list and copied it to  ~/.config/dwb/ like you did. Works for me (but now that you mention it, there are however some few sites where it doesn't work, but ads do get blocked in firefox with the same list…)


Xmonad gets sh*t done. Fast.

Offline

#214 2011-03-03 09:55:51

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

cbrunos wrote:

Works for me (but now that you mention it, there are however some few sites where it doesn't work, but ads do get blocked in firefox with the same list…)

I don't know what privoxy-blocklist does, but adblock-plus has a different syntax and firefox's adblock-plus is much more powerful. Adblock plus also has rules to hide elements and dwb only blocks request-urls. I'm currently working on a better adblock implementation that uses the same syntax as firefox's adblock-plus with some more features than the existing, but firstly i will not implement element hiding rules.

Offline

#215 2011-03-04 08:05:11

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: dwb - a webkit web browser

Nice browser portix: thanks for the work you have put in.

I have two (minor or cosmetic) annoyances - otherwise, it is all good smile

1. I would like to be able to remove the active_hinting - the (default) yellowish background that covers the entire link and just have the small bordered number/letter. I have tried various settings and hacking in hints.js - but still it remains...

2. (Relatedly) Is it possible to remove all the bold fonts? Again, I have tried various settings - but the page titles, URL bar and percentage remain bold.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#216 2011-03-04 09:57:14

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

Disabling the hint-color can be done by simply putting a return at the beginning of createStylesheet in hints.js. But it can also be done with a custom stylesheet. Just put

[dwb_highlight] {
  background: transparent !important;
}

in your stylesheet-file. Note that if your stylesheetfile is a local file your user-stylesheet-uri must begin with "file://".

Currently it is not possible to set the font weight to normal but i already thought about switching to a css-style font description, this would make it possible. It should be done with one of the next revisions.

Offline

#217 2011-03-04 17:32:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: dwb - a webkit web browser

Thank you: I should have thought of the first, and the second would be appreciated.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#218 2011-03-09 13:14:36

Andertxu
Member
Registered: 2009-11-26
Posts: 22

Re: dwb - a webkit web browser

Anyone knows how to change DWB's default font family to "Terminus" instead of Sans ?

Offline

#219 2011-03-09 13:54:43

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

There are six webkit builtin settings for fonts, "default-font-family", "monospace-font-family", "cursive-font-family", "sans-serif-font-family",  "serif-font-family" and "fantasy-font-family", setting all these fonts to terminus would work on most sites, however, on some sites this will be overridden by the  sites css-rules. If you want terminus on all sites and all elements, you can define a customn css-rule in your stylesheet file

* { 
    font-family: terminus !important; 
}

If you use a stlyesheet file, you must set the property "user-stylesheet-uri" to "file:///pathtoyourstylesheetfile".
All settings can be changed from commandline, the default keybinding is "sgs" or from a webinterface, "Sgs".

Offline

#220 2011-03-09 15:17:47

Andertxu
Member
Registered: 2009-11-26
Posts: 22

Re: dwb - a webkit web browser

It does not work . Never mind tongue tongue .
I have another question:
How do I can change form colors ?
(Fonts and background )
Sorry, I forgot it . Also,  DWM does not store passwords when I log in on Arch Linux Forums . :S :S .

Last edited by Andertxu (2011-03-09 15:39:01)

Offline

#221 2011-03-09 16:18:40

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: dwb - a webkit web browser

@Andertxu - after you logon to a site, hit CC to allow and store the cookies for that site.

Scott

Offline

#222 2011-03-09 19:14:34

Andertxu
Member
Registered: 2009-11-26
Posts: 22

Re: dwb - a webkit web browser

Wow, thanks , it works perfect now big_smile big_smile big_smile .
No need for Chromium now smile smile .
But , sadly, I cant set up Terminus fonts . (They are very common on minimal desktops )

Last edited by Andertxu (2011-03-09 20:09:35)

Offline

#223 2011-03-09 20:41:31

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

Modifiying the webkit-builtin font settings has no effect on most pages but at least defining a custom stylesheet should work. Your user-stylesheet-uri must begin with "file:///", otherwise it will be ignored.
There is also a font setting that will be used for the ui, called "font". You can use a css-like font definition like "terminus 10 italic".

Offline

#224 2011-03-09 20:53:44

Andertxu
Member
Registered: 2009-11-26
Posts: 22

Re: dwb - a webkit web browser

my dwb "settings" file in ~/.config/dwb :

http://pastebin.com/EgTzCz7a

As you can see , my  "user-stylesheet-uri" option points to "style" css file :
cat /home/ander/.config/dwb/style
* {
    font-family: terminus !important;
}
Maybe is Terminus instead of "terminus", IDK :S :S :S .
Damn XFT naming convention ...

BTW, and finally , dwb resets all custom config on startup . :S :S .

Last edited by Andertxu (2011-03-09 22:00:48)

Offline

#225 2011-03-10 11:09:49

portix
Member
Registered: 2009-01-13
Posts: 757

Re: dwb - a webkit web browser

I think there is a typo in your user-stylesheet-uri, just change it from file:///home/ander/.dwb/config/style to file:///home/ander/.config/dwb/style.

Last edited by portix (2011-03-10 11:10:10)

Offline

Board footer

Powered by FluxBB