-
Notifications
You must be signed in to change notification settings - Fork 6
Home
wyeb's default is false because it is lighter and faster. But make sure all webkit2gtk browsers I checked set it true because probably it is not stable.
Adding following command to menus or lanchers of your DE makes quick search / open of selected text
wyeb newselection ""
Also 'newselection' accepts values of the search section of the conf. Following command means search selection text in urban dictionary
wyeb newselection u
and following command means use the I'm Feeling Lucky
wyeb newselection f
Since the Adblock Extension takes boot time, using other suffix for
quick searching is good idea. The reldomaindataonly
of the conf
for adblock is enough for the purpose.
If you want change it par process.
sh -c 'http_proxy=http://foo:9999/ wyeb'
For example, fast-forward
wyeb // setstack script
wyeb // jscallback "`cat .navnext.js`" 'sh -c "wyeb // showmsg \"$RESULT\""'
wyeb // setstack ""
The set:script in the conf disables java script in default. so have to change it.
.navnext.js : most part is from the dwb page of the arch's wiki
(function(){
if(e=document.querySelector("[rel='next']")){
location=e.href;
return "Next rel"
}
var f=document.getElementsByTagName("a");
var i=f.length;
while((e=f[--i])) if(e.text.search(
/(\bnext\b|^>$|^(>>|»)$|^(>|»)|(>|»)$|^(?!learn)\bmore\b)/i
)>-1){
e.style.color="red";
e.focus();
location=e.href;
return "Next elm";
}
location=location.href.replace(/(\d+)([^\/\d]*|\/)$/,
function(a,b,c){return ++b+c})
return "Next uri";
})();
export DEBUG=1
make
./wyeb
This searches the extention ext.so in current working directory.
main.conf's keys are added often when wyeb is updated. Basicary lacking keys are not a problem though if you want to use new keys, following steps are usefull. Open a wyeb's window and open conf dir. Rename/remove main.conf and click the wyeb's window. Then main.conf being added new keys will be created.
Though search, raw, set:* and uri:* sections are not added.
Rename the menudir. Right click the wyeb's window. Then copy files from renamed dir to created menu dir if you've added files.
- main.conf > boot > enablefavicon=true
- reboot the wyeb
- main.conf > set; > linkformat=[![](%s) %.40s](%s)
- main.conf > set; > linkdata=ftu
- bookmark pages
tohintrange accepts enter key just after start of range settled. So hintrangemax of the set and it make less type.
The hinting looks random because there are 3 types of hinting.
- tohint and hackedhint4js: searches clickable elms by area and makes pure click event.
- tohint: searches clickable tags and makes click event of html(DOM).
- others: searches uri of tags which selected by type (e.g. tohintopen/new/back searches only a and area tags) and dl/callback/opens the uri.
If you want to see current URI not truncated, Just type O or W. O and W also show focused element's URI if it was.
In hint mode, tab key makes focus at first element of hinted.
markdown(discount) treats text in tags as text. So <div>[link](URI)</div>
outputs [link](URI)
but <div><div>[link](URI)</div>
outputs link
as a link, I don't know why though.
If you made a menu item file with underscore in its name, the char following the underscore becames a access key.
You can make bookmarks openning outer processes on wyeb:main
mainpage.md
[foo](wyeb:dummy/foo/arg)
main.conf
[uri:^wyeb:dummy/foo/(.*)]
handler=foo %s
sh -c 'echo "a[href^=\"$LINK_OR_URI\"]{opacity:.3!important}" >> $CONFDIR/user.css'
wyeb // showmsg dimmed\ $LINK_OR_URI
or a::before
Selection of the entry is available even while it hidden. So just use context-menu > editLabelOrTitle on a link to select a part.
topointerright(Ctrl + p) and tohint(f)
It stops even by /. So if you want go parent path, shift-o + ctrl-w + enter
The pointer mode's click is separated press and release. So press spece key and move pointer.