Last active
November 14, 2016 16:46
-
-
Save awenner/6b0568e66f3a9d971ad7 to your computer and use it in GitHub Desktop.
SurfingKeys Mappings
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 | |
addSearchAliasX('C', 'CanLII', 'https://www.canlii.org/en/#search/id=', 's', 'https://www.canlii.org/en/search/idCompletion.do?id=', function(response) { | |
var res = eval(response.text); | |
Omnibar.listWords(res[1]); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment