This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works. | |
map('?', 'u'); | |
// Add search alias for Wikipedia | |
addSearchAliasX('w', 'Wikipedia', 'https://en.wikipedia.org/w/index.php?search=', 's', 'https://en.wikipedia.org/w/api.php?action=opensearch&format=json&search=', function(response) { | |
var res = eval(response.text); | |
Omnibar.listWords(res[1]); | |
}); | |
// Add search alias for CanLII |