Search Wikipedia - troyp/edbrowse GitHub Wiki
This function makes it easier to search Wikipedia. If the search terms match a page title, that page opens. If the search terms do not match a page title, the function moves to the first search result and stops. To move to the next search result, you can use the / command.
#Search wikipedia.
#usage: <wp <article name or search terms>
function+wp {
db0
js-
b https://en.wikipedia.org/wiki/~0
sw+
#Use X at the end of the next line if you want to suppress this output.
/does not have an article with this exact name/f
if(*) {
/Search/f g
#Use X at the end of the next line if you want to suppress this output.
/results/f
/already covered/fX
if(*) {
/* {/
} else {
/results/f
}
} else {
#Use X at the end of the next line if you want to suppress this output.
/h1/f
/^{Jump to navigation}/fX
/./f
}
}