Commit Graph

572 Commits

Author SHA1 Message Date
Quentin Rameau
6850365d7c Add support for configuring plugins directories 2020-11-01 16:59:12 +01:00
Quentin Rameau
8d5e2b3a40 Remove common 2020-11-01 16:59:11 +01:00
Quentin Rameau
21fcbc004e Makefile: rework how webextensions are handled 2019-02-10 19:50:25 +01:00
efe
d068a3878b Fix vertical scroll directions in the config file 2019-02-09 00:25:39 +01:00
Leonardo Taccari
bf46e40f3a Makefile: fix a typo in clean: target 2019-02-07 21:28:15 +01:00
Quentin Rameau
890b2fc396 Makefile: include common to webext 2019-02-06 10:53:05 +01:00
Quentin Rameau
b9cd3bb0bc Makefile: fix a typo for the webext CFLAGS
Thanks to Justin Keogh <suckless@v6y.net> for spotting this
2019-02-06 10:22:15 +01:00
Quentin Rameau
02541c3146 Send message size inside messages through pipes 2018-10-15 13:15:54 +02:00
Leonardo Taccari
2b71a22755 Use pkg-config for X11{INC,LIB} 2018-10-09 21:50:20 +02:00
Quentin Rameau
16beb6f8ac Makefile: fix dependencies 2018-10-09 12:41:00 +02:00
Quentin Rameau
4e7371317c Fix, again, webext directory in Makefile 2018-10-08 14:25:37 +02:00
Quentin Rameau
47e39851ca Fix webext directory in Makefile 2018-10-08 14:12:51 +02:00
Quentin Rameau
3321c42d36 Remove libtool depencency, reorganise Makefile
We don't need libtool anymore, just build the library directly.
This lets us simplify the Makefile too.
2018-10-08 13:51:51 +02:00
Quentin Rameau
e7c629b258 Unobfuscate Makefile 2018-10-08 13:51:51 +02:00
Quentin Rameau
660413256f 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.
2018-10-08 11:38:03 +02:00
Quentin Rameau
1901359efa Add a file for shared functions
New common.[hc] files where shared functions between surf and
webkitextension will be put. First addition is die().
2018-10-08 11:38:03 +02:00
Quentin Rameau
7ea0c2f7f8 Communicate with webextension via a pipe 2018-10-08 11:38:03 +02:00
Quentin Rameau
1bd6d20102 ext: first commit for surf lib 2018-10-08 11:38:03 +02:00
Quentin Rameau
0bd553a078 Request cookiemanager only once at creation 2018-10-08 11:38:03 +02:00
Quentin Rameau
c60523a702 Exit more gracefully on web process crash. 2018-10-08 11:38:03 +02:00
nzl
befe481a9b Allow tilde expansion in loaduri
also fixed a bug that ~foo/ was expanded to /home/fo/o/
2018-10-08 11:38:03 +02:00
Eddie Thieda
d6954e1541 Fixed wording in FAQ.md 2018-06-18 12:34:52 +02:00
Quentin Rameau
6f6b343721 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.
2018-06-09 21:55:20 +02:00
Jochen Sprickerhof
81f0452bc6 Document SIGHUP in manpage 2018-02-23 13:39:35 +01:00
nzl
d2e4989c3c Script text shouldn't go through formatted conversion 2018-02-23 13:39:35 +01:00
Eon S. Jeon
7817d0ec83 Add support for WebGL
Allows enabling and disabling WebGL support built into WebKit.
The feature is turned off by default.
2018-02-23 13:39:35 +01:00
Quentin Rameau
723ff26c36 Disable media autoplay by default 2017-06-03 10:23:40 +02:00
Quentin Rameau
a0c3c80ee6 Store modified parameters list 2017-05-30 10:33:36 +02:00
Quentin Rameau
a8bf206827 Use priority values instead of “forced” parameters
This makes parameter handling a bit easier and lets the user override
parameters as he sees fit.
2017-05-22 12:38:49 +02:00
Quentin Rameau
a0ef4ba41d 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.
2017-05-22 12:38:49 +02:00
Quentin Rameau
d3e974f4ea Get rid of integer member b in Arg
There's no need to keep another integer member there, use directly the i
integer one.
2017-05-22 12:38:49 +02:00
Quentin Rameau
70c1b548ab Only apply parameters when needed
Specify which parameter should be applied on which load state.
2017-05-22 12:38:49 +02:00
Quentin Rameau
2223417c91 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!
2017-05-22 12:38:49 +02:00
Quentin Rameau
a1328457cf Unset previous user styles before applying another one 2017-05-22 12:38:49 +02:00
Constantine Bytensky
25652669ef Add config option for cross requests from file URLs
I use it to open local .xml files with .xsl style-sheets.
2017-05-22 12:38:49 +02:00
Quentin Rameau
bcd05ae321 Add config option for microphone and webcam access 2017-05-21 17:13:02 +02:00
Quentin Rameau
f5be376ccc Fix synchronization issue with atoms
Be sure to sync after setting an atom.
Sync too before reading one.
2017-05-12 00:30:51 +02:00
Quentin Rameau
5e2216c414 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.
2017-05-12 00:30:45 +02:00
Quentin Rameau
4a1876eb80 Add config option for smooth scrolling activation 2017-05-11 15:33:42 +02:00
Quentin Rameau
93a3e4cda0 Add config option for Java activation 2017-05-11 15:27:27 +02:00
Quentin Rameau
298e688933 Add config option for setting default charset.
This will be used for pages with no specified charset.
2017-05-11 15:23:22 +02:00
Quentin Rameau
745a319baf 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.
2017-05-11 09:22:43 +02:00
ssd
b115434720 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.
2017-05-11 09:22:43 +02:00
Quentin Rameau
47b145f2ec Add prompts for SETPROP
Imported from __20h__ repo, thanks to him and Ben Woolley.
2017-05-08 11:34:00 +02:00
Quentin Rameau
b8b0c05035 Embed dmenu into the surf window by default 2017-05-08 11:33:59 +02:00
Quentin Rameau
dca4264863 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.
2017-05-08 11:33:55 +02:00
Quentin Rameau
654d527f87 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.
2017-05-08 11:30:20 +02:00
Quentin Rameau
d984d12de7 Simplify usage()
There's no real need for using the real executable call name, especially
with basename requiring special care.
2017-05-04 10:29:02 +02:00
Quentin Rameau
2901145301 Simplify version message 2017-05-04 10:27:07 +02:00
Ivan Tham
e23d5c1c45 Use Ctrl-t for showcert instead of Ctrl-x 2017-05-02 17:20:11 +02:00