Remove external plugin handling
This has been deprecated since release 2.32.
This commit is contained in:
parent
7dcce9e1b9
commit
fce76429b8
3 changed files with 0 additions and 53 deletions
|
@ -6,11 +6,6 @@ static char *styledir = "~/.surf/styles/";
|
||||||
static char *certdir = "~/.surf/certificates/";
|
static char *certdir = "~/.surf/certificates/";
|
||||||
static char *cachedir = "~/.surf/cache/";
|
static char *cachedir = "~/.surf/cache/";
|
||||||
static char *cookiefile = "~/.surf/cookies.txt";
|
static char *cookiefile = "~/.surf/cookies.txt";
|
||||||
static char **plugindirs = (char*[]){
|
|
||||||
"~/.surf/plugins/",
|
|
||||||
LIBPREFIX "/mozilla/plugins/",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
/* Webkit default features */
|
/* Webkit default features */
|
||||||
/* Highest priority value will be used.
|
/* Highest priority value will be used.
|
||||||
|
@ -41,7 +36,6 @@ static Parameter defconfig[ParameterLast] = {
|
||||||
[KioskMode] = { { .i = 0 }, },
|
[KioskMode] = { { .i = 0 }, },
|
||||||
[LoadImages] = { { .i = 1 }, },
|
[LoadImages] = { { .i = 1 }, },
|
||||||
[MediaManualPlay] = { { .i = 1 }, },
|
[MediaManualPlay] = { { .i = 1 }, },
|
||||||
[Plugins] = { { .i = 1 }, },
|
|
||||||
[PreferredLanguages] = { { .v = (char *[]){ NULL } }, },
|
[PreferredLanguages] = { { .v = (char *[]){ NULL } }, },
|
||||||
[RunInFullscreen] = { { .i = 0 }, },
|
[RunInFullscreen] = { { .i = 0 }, },
|
||||||
[ScrollBars] = { { .i = 1 }, },
|
[ScrollBars] = { { .i = 1 }, },
|
||||||
|
@ -59,7 +53,6 @@ static Parameter defconfig[ParameterLast] = {
|
||||||
static UriParameters uriparams[] = {
|
static UriParameters uriparams[] = {
|
||||||
{ "(://|\\.)suckless\\.org(/|$)", {
|
{ "(://|\\.)suckless\\.org(/|$)", {
|
||||||
[JavaScript] = { { .i = 0 }, 1 },
|
[JavaScript] = { { .i = 0 }, 1 },
|
||||||
[Plugins] = { { .i = 0 }, 1 },
|
|
||||||
}, },
|
}, },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -182,7 +175,6 @@ static Key keys[] = {
|
||||||
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_g, toggle, { .i = Geolocation } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_g, toggle, { .i = Geolocation } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_s, toggle, { .i = JavaScript } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_s, toggle, { .i = JavaScript } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_i, toggle, { .i = LoadImages } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_i, toggle, { .i = LoadImages } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_v, toggle, { .i = Plugins } },
|
|
||||||
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, toggle, { .i = ScrollBars } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_b, toggle, { .i = ScrollBars } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_t, toggle, { .i = StrictTLS } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_t, toggle, { .i = StrictTLS } },
|
||||||
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_m, toggle, { .i = Style } },
|
{ MODKEY|GDK_SHIFT_MASK, GDK_KEY_m, toggle, { .i = Style } },
|
||||||
|
|
25
surf.1
25
surf.1
|
@ -91,12 +91,6 @@ Disable the Web Inspector (Developer Tools).
|
||||||
.B \-N
|
.B \-N
|
||||||
Enable the Web Inspector (Developer Tools).
|
Enable the Web Inspector (Developer Tools).
|
||||||
.TP
|
.TP
|
||||||
.B \-p
|
|
||||||
Disable Plugins.
|
|
||||||
.TP
|
|
||||||
.B \-P
|
|
||||||
Enable Plugins.
|
|
||||||
.TP
|
|
||||||
.B \-r scriptfile
|
.B \-r scriptfile
|
||||||
Specify the user
|
Specify the user
|
||||||
.IR scriptfile .
|
.IR scriptfile .
|
||||||
|
@ -231,10 +225,6 @@ Toggle script execution. This will reload the page.
|
||||||
.B Ctrl\-Shift\-t
|
.B Ctrl\-Shift\-t
|
||||||
Toggle strict TLS check. This will reload the page.
|
Toggle strict TLS check. This will reload the page.
|
||||||
.TP
|
.TP
|
||||||
.B Ctrl\-Shift\-v
|
|
||||||
Toggle the enabling of plugins on that surf instance. This will reload the
|
|
||||||
page.
|
|
||||||
.TP
|
|
||||||
.B F11
|
.B F11
|
||||||
Toggle fullscreen mode.
|
Toggle fullscreen mode.
|
||||||
.SH INDICATORS OF OPERATION
|
.SH INDICATORS OF OPERATION
|
||||||
|
@ -265,9 +255,6 @@ images
|
||||||
.B s S
|
.B s S
|
||||||
scripts
|
scripts
|
||||||
.TP
|
.TP
|
||||||
.B v V
|
|
||||||
plugins
|
|
||||||
.TP
|
|
||||||
.B m M
|
.B m M
|
||||||
styles
|
styles
|
||||||
.TP
|
.TP
|
||||||
|
@ -309,22 +296,10 @@ If this variable is set and not empty upon startup, surf will use it as the http
|
||||||
.SH SIGNALS
|
.SH SIGNALS
|
||||||
Surf will reload the current page on
|
Surf will reload the current page on
|
||||||
.BR SIGHUP .
|
.BR SIGHUP .
|
||||||
.SH PLUGINS
|
|
||||||
For using plugins in surf, first determine your running architecture. Then get
|
|
||||||
the appropriate plugin for that architecture and copy it to
|
|
||||||
.BR /usr/lib/browser-plugins
|
|
||||||
or
|
|
||||||
.BR /usr/lib64/browser-plugins.
|
|
||||||
Surf should load them automatically.
|
|
||||||
.BR
|
|
||||||
If you want to use a 32bit plugin on a 64bit system,
|
|
||||||
.BR nspluginwrapper(1)
|
|
||||||
will help you.
|
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
.BR dmenu(1),
|
.BR dmenu(1),
|
||||||
.BR xprop(1),
|
.BR xprop(1),
|
||||||
.BR tabbed(1),
|
.BR tabbed(1),
|
||||||
.BR nspluginwrapper(1),
|
|
||||||
.BR xdotool(1)
|
.BR xdotool(1)
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
Please report them!
|
Please report them!
|
||||||
|
|
20
surf.c
20
surf.c
|
@ -72,7 +72,6 @@ typedef enum {
|
||||||
KioskMode,
|
KioskMode,
|
||||||
LoadImages,
|
LoadImages,
|
||||||
MediaManualPlay,
|
MediaManualPlay,
|
||||||
Plugins,
|
|
||||||
PreferredLanguages,
|
PreferredLanguages,
|
||||||
RunInFullscreen,
|
RunInFullscreen,
|
||||||
ScrollBars,
|
ScrollBars,
|
||||||
|
@ -286,7 +285,6 @@ static ParamName loadcommitted[] = {
|
||||||
Java,
|
Java,
|
||||||
// KioskMode,
|
// KioskMode,
|
||||||
MediaManualPlay,
|
MediaManualPlay,
|
||||||
Plugins,
|
|
||||||
RunInFullscreen,
|
RunInFullscreen,
|
||||||
ScrollBars,
|
ScrollBars,
|
||||||
SiteQuirks,
|
SiteQuirks,
|
||||||
|
@ -672,7 +670,6 @@ gettogglestats(Client *c)
|
||||||
togglestats[3] = curconfig[DiskCache].val.i ? 'D' : 'd';
|
togglestats[3] = curconfig[DiskCache].val.i ? 'D' : 'd';
|
||||||
togglestats[4] = curconfig[LoadImages].val.i ? 'I' : 'i';
|
togglestats[4] = curconfig[LoadImages].val.i ? 'I' : 'i';
|
||||||
togglestats[5] = curconfig[JavaScript].val.i ? 'S' : 's';
|
togglestats[5] = curconfig[JavaScript].val.i ? 'S' : 's';
|
||||||
togglestats[6] = curconfig[Plugins].val.i ? 'V' : 'v';
|
|
||||||
togglestats[7] = curconfig[Style].val.i ? 'M' : 'm';
|
togglestats[7] = curconfig[Style].val.i ? 'M' : 'm';
|
||||||
togglestats[8] = curconfig[FrameFlattening].val.i ? 'F' : 'f';
|
togglestats[8] = curconfig[FrameFlattening].val.i ? 'F' : 'f';
|
||||||
togglestats[9] = curconfig[Certificate].val.i ? 'X' : 'x';
|
togglestats[9] = curconfig[Certificate].val.i ? 'X' : 'x';
|
||||||
|
@ -825,9 +822,6 @@ setparameter(Client *c, int refresh, ParamName p, const Arg *a)
|
||||||
case MediaManualPlay:
|
case MediaManualPlay:
|
||||||
webkit_settings_set_media_playback_requires_user_gesture(s, a->i);
|
webkit_settings_set_media_playback_requires_user_gesture(s, a->i);
|
||||||
break;
|
break;
|
||||||
case Plugins:
|
|
||||||
webkit_settings_set_enable_plugins(s, a->i);
|
|
||||||
break;
|
|
||||||
case PreferredLanguages:
|
case PreferredLanguages:
|
||||||
return; /* do nothing */
|
return; /* do nothing */
|
||||||
case RunInFullscreen:
|
case RunInFullscreen:
|
||||||
|
@ -1030,7 +1024,6 @@ newwindow(Client *c, const Arg *a, int noembed)
|
||||||
cmd[i++] = curconfig[KioskMode].val.i ? "-K" : "-k" ;
|
cmd[i++] = curconfig[KioskMode].val.i ? "-K" : "-k" ;
|
||||||
cmd[i++] = curconfig[Style].val.i ? "-M" : "-m" ;
|
cmd[i++] = curconfig[Style].val.i ? "-M" : "-m" ;
|
||||||
cmd[i++] = curconfig[Inspector].val.i ? "-N" : "-n" ;
|
cmd[i++] = curconfig[Inspector].val.i ? "-N" : "-n" ;
|
||||||
cmd[i++] = curconfig[Plugins].val.i ? "-P" : "-p" ;
|
|
||||||
if (scriptfile && g_strcmp0(scriptfile, "")) {
|
if (scriptfile && g_strcmp0(scriptfile, "")) {
|
||||||
cmd[i++] = "-r";
|
cmd[i++] = "-r";
|
||||||
cmd[i++] = scriptfile;
|
cmd[i++] = scriptfile;
|
||||||
|
@ -1130,7 +1123,6 @@ newview(Client *c, WebKitWebView *rv)
|
||||||
"enable-html5-local-storage", curconfig[DiskCache].val.i,
|
"enable-html5-local-storage", curconfig[DiskCache].val.i,
|
||||||
"enable-java", curconfig[Java].val.i,
|
"enable-java", curconfig[Java].val.i,
|
||||||
"enable-javascript", curconfig[JavaScript].val.i,
|
"enable-javascript", curconfig[JavaScript].val.i,
|
||||||
"enable-plugins", curconfig[Plugins].val.i,
|
|
||||||
"enable-accelerated-2d-canvas", curconfig[AcceleratedCanvas].val.i,
|
"enable-accelerated-2d-canvas", curconfig[AcceleratedCanvas].val.i,
|
||||||
"enable-site-specific-quirks", curconfig[SiteQuirks].val.i,
|
"enable-site-specific-quirks", curconfig[SiteQuirks].val.i,
|
||||||
"enable-smooth-scrolling", curconfig[SmoothScrolling].val.i,
|
"enable-smooth-scrolling", curconfig[SmoothScrolling].val.i,
|
||||||
|
@ -1175,10 +1167,6 @@ newview(Client *c, WebKitWebView *rv)
|
||||||
webkit_web_context_set_cache_model(context,
|
webkit_web_context_set_cache_model(context,
|
||||||
curconfig[DiskCache].val.i ? WEBKIT_CACHE_MODEL_WEB_BROWSER :
|
curconfig[DiskCache].val.i ? WEBKIT_CACHE_MODEL_WEB_BROWSER :
|
||||||
WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);
|
WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER);
|
||||||
/* plugins directories */
|
|
||||||
for (; *plugindirs; ++plugindirs)
|
|
||||||
webkit_web_context_set_additional_plugins_directory(
|
|
||||||
context, *plugindirs);
|
|
||||||
|
|
||||||
/* Currently only works with text file to be compatible with curl */
|
/* Currently only works with text file to be compatible with curl */
|
||||||
if (!curconfig[Ephemeral].val.i)
|
if (!curconfig[Ephemeral].val.i)
|
||||||
|
@ -2090,14 +2078,6 @@ main(int argc, char *argv[])
|
||||||
defconfig[Inspector].val.i = 1;
|
defconfig[Inspector].val.i = 1;
|
||||||
defconfig[Inspector].prio = 2;
|
defconfig[Inspector].prio = 2;
|
||||||
break;
|
break;
|
||||||
case 'p':
|
|
||||||
defconfig[Plugins].val.i = 0;
|
|
||||||
defconfig[Plugins].prio = 2;
|
|
||||||
break;
|
|
||||||
case 'P':
|
|
||||||
defconfig[Plugins].val.i = 1;
|
|
||||||
defconfig[Plugins].prio = 2;
|
|
||||||
break;
|
|
||||||
case 'r':
|
case 'r':
|
||||||
scriptfile = EARGF(usage());
|
scriptfile = EARGF(usage());
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue