File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88NBROWSER_CONFIG_DIR=" ${XDG_CONFIG_HOME:- $HOME / .config} /nbrowser"
99NBROWSER_DEFAULT_SEARCH=${NBROWSER_DEFAULT_SEARCH:- duckduckgo}
1010COPY_TO_CLIPBOARD_OPTION=true
11+ NBROWSER_SIMPLE_URL_HANDLER=false
1112
1213declare -A ENGINES
1314
@@ -266,6 +267,8 @@ url_handler(){
266267 source " ${NBROWSER_CONFIG_DIR} /dbangs/${domain} "
267268 has nbrowser_dbang || _pemx " couldn't find nbrowser_dbang() function in ${NBROWSER_CONFIG_DIR} /dbangs/${domain} "
268269 nbrowser_dbang " $cleanurl "
270+ elif [ " ${NBROWSER_SIMPLE_URL_HANDLER} " = true ]; then
271+ open_in_browser " $cleanurl "
269272 else
270273 case " $cleanurl " in
271274 ** ted.com/** |* youtube.com/watch* |* youtube.com/playlist* |* youtu.be* |* //www.twitch.tv/* |* //twitch.tv/* |* .mp4|* .mkv|* .webm|* .mp3|* .flac|* .opus|* mp3? source* |* gifv|* .m3u|* .m3u8)
You can’t perform that action at this time.
0 commit comments