]> Skullheadx's Git Forge - surf.git/log
surf.git
5 weeks agoupdate config surf-webkit2
Skullheadx [Mon, 4 May 2026 22:27:19 +0000 (18:27 -0400)]
update config

5 weeks agorename shell script to surf_search
Skullheadx [Mon, 4 May 2026 22:24:34 +0000 (18:24 -0400)]
rename shell script to surf_search

5 weeks agoupdate config.def.h
Skullheadx [Mon, 4 May 2026 22:23:51 +0000 (18:23 -0400)]
update config.def.h

5 weeks agouse C+/ for find
Skullheadx [Wed, 29 Apr 2026 05:38:52 +0000 (01:38 -0400)]
use C+/ for find

5 weeks agoadd inspector
Skullheadx [Wed, 29 Apr 2026 05:14:19 +0000 (01:14 -0400)]
add inspector

5 weeks agopatch to avoid writing to readonly nix store script.js file
Skullheadx [Wed, 29 Apr 2026 04:55:44 +0000 (00:55 -0400)]
patch to avoid writing to readonly nix store script.js file

5 weeks agobmarks and hist
Skullheadx [Wed, 29 Apr 2026 04:19:08 +0000 (00:19 -0400)]
bmarks and hist

5 weeks agodns prefetch en
Skullheadx [Wed, 29 Apr 2026 02:50:09 +0000 (22:50 -0400)]
dns prefetch en

5 weeks agouse correct dirs
Skullheadx [Wed, 29 Apr 2026 02:47:59 +0000 (22:47 -0400)]
use correct dirs

5 weeks agoflake
Skullheadx [Wed, 29 Apr 2026 01:45:38 +0000 (21:45 -0400)]
flake

13 months agoFix (2) some typo for kiosk mode in the man-page
Quentin Rameau [Sat, 19 Apr 2025 10:01:31 +0000 (12:01 +0200)]
Fix (2) some typo for kiosk mode in the man-page

Looks like I didn't pay enough attention the first time,
that's what you get for pushing without review!

Thanks to Hiltjo for spotting this!

13 months agoAdd configuration option for PDF-JS-viewer
Quentin Rameau [Fri, 18 Apr 2025 11:56:14 +0000 (13:56 +0200)]
Add configuration option for PDF-JS-viewer

13 months agoSupport PDFs
Artyom Bologov [Sat, 14 Sep 2024 00:52:49 +0000 (04:52 +0400)]
Support PDFs

17 months agoFix some typo for kiosk mode in the man-page
Quentin Rameau [Mon, 26 Aug 2024 16:21:24 +0000 (18:21 +0200)]
Fix some typo for kiosk mode in the man-page

Thanks to Tim Dickson <dickson.tim@googlemail.com> for spotting it!

17 months agoBuild against Webkit 4.1
Quentin Rameau [Sat, 18 Nov 2023 11:38:09 +0000 (12:38 +0100)]
Build against Webkit 4.1

Seems that this is needed for libsoup3.

17 months agoRequest HTTPS by default instead of HTTP
Quentin Rameau [Sun, 5 Jan 2025 11:01:37 +0000 (12:01 +0100)]
Request HTTPS by default instead of HTTP

This might be more reasonable privacy-wise in 2025.

2 years agowebext: Process full messages
Quentin Rameau [Sun, 24 Mar 2024 14:24:22 +0000 (15:24 +0100)]
webext: Process full messages

Piped messages would not always be fully sent in a single read.
Do a bit of message reassembly.

2 years agowebext: Free JavaScript objects
Quentin Rameau [Sun, 24 Mar 2024 14:21:59 +0000 (15:21 +0100)]
webext: Free JavaScript objects

Webkit documentation says JavaScript objects refcount is always
increased, and has to be released always.

2 years agoFix message sizes for web extension communication
Quentin Rameau [Sun, 17 Mar 2024 07:06:01 +0000 (08:06 +0100)]
Fix message sizes for web extension communication

2 years agowebext: Remove unused functions
Quentin Rameau [Sun, 17 Mar 2024 06:59:30 +0000 (07:59 +0100)]
webext: Remove unused functions

Communication from web extension to surf isn't used,
this code can always be brought back if needed.

2 years agoUpdate get frame name function
Quentin Rameau [Sun, 17 Mar 2024 06:48:56 +0000 (07:48 +0100)]
Update get frame name function

webkit_navigation_policy_decision_get_frame_name has been deprecated
since 2.40.

2 years agoRemove setting processing model
Quentin Rameau [Sun, 17 Mar 2024 06:39:00 +0000 (07:39 +0100)]
Remove setting processing model

The processing model we want is actually the only one supported
since 2.40.

2 years agoUpdate deprecated JavaScript eval function
Quentin Rameau [Sun, 17 Mar 2024 06:22:05 +0000 (07:22 +0100)]
Update deprecated JavaScript eval function

Function webkit_web_view_run_javascript has been deprecated since 2.40.

2 years agoMove TLS parameters handling to datamanager
Quentin Rameau [Sun, 17 Mar 2024 06:14:37 +0000 (07:14 +0100)]
Move TLS parameters handling to datamanager

Using web context is deprecated since 2.32.

2 years agoRemove Java support toggle
Quentin Rameau [Sun, 17 Mar 2024 05:47:51 +0000 (06:47 +0100)]
Remove Java support toggle

This has been deprecated since 2.38.

2 years agoRemove frame flattening toggle
Quentin Rameau [Sun, 17 Mar 2024 05:40:28 +0000 (06:40 +0100)]
Remove frame flattening toggle

This has been deprecated since 2.38.

2 years agoAdd webkit URI scheme
Quentin Rameau [Sun, 17 Mar 2024 07:15:39 +0000 (08:15 +0100)]
Add webkit URI scheme

2 years agoFix usage message: -Pp don't exist anymore
Quentin Rameau [Sat, 18 Nov 2023 11:40:11 +0000 (12:40 +0100)]
Fix usage message: -Pp don't exist anymore

Thanks to Eric Pruitt <eric.pruitt@gmail.com> for reporting!

3 years agowebext: add missing gio/gunixfdlist.h includes
Petr Vaněk [Fri, 21 Oct 2022 14:36:14 +0000 (16:36 +0200)]
webext: add missing gio/gunixfdlist.h includes

This resolves two set of warnings pointed by compiler
-Wimplicit-function-declaration and -Wint-conversion, where the later
one can result with segfault caused by invalid cast from int to pointer.

Fixes: 665a709b522a ("webext: Exchange fd over webkit messages")
3 years agowebext: Exchange fd over webkit messages
Quentin Rameau [Sun, 16 Oct 2022 15:39:05 +0000 (17:39 +0200)]
webext: Exchange fd over webkit messages

This is more complex, but webkit2gtk prevents passing file descriptors
to processes in 2.38.0.

4 years agoDo not reload page when toggling dark mode
Quentin Rameau [Wed, 4 May 2022 01:30:30 +0000 (03:30 +0200)]
Do not reload page when toggling dark mode

This change had actually been applied in previous commit d3ee652
by mistake.

4 years agoFix dark mode parameter application
Quentin Rameau [Sun, 10 Apr 2022 16:44:28 +0000 (18:44 +0200)]
Fix dark mode parameter application

4 years agoOnly get webkit context and settings once
Quentin Rameau [Sun, 10 Apr 2022 16:43:45 +0000 (18:43 +0200)]
Only get webkit context and settings once

4 years agoAdd dark mode toggle
Quentin Rameau [Sun, 10 Apr 2022 14:35:24 +0000 (16:35 +0200)]
Add dark mode toggle

This sets dark gtk theme variant,
which should make webkit2gtk use dark css variant
from websites that provide it.

4 years agoImprove non-ASCII character search handling
Quentin Rameau [Mon, 19 Jul 2021 19:23:32 +0000 (21:23 +0200)]
Improve non-ASCII character search handling

Before, the XA_STRING would only let use ASCII characters properly.
Now UTF-8 characters should be handled correctly.

4 years agoImprove SETPROP xprop parsing
Quentin Rameau [Thu, 1 Jul 2021 21:40:39 +0000 (23:40 +0200)]
Improve SETPROP xprop parsing

This handles correctly quotes, backslashes, etc.

5 years agoFix togglestats array
Quentin Rameau [Thu, 20 May 2021 22:16:17 +0000 (00:16 +0200)]
Fix togglestats array

5 years agoUpdate LICENSE file
Quentin Rameau [Sun, 9 May 2021 22:44:36 +0000 (00:44 +0200)]
Update LICENSE file

5 years agoFix distfile generation
Quentin Rameau [Sun, 9 May 2021 22:34:21 +0000 (00:34 +0200)]
Fix distfile generation

5 years agoBump version to 2.1
Quentin Rameau [Sat, 8 May 2021 14:53:37 +0000 (16:53 +0200)]
Bump version to 2.1

5 years agoRemove accelerated canvas parameter
Quentin Rameau [Fri, 30 Apr 2021 06:48:19 +0000 (08:48 +0200)]
Remove accelerated canvas parameter

This has been deprecated since release 2.32.

5 years agoRemove external plugin handling
Quentin Rameau [Fri, 30 Apr 2021 06:39:34 +0000 (08:39 +0200)]
Remove external plugin handling

This has been deprecated since release 2.32.

5 years agoMakefile: use explicit targets
Quentin Rameau [Sat, 7 Nov 2020 17:43:11 +0000 (18:43 +0100)]
Makefile: use explicit targets

Some make implementation have trouble with following inference rules
indirection

5 years agowebext: Fix missing flags for gio
Quentin Rameau [Sat, 7 Nov 2020 14:31:55 +0000 (15:31 +0100)]
webext: Fix missing flags for gio

5 years agoSimplify communication with webext
Quentin Rameau [Sat, 2 May 2020 13:50:50 +0000 (15:50 +0200)]
Simplify communication with webext

5 years agoSet title on committed load
Quentin Rameau [Wed, 27 Nov 2019 00:17:55 +0000 (01:17 +0100)]
Set title on committed load

5 years agoCommunicate through a Unix socket instead of a pipe pair
Quentin Rameau [Sat, 7 Sep 2019 11:20:09 +0000 (13:20 +0200)]
Communicate through a Unix socket instead of a pipe pair

5 years agoAdd support for ephemeral (zero disk access)
Quentin Rameau [Mon, 8 Oct 2018 09:37:11 +0000 (11:37 +0200)]
Add support for ephemeral (zero disk access)

5 years agoAdd support for configuring plugins directories
Quentin Rameau [Mon, 4 Mar 2019 10:43:25 +0000 (11:43 +0100)]
Add support for configuring plugins directories

5 years agoRemove common
Quentin Rameau [Tue, 19 Feb 2019 04:33:04 +0000 (05:33 +0100)]
Remove common

7 years agoMakefile: rework how webextensions are handled
Quentin Rameau [Sun, 10 Feb 2019 18:48:59 +0000 (19:48 +0100)]
Makefile: rework how webextensions are handled

7 years agoFix vertical scroll directions in the config file
efe [Fri, 8 Feb 2019 22:56:26 +0000 (17:56 -0500)]
Fix vertical scroll directions in the config file

7 years agoMakefile: fix a typo in clean: target
Leonardo Taccari [Thu, 7 Feb 2019 20:22:48 +0000 (21:22 +0100)]
Makefile: fix a typo in clean: target

7 years agoMakefile: include common to webext
Quentin Rameau [Wed, 6 Feb 2019 09:27:01 +0000 (10:27 +0100)]
Makefile: include common to webext

7 years agoMakefile: fix a typo for the webext CFLAGS
Quentin Rameau [Wed, 6 Feb 2019 09:22:15 +0000 (10:22 +0100)]
Makefile: fix a typo for the webext CFLAGS

Thanks to Justin Keogh <suckless@v6y.net> for spotting this

7 years agoSend message size inside messages through pipes
Quentin Rameau [Tue, 9 Oct 2018 10:27:59 +0000 (12:27 +0200)]
Send message size inside messages through pipes

7 years agoUse pkg-config for X11{INC,LIB}
Leonardo Taccari [Tue, 9 Oct 2018 19:30:52 +0000 (21:30 +0200)]
Use pkg-config for X11{INC,LIB}

7 years agoMakefile: fix dependencies
Quentin Rameau [Tue, 9 Oct 2018 10:26:32 +0000 (12:26 +0200)]
Makefile: fix dependencies

7 years agoFix, again, webext directory in Makefile
Quentin Rameau [Mon, 8 Oct 2018 12:23:51 +0000 (14:23 +0200)]
Fix, again, webext directory in Makefile

7 years agoFix webext directory in Makefile
Quentin Rameau [Mon, 8 Oct 2018 12:11:24 +0000 (14:11 +0200)]
Fix webext directory in Makefile

7 years agoRemove libtool depencency, reorganise Makefile
Quentin Rameau [Mon, 8 Oct 2018 11:47:25 +0000 (13:47 +0200)]
Remove libtool depencency, reorganise Makefile

We don't need libtool anymore, just build the library directly.
This lets us simplify the Makefile too.

7 years agoUnobfuscate Makefile
Quentin Rameau [Mon, 8 Oct 2018 10:34:47 +0000 (12:34 +0200)]
Unobfuscate Makefile

7 years agoext: get the right DOM on msg
Quentin Rameau [Mon, 12 Jun 2017 16:19:58 +0000 (18:19 +0200)]
ext: get the right DOM on msg

When navigating history, the document-loaded signal isn't triggered and
we can't directly get back the previous webview, so we have no other
choice than to look it up everytime a new message is received.

7 years agoAdd a file for shared functions
Quentin Rameau [Mon, 4 Jan 2016 15:09:12 +0000 (16:09 +0100)]
Add a file for shared functions

New common.[hc] files where shared functions between surf and
webkitextension will be put. First addition is die().

7 years agoCommunicate with webextension via a pipe
Quentin Rameau [Mon, 7 Dec 2015 14:50:00 +0000 (15:50 +0100)]
Communicate with webextension via a pipe

7 years agoext: first commit for surf lib
Quentin Rameau [Mon, 23 Nov 2015 21:12:00 +0000 (22:12 +0100)]
ext: first commit for surf lib

7 years agoRequest cookiemanager only once at creation
Quentin Rameau [Sun, 25 Mar 2018 10:07:41 +0000 (12:07 +0200)]
Request cookiemanager only once at creation

7 years agoExit more gracefully on web process crash.
Quentin Rameau [Fri, 16 Mar 2018 11:44:04 +0000 (12:44 +0100)]
Exit more gracefully on web process crash.

7 years agoAllow tilde expansion in loaduri
nzl [Wed, 14 Mar 2018 19:46:52 +0000 (03:46 +0800)]
Allow tilde expansion in loaduri

also fixed a bug that ~foo/ was expanded to /home/fo/o/

7 years agoFixed wording in FAQ.md
Eddie Thieda [Mon, 18 Jun 2018 10:13:16 +0000 (06:13 -0400)]
Fixed wording in FAQ.md

8 years agoForce printing the winid when requested
Quentin Rameau [Sat, 9 Jun 2018 19:53:04 +0000 (21:53 +0200)]
Force printing the winid when requested

Do not wait for the libc to decide flushing buffers, force it ourselves.

Thanks to koniu for reporting the issue.

8 years agoDocument SIGHUP in manpage
Jochen Sprickerhof [Thu, 16 Nov 2017 22:18:05 +0000 (23:18 +0100)]
Document SIGHUP in manpage

8 years agoScript text shouldn't go through formatted conversion
nzl [Wed, 21 Feb 2018 19:26:06 +0000 (03:26 +0800)]
Script text shouldn't go through formatted conversion

8 years agoAdd support for WebGL
Eon S. Jeon [Fri, 29 Sep 2017 15:34:35 +0000 (00:34 +0900)]
Add support for WebGL

Allows enabling and disabling WebGL support built into WebKit.
The feature is turned off by default.

9 years agoDisable media autoplay by default
Quentin Rameau [Sat, 3 Jun 2017 08:20:50 +0000 (10:20 +0200)]
Disable media autoplay by default

9 years agoStore modified parameters list
Quentin Rameau [Sun, 21 May 2017 20:53:56 +0000 (22:53 +0200)]
Store modified parameters list

9 years agoUse priority values instead of “forced” parameters
Quentin Rameau [Sun, 21 May 2017 11:41:56 +0000 (13:41 +0200)]
Use priority values instead of “forced” parameters

This makes parameter handling a bit easier and lets the user override
parameters as he sees fit.

9 years agoGet rid of config parameter MACROs
Quentin Rameau [Sat, 20 May 2017 17:21:41 +0000 (19:21 +0200)]
Get rid of config parameter MACROs

There's no need to obfuscate so much what is done, the user can deal
with a few extra knobs to set instead.

9 years agoGet rid of integer member b in Arg
Quentin Rameau [Sat, 20 May 2017 15:04:49 +0000 (17:04 +0200)]
Get rid of integer member b in Arg

There's no need to keep another integer member there, use directly the i
integer one.

9 years agoOnly apply parameters when needed
Quentin Rameau [Thu, 18 May 2017 23:10:30 +0000 (01:10 +0200)]
Only apply parameters when needed

Specify which parameter should be applied on which load state.

9 years agoFix handling of uri-specific parameters
Quentin Rameau [Thu, 18 May 2017 10:33:28 +0000 (12:33 +0200)]
Fix handling of uri-specific parameters

We need to (re)apply uri-specific parameters for each new uri even if
the parameter has already been set to get the correct value.

Thanks to Julien STEINHAUSER <julien.steinhauser@orange.fr> for the
report!

9 years agoUnset previous user styles before applying another one
Quentin Rameau [Thu, 18 May 2017 14:42:59 +0000 (16:42 +0200)]
Unset previous user styles before applying another one

9 years agoAdd config option for cross requests from file URLs
Constantine Bytensky [Thu, 18 May 2017 11:46:49 +0000 (14:46 +0300)]
Add config option for cross requests from file URLs

I use it to open local .xml files with .xsl style-sheets.

9 years agoAdd config option for microphone and webcam access
Quentin Rameau [Thu, 18 May 2017 09:20:07 +0000 (11:20 +0200)]
Add config option for microphone and webcam access

9 years agoFix synchronization issue with atoms
Quentin Rameau [Thu, 11 May 2017 22:28:24 +0000 (00:28 +0200)]
Fix synchronization issue with atoms

Be sure to sync after setting an atom.
Sync too before reading one.

9 years agoThere's no need to call geturi() again in loadchanged
Quentin Rameau [Thu, 11 May 2017 22:03:57 +0000 (00:03 +0200)]
There's no need to call geturi() again in loadchanged

Also call the variable “uri” instead of “title” which was ambiguous
regarding what it is.

9 years agoAdd config option for smooth scrolling activation
Quentin Rameau [Thu, 11 May 2017 13:33:42 +0000 (15:33 +0200)]
Add config option for smooth scrolling activation

9 years agoAdd config option for Java activation
Quentin Rameau [Thu, 11 May 2017 13:27:27 +0000 (15:27 +0200)]
Add config option for Java activation

9 years agoAdd config option for setting default charset.
Quentin Rameau [Thu, 11 May 2017 13:23:22 +0000 (15:23 +0200)]
Add config option for setting default charset.

This will be used for pages with no specified charset.

9 years agoImprove parameters handling
Quentin Rameau [Tue, 9 May 2017 12:45:24 +0000 (14:45 +0200)]
Improve parameters handling

There's no need to reload all parameters each time a new url is loaded,
instead set only custom parameters and restore those to defaults when
needed.

9 years agoChange PROMPT_GO from "URL:" to "Go:"
ssd [Wed, 10 May 2017 22:55:29 +0000 (00:55 +0200)]
Change PROMPT_GO from "URL:" to "Go:"

This looks more apropriate because URL is too specific and _SURF_GO can
be set to other things.

9 years agoAdd prompts for SETPROP
Quentin Rameau [Mon, 8 May 2017 09:22:34 +0000 (11:22 +0200)]
Add prompts for SETPROP

Imported from __20h__ repo, thanks to him and Ben Woolley.

9 years agoEmbed dmenu into the surf window by default
Quentin Rameau [Mon, 8 May 2017 08:20:28 +0000 (10:20 +0200)]
Embed dmenu into the surf window by default

9 years agoSimplify DOWNLOAD macro
Quentin Rameau [Thu, 4 May 2017 16:24:33 +0000 (18:24 +0200)]
Simplify DOWNLOAD macro

No need to spawn an extra sh.
Use short flags for curl and quote operands.
Replace sleep with read, let the user close the download window instead
of waiting for an arbitrary time.
Rename d to reflect what it's used for.
Reorder sh positional arguments.
Set $0 to a command name and shift other positional parameters to
clarify the "sh -c" command.

9 years agoSimplify SETPROP macro
Quentin Rameau [Thu, 4 May 2017 14:49:17 +0000 (16:49 +0200)]
Simplify SETPROP macro

Get rid of xargs by using a subshell instead.
Use two replacement commands in sed because back-references in BRE are
too differently implemented in different libc.
Rename p, q, to reflect what they're used for.
Reorder sh positional arguments.
Set $0 to a command name and shift other positional parameters to
clarify the "sh -c" command.

9 years agoSimplify usage()
Quentin Rameau [Thu, 4 May 2017 08:22:29 +0000 (10:22 +0200)]
Simplify usage()

There's no real need for using the real executable call name, especially
with basename requiring special care.

9 years agoSimplify version message
Quentin Rameau [Tue, 2 May 2017 16:53:01 +0000 (18:53 +0200)]
Simplify version message

9 years agoUse Ctrl-t for showcert instead of Ctrl-x
Ivan Tham [Tue, 2 May 2017 15:10:32 +0000 (23:10 +0800)]
Use Ctrl-t for showcert instead of Ctrl-x

9 years agoCleanup and fix formatage issues in surf.1
Quentin Rameau [Sun, 30 Apr 2017 23:09:52 +0000 (01:09 +0200)]
Cleanup and fix formatage issues in surf.1

9 years agoFix forgotten options in surf.1
Quentin Rameau [Sun, 30 Apr 2017 23:08:27 +0000 (01:08 +0200)]
Fix forgotten options in surf.1