dwb: Delete config
parent
07e47aaa76
commit
e7894edfd1
|
@ -1,2 +0,0 @@
|
||||||
}:exja (function(){var e=document.querySelector("[rel='next']");if(e){location=e.href;}else{var f=document.getElementsByTagName("a");var i=f.length;while((e=f[--i])){if(e.text.search(/(\bnext\b|^>$|^(>>|»)$|^(>|»)|(>|»)$|\bmore\b)/i)>-1){location=e.href; break;}} location.href=location.href.replace(/(\d+)([^\/\d]*)$/, function(a,b,c){return ++b+c})}})();
|
|
||||||
{:exja (function(){var e=document.querySelector("[rel='prev']");if(e){location=e.href;}else{var f=document.getElementsByTagName("a");var i=f.length;while((e=f[--i])){if(e.text.search(/(\b(prev|previous)\b|^<$|^(<<|«)$|^(<|«)|(<|«)$)/i)>-1){location=e.href;break;}} location.href=location.href.replace(/(\d+)([^\/\d]*)$/, function(a,b,c){return --b+c})}})();
|
|
182
.config/dwb/keys
182
.config/dwb/keys
|
@ -1,182 +0,0 @@
|
||||||
|
|
||||||
[default]
|
|
||||||
save_search_field= gs
|
|
||||||
tab_new= ga
|
|
||||||
allow_session_cookie_tmp= CT
|
|
||||||
allow_cookie= CC
|
|
||||||
allow_session_cookie= CS
|
|
||||||
bookmark= M
|
|
||||||
buffers= gt
|
|
||||||
cancel_download= ad
|
|
||||||
sanitize=
|
|
||||||
clear_tab= gc
|
|
||||||
only= co
|
|
||||||
close_tab= d
|
|
||||||
entry_escape=Control c
|
|
||||||
entry_confirm=Control g
|
|
||||||
entry_history_back=Control k
|
|
||||||
entry_history_forward=Control j
|
|
||||||
entry_delete_letter=Control h
|
|
||||||
entry_delete_line=Control u
|
|
||||||
entry_delete_line_end=Control e
|
|
||||||
entry_delete_word=Control w
|
|
||||||
entry_delete_word_forward=Control e
|
|
||||||
entry_word_back=Control b
|
|
||||||
entry_word_forward=Control f
|
|
||||||
complete_bookmarks=Control B
|
|
||||||
complete_history=Control H
|
|
||||||
complete_path=Control p
|
|
||||||
complete_searchengines=Control S
|
|
||||||
complete_userscript=Control U
|
|
||||||
download= gd
|
|
||||||
download_set_execute=Control x
|
|
||||||
command_mode= :
|
|
||||||
execute_javascript=
|
|
||||||
eval=
|
|
||||||
execute_userscript= eu
|
|
||||||
find_backward_ic= c?
|
|
||||||
find_backward= ?
|
|
||||||
find_forward_ic= c/
|
|
||||||
find_forward= /
|
|
||||||
find_next= n
|
|
||||||
find_previous= N
|
|
||||||
focus_input= gi
|
|
||||||
focus_next= J
|
|
||||||
focus_tab= T
|
|
||||||
focus_prev= K
|
|
||||||
win_hist_back= wh
|
|
||||||
tab_hist_back= th
|
|
||||||
history_back= H
|
|
||||||
win_hist_forward= wl
|
|
||||||
tab_hist_forward= tl
|
|
||||||
history_forward= L
|
|
||||||
insert_mode= i
|
|
||||||
show_keys= Sk
|
|
||||||
load_html=
|
|
||||||
load_html_tab=
|
|
||||||
lock_domain= xd
|
|
||||||
lock_uri= xu
|
|
||||||
tab_move_left= <
|
|
||||||
tab_move_right= >
|
|
||||||
tab_move= gm
|
|
||||||
normal_mode=Control n
|
|
||||||
open_editor=Control e
|
|
||||||
quickmark= b
|
|
||||||
tab_quickmark= B
|
|
||||||
win_quickmark= wb
|
|
||||||
start_page=Control h
|
|
||||||
web_inspector= wi
|
|
||||||
paste=
|
|
||||||
tab_paste=
|
|
||||||
win_paste=
|
|
||||||
paste_primary= pp
|
|
||||||
win_paste_primary= wp
|
|
||||||
tab_paste_primary= Pp
|
|
||||||
print=Control Mod1 p
|
|
||||||
protect=Control P
|
|
||||||
quit=Control q
|
|
||||||
reload= r
|
|
||||||
reload_bypass_cache= R
|
|
||||||
reload_userscripts=
|
|
||||||
save= sf
|
|
||||||
save_session= ZZ
|
|
||||||
save_named_session= gZZ
|
|
||||||
save_quickmark= m
|
|
||||||
scroll_down= j
|
|
||||||
scroll_right= l
|
|
||||||
scroll_left= h
|
|
||||||
scroll_page_down=Control f
|
|
||||||
scroll_page_up=Control b
|
|
||||||
scroll_halfpage_down=Control d
|
|
||||||
scroll_halfpage_up=Control u
|
|
||||||
scroll_bottom= G
|
|
||||||
scroll_top= gg
|
|
||||||
scroll_up= k
|
|
||||||
local_set=
|
|
||||||
set=
|
|
||||||
set_key= sk
|
|
||||||
set_local_setting= sl
|
|
||||||
set_setting= ss
|
|
||||||
show_settings= Ss
|
|
||||||
show_bookmarks= Sb
|
|
||||||
show_downloads= Sd
|
|
||||||
show_history= Sh
|
|
||||||
show_quickmarks= Sq
|
|
||||||
stop_loading=Control s
|
|
||||||
toggle_local_setting=
|
|
||||||
toggle_setting=
|
|
||||||
toggle_tab=Control @Tab@
|
|
||||||
toggle_plugins_host_tmp= pth
|
|
||||||
toggle_scripts_host= tsh
|
|
||||||
toggle_scripts_host_tmp= tth
|
|
||||||
toggle_scripts_uri= tsu
|
|
||||||
toggle_plugins_uri_tmp= ptu
|
|
||||||
toggle_scripts_uri_tmp= ttu
|
|
||||||
fullscreen= @F11@
|
|
||||||
toggle_hidden_files= g.
|
|
||||||
toggle_plugins_host= ph
|
|
||||||
toggle_plugins_uri= pu
|
|
||||||
presentation_mode= @F12@
|
|
||||||
proxy=Control p
|
|
||||||
visible= xv
|
|
||||||
toggle_bars= xx
|
|
||||||
toggle_statusbar= xb
|
|
||||||
toggle_tabbar= xt
|
|
||||||
undo= u
|
|
||||||
view_source= gf
|
|
||||||
dump=
|
|
||||||
yank_title=
|
|
||||||
yank_title_primary= yt
|
|
||||||
yank=
|
|
||||||
yank_primary= yy
|
|
||||||
zoom= =
|
|
||||||
zoom_in= +
|
|
||||||
zoom_out= -
|
|
||||||
hints_background= ;b
|
|
||||||
hints_images_background= .i
|
|
||||||
hints_url_background= .o
|
|
||||||
backopen_url= xO
|
|
||||||
backopen= xo
|
|
||||||
bookmarks= gb
|
|
||||||
hints= f
|
|
||||||
hints_clipboard= ;y
|
|
||||||
hints_download= ;d
|
|
||||||
hints_editable= ;e
|
|
||||||
hints_images= ;i
|
|
||||||
hints_links= ;;
|
|
||||||
hints_primary= ;Y
|
|
||||||
hints_rapid= ;r
|
|
||||||
hints_url= ;o
|
|
||||||
new_tab= V
|
|
||||||
new_win= W
|
|
||||||
open_url= go
|
|
||||||
open= o
|
|
||||||
hints_tab= F
|
|
||||||
hints_images_tab= ;I
|
|
||||||
hints_url_tab= ;O
|
|
||||||
tab_bookmarks= gB
|
|
||||||
tabopen_url= gO
|
|
||||||
tabopen= O
|
|
||||||
hints_win= wf
|
|
||||||
hints_rapid_win= ;R
|
|
||||||
win_bookmarks= wB
|
|
||||||
winopen_url= wO
|
|
||||||
winopen= wo
|
|
||||||
tabdo=
|
|
||||||
reload_bookmarks=
|
|
||||||
reload_quickmarks=
|
|
||||||
print_preview=
|
|
||||||
|
|
||||||
visual_mode= v
|
|
||||||
|
|
||||||
adblock_reload_rules=
|
|
||||||
|
|
||||||
tabgrep=
|
|
||||||
jump= '
|
|
||||||
mark= `
|
|
||||||
repeat= .
|
|
||||||
|
|
||||||
entry_delete_active=Control d
|
|
||||||
|
|
||||||
hints_selector=
|
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
application/x-tex em
|
|
||||||
application/pdf zathura
|
|
|
@ -1,24 +0,0 @@
|
||||||
ddg https://duckduckgo.com/?q=%s
|
|
||||||
arch http://wiki.archlinux.org/index.php?title=Special%%3ASearch&search=%s&go=Go
|
|
||||||
aur https://aur.archlinux.org/packages.php?O=0&K=%s&do_Search=Go
|
|
||||||
ctan http://www.ctan.org/search?phrase=%s
|
|
||||||
gi https://www.google.com/search?site=imghp&tbm=isch&source=hp&biw=1676&bih=997&q=%s
|
|
||||||
gm https://maps.google.com/maps?q=%s
|
|
||||||
gt http://translate.google.com/#en/fr/%s
|
|
||||||
imdb http://www.imdb.com/find?q=%s&s=all
|
|
||||||
leo http://dict.leo.org/frde/index_de.html#/search=%s
|
|
||||||
mb http://musicbrainz.org/search?query=%s&type=artist&method=indexed
|
|
||||||
mbr http://musicbrainz.org/search?query=%s&type=release&method=indexed
|
|
||||||
so http://stackoverflow.com/search?q=%s
|
|
||||||
torrent http://torrentz.eu/search?f=%s
|
|
||||||
w http://en.wikipedia.org/wiki/Special:Search?search=%s
|
|
||||||
wb http://en.wikibooks.org/wiki/Special:Search?search=%s
|
|
||||||
wbf http://fr.wikibooks.org/wiki/Special:Search?search=%s
|
|
||||||
wf http://fr.wikipedia.org/wiki/Special:Search?search=%s
|
|
||||||
wk http://en.wiktionary.org/wiki/Special:Search?search=%s
|
|
||||||
wkf http://fr.wiktionary.org/wiki/Special:Search?search=%s
|
|
||||||
wks http://sv.wiktionary.org/wiki/Special:Search?search=%s
|
|
||||||
wine http://www.winehq.org/search/?cx=partner-pub-0971840239976722:w9sqbcsxtyf&cof=FORID:10&ie=UTF-8&q=%s
|
|
||||||
wr http://www.wordreference.com/enfr/%s
|
|
||||||
ws http://sv.wikipedia.org/wiki/Special:Search?search=%s
|
|
||||||
yt http://www.youtube.com/results?search_query=%s
|
|
|
@ -1,169 +0,0 @@
|
||||||
[default]
|
|
||||||
javascript-can-access-clipboard=false
|
|
||||||
complete-userscripts=false
|
|
||||||
file-sync-interval=120
|
|
||||||
download-gradient-end=#00aa00
|
|
||||||
status-allowed-color=#00ff00
|
|
||||||
tab-number-color=#7ac5cd
|
|
||||||
enable-default-context-menu=true
|
|
||||||
editable=false
|
|
||||||
background-tabs=true
|
|
||||||
enable-webgl=true
|
|
||||||
minimum-logical-font-size=5
|
|
||||||
enable-page-cache=true
|
|
||||||
cache-model=webbrowser
|
|
||||||
sans-serif-font-family=sans-serif
|
|
||||||
prompt-color=#00ff00
|
|
||||||
complete-searchengines=true
|
|
||||||
update-search-delay=200
|
|
||||||
fantasy-font-family=serif
|
|
||||||
hint-fg-color=#000000
|
|
||||||
sync-files=all
|
|
||||||
default-height=600
|
|
||||||
scrollbars=false
|
|
||||||
hint-bg-color=#7fff7f
|
|
||||||
show-single-tab=true
|
|
||||||
enable-developer-extras=true
|
|
||||||
complete-bookmarks=true
|
|
||||||
zoom-level=1.00
|
|
||||||
download-use-external-program=false
|
|
||||||
enable-xss-auditor=true
|
|
||||||
custom-encoding=
|
|
||||||
normal-completion-fg-color=#eeeeee
|
|
||||||
close-tab-focus-policy=left
|
|
||||||
enable-dns-prefetching=true
|
|
||||||
new-tab-position-policy=right
|
|
||||||
auto-shrink-images=true
|
|
||||||
print-backgrounds=false
|
|
||||||
enable-caret-browsing=false
|
|
||||||
enable-scripts=true
|
|
||||||
adblocker-filterlist=~/.config/dwb/adblock_lists
|
|
||||||
proxy=false
|
|
||||||
user-agent=
|
|
||||||
full-content-zoom=true
|
|
||||||
editor=emw dwb_uri
|
|
||||||
enable-accelerated-compositing=false
|
|
||||||
enable-private-browsing=false
|
|
||||||
enable-favicon=true
|
|
||||||
hint-active-color=#00ff00
|
|
||||||
resizable-text-areas=true
|
|
||||||
javascript-schemes=true
|
|
||||||
download-gradient-start=#0000aa
|
|
||||||
hint-normal-color=#ffff99
|
|
||||||
spell-checking-languages=en,de,fr
|
|
||||||
cookies-accept-policy=always
|
|
||||||
font-nofocus=
|
|
||||||
status-blocked-color=#ffffff
|
|
||||||
download-fg-color=#ffffff
|
|
||||||
enable-plugins=true
|
|
||||||
enable-frame-flattening=false
|
|
||||||
ssl-use-system-ca-file=true
|
|
||||||
cookies-store-policy=persistent
|
|
||||||
bars-padding=0
|
|
||||||
active-completion-fg-color=#53868b
|
|
||||||
hint-font=bold 11px monospace
|
|
||||||
progress-bar-full-color=#ffffff
|
|
||||||
tabbed-browsing=true
|
|
||||||
hint-highlight-links=false
|
|
||||||
active-completion-bg-color=#000000
|
|
||||||
enable-spell-checking=false
|
|
||||||
font-hidden-statusbar=normal 10px helvetica
|
|
||||||
tab-normal-fg-color-2=#0088CC
|
|
||||||
tab-normal-fg-color-1=#0088CC
|
|
||||||
default-monospace-font-size=10
|
|
||||||
save-session=true
|
|
||||||
tabbar-visible=2.00
|
|
||||||
auto-insert-mode=false
|
|
||||||
tab-normal-bg-color-2=#333333
|
|
||||||
tab-normal-bg-color-1=#111111
|
|
||||||
serif-font-family=serif
|
|
||||||
enable-html5-local-storage=true
|
|
||||||
tab-protected-color=#ff0000
|
|
||||||
hint-letter-seq=FDSARTGBVECWXQYIOPMNHZULKJ
|
|
||||||
progress-bar-style=default
|
|
||||||
use-ntlm=false
|
|
||||||
enable-html5-database=true
|
|
||||||
hint-autofollow=true
|
|
||||||
enable-dom-paste=false
|
|
||||||
javascript-can-open-windows-automatically=false
|
|
||||||
hint-border=1px solid #ffffff
|
|
||||||
widget-packing=dtws
|
|
||||||
ssl-trusted-color=#00ff00
|
|
||||||
enable-java-applet=true
|
|
||||||
navigation-history-max=500
|
|
||||||
hint-style=letter
|
|
||||||
enable-site-specific-quirks=true
|
|
||||||
auto-resize-window=false
|
|
||||||
zoom-step=0.10
|
|
||||||
default-font-family=sans-serif
|
|
||||||
ssl-untrusted-color=#ff0000
|
|
||||||
plugin-blocker=true
|
|
||||||
startpage=dwb:bookmarks
|
|
||||||
normal-completion-bg-color=#151515
|
|
||||||
cursive-font-family=serif
|
|
||||||
default-encoding=utf-8
|
|
||||||
error-color=#ff0000
|
|
||||||
searchengine-submit-pattern=%s
|
|
||||||
hint-opacity=0.80
|
|
||||||
font-entry=
|
|
||||||
proxy-url=
|
|
||||||
font=sans 10
|
|
||||||
monospace-font-family=monospace
|
|
||||||
addressbar-dns-lookup=true
|
|
||||||
enable-universal-access-from-file-uris=true
|
|
||||||
background-color=#000000
|
|
||||||
do-not-track=true
|
|
||||||
progress-bar-empty-color=#ffffff
|
|
||||||
default-width=800
|
|
||||||
single-instance=true
|
|
||||||
auto-completion=true
|
|
||||||
minimum-font-size=5
|
|
||||||
font-completion=
|
|
||||||
enable-spatial-navigation=false
|
|
||||||
download-directory=~/temp
|
|
||||||
adblocker=false
|
|
||||||
download-external-command=urxvt -e wget dwb_uri -O dwb_output --load-cookies dwb_cookies
|
|
||||||
user-stylesheet-uri=
|
|
||||||
auto-load-images=true
|
|
||||||
tab-active-fg-color=#dddddd
|
|
||||||
history-length=500
|
|
||||||
tab-active-bg-color=#555555
|
|
||||||
download-bg-color=#000000
|
|
||||||
download-no-confirm=true
|
|
||||||
enable-file-access-from-file-uris=true
|
|
||||||
complete-history=true
|
|
||||||
tab-key-cycles-through-elements=true
|
|
||||||
enforce-96-dpi=false
|
|
||||||
ssl-strict=false
|
|
||||||
scroll-step=0.00
|
|
||||||
close-last-tab-policy=clear
|
|
||||||
foreground-color=#ffffff
|
|
||||||
message-delay=2
|
|
||||||
scheme-handler=
|
|
||||||
default-font-size=12
|
|
||||||
enable-offline-web-application-cache=true
|
|
||||||
hints-key-lock=250
|
|
||||||
private-color=#505050
|
|
||||||
print-previewer=zathura %f
|
|
||||||
hsts=true
|
|
||||||
load-on-focus=true
|
|
||||||
accept-language=
|
|
||||||
passthrough-keys=webkit
|
|
||||||
max-visible-completions=11
|
|
||||||
hint-offset-top=0
|
|
||||||
javascript-api=automatic
|
|
||||||
mouse-cycles-through-tabs=true
|
|
||||||
tab-orientation=horizontal
|
|
||||||
maximum-tabs=0
|
|
||||||
cookie-expiration=0
|
|
||||||
tab-width=150
|
|
||||||
hint-offset-left=0
|
|
||||||
block-insecure-content=false
|
|
||||||
enable-ipc=true
|
|
||||||
|
|
||||||
adblocker-element-hider=true
|
|
||||||
|
|
||||||
tabbar-height=0
|
|
||||||
statusbar-height=0
|
|
||||||
favicon-size=0
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
#!javascript
|
|
||||||
|
|
||||||
Signal.connect("documentLoaded", function (wv) {
|
|
||||||
if (wv.uri == "about:blank") {
|
|
||||||
wv.inject("document.body.style.background = '#000';");
|
|
||||||
}
|
|
||||||
});
|
|
|
@ -1,7 +0,0 @@
|
||||||
//!javascript
|
|
||||||
|
|
||||||
Signal.connect("changeMode", function(wv, mode) {
|
|
||||||
if (mode == Modes.NormalMode) {
|
|
||||||
wv.focusedFrame.inject("document.activeElement.blur();");
|
|
||||||
}
|
|
||||||
});
|
|
|
@ -1,106 +0,0 @@
|
||||||
//!javascript
|
|
||||||
//<adblock_subscriptions___SCRIPT
|
|
||||||
extensions.load("adblock_subscriptions", {
|
|
||||||
//<adblock_subscriptions___CONFIG
|
|
||||||
|
|
||||||
// Shortcut to subscribe to a filterlist
|
|
||||||
scSubscribe : null,
|
|
||||||
// Command to subscribe to a filterlist
|
|
||||||
cmdSubscribe : "adblock_subscribe",
|
|
||||||
|
|
||||||
// Shortcut to unsubscribe from a filterlist
|
|
||||||
scUnsubscribe : null,
|
|
||||||
|
|
||||||
// Command to unsubscribe from a filterlist
|
|
||||||
cmdUnsubscribe : "adblock_unsubscribe",
|
|
||||||
|
|
||||||
// Shortcut to update subscriptions and reload filter rules
|
|
||||||
// Note that dwb will also update all subscriptions on startup
|
|
||||||
scUpdate : null,
|
|
||||||
|
|
||||||
// Command to update subscriptions and reload filter rules
|
|
||||||
// Note that dwb will also update all subscriptions on startup
|
|
||||||
cmdUpdate : "adblock_update",
|
|
||||||
|
|
||||||
// Path to the filterlist directory, will be created if it doesn't exist.
|
|
||||||
filterListDir : "~/.config/dwb/adblock_lists"
|
|
||||||
//>adblock_subscriptions___CONFIG
|
|
||||||
});
|
|
||||||
//>adblock_subscriptions___SCRIPT
|
|
||||||
//<navtools___SCRIPT
|
|
||||||
extensions.load("navtools", {
|
|
||||||
//<navtools___CONFIG
|
|
||||||
// Shortcut for navigating to the next page
|
|
||||||
forwardBind : "]]",
|
|
||||||
|
|
||||||
// Shortcut for navigating to the previous page
|
|
||||||
backBind : "[[",
|
|
||||||
|
|
||||||
// Go up one directory, e.g. from http://www.example.com/foo/bar to
|
|
||||||
// http://www.example.com/foo
|
|
||||||
updirBind : "gu",
|
|
||||||
|
|
||||||
// Go to top directory, e.g. from http://www.example.com/foo/bar to
|
|
||||||
// http://www.example.com
|
|
||||||
topdirBind : "gU",
|
|
||||||
|
|
||||||
// Patterns to match against when searching for "next"-links
|
|
||||||
nextPatterns : "next,more,>,\u2192,\xbb,\u226b,>>",
|
|
||||||
|
|
||||||
// Patterns to match against when searching for "previous"-links
|
|
||||||
previousPatterns : "prev,previous,back,<,\u2190,\xab,\u226a,<<"
|
|
||||||
|
|
||||||
//>navtools___CONFIG
|
|
||||||
});
|
|
||||||
//>navtools___SCRIPT
|
|
||||||
|
|
||||||
//<contenthandler___SCRIPT
|
|
||||||
extensions.load("contenthandler", {
|
|
||||||
//<contenthandler___CONFIG
|
|
||||||
// The handler can either be a string or a function, if it is a string
|
|
||||||
// %u will be replaced with the uri of the request, if the handler is a
|
|
||||||
// function the first parameter of the function will be the uri and the
|
|
||||||
// function must return the command to execute.
|
|
||||||
|
|
||||||
// Handle requests based on filename extension
|
|
||||||
extension : {
|
|
||||||
// Note that the extension handler does not always work (e.g. on
|
|
||||||
// torrenthound). As a workaround transmission can be configured to watch
|
|
||||||
// for the download path.
|
|
||||||
"torrent" : "trc -a '%u'"
|
|
||||||
|
|
||||||
// "pdf" : "xterm -e 'wget %u --directory-prefix=~/mypdfs'"
|
|
||||||
},
|
|
||||||
|
|
||||||
// Handle requests based on URI scheme
|
|
||||||
uriScheme : {
|
|
||||||
// Note: does not work with urxvt.
|
|
||||||
ftp : function(uri) {
|
|
||||||
if (uri[uri.length-1] == "/")
|
|
||||||
return "xterm -e 'ncftp " + uri + "'";
|
|
||||||
else
|
|
||||||
return "xterm -e 'ncftpget " + uri + "'";
|
|
||||||
},
|
|
||||||
|
|
||||||
// We need to use 'sh -c' since we need to use a pipe so that xclip can
|
|
||||||
// read from stdin
|
|
||||||
mailto : function(uri) {
|
|
||||||
uri=uri.replace(/mailto:/, "")
|
|
||||||
uri=uri.replace(/\?/, " ")
|
|
||||||
return "sh -c ' echo " + uri + " | xclip -i'";
|
|
||||||
},
|
|
||||||
|
|
||||||
// 'trc' is a wrapper script that will launch transmission-daemon if not
|
|
||||||
// already started.
|
|
||||||
// magnet: "transmission-remote -a '%u'"
|
|
||||||
magnet: "trc -a '%u'"
|
|
||||||
},
|
|
||||||
|
|
||||||
// Handle requests based on MIME type
|
|
||||||
mimeType : {
|
|
||||||
// "application/pdf" : "xterm -e 'wget %u --directory-prefix=~/mypdfs'"
|
|
||||||
}
|
|
||||||
//>contenthandler___CONFIG
|
|
||||||
|
|
||||||
});
|
|
||||||
//>contenthandler___SCRIPT
|
|
|
@ -1,11 +0,0 @@
|
||||||
//!javascript
|
|
||||||
|
|
||||||
// Opens YouTube videos with mplayer.
|
|
||||||
|
|
||||||
var regex = new RegExp("http(.*)://www.youtube.com/watch\\?(.*&)*v=.*");
|
|
||||||
|
|
||||||
Signal.connect("navigation", function (wv, frame, request) {
|
|
||||||
if (wv.mainFrame == frame && regex.test(request.uri))
|
|
||||||
system.spawn("sh -c 'mpv \"$(youtube-dl -g " + request.uri + ")\"'");
|
|
||||||
return false;
|
|
||||||
});
|
|
Loading…
Reference in New Issue