Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /************************************************************************************
- This is your Page Code. The appAPI.ready() code block will be executed on every page load.
- For more information please visit our docs site: http://docs.crossrider.com
- *************************************************************************************/
- appAPI.ready(function($) {
- var t = "";
- var l = navigator.language || navigator.userLanguage;
- appAPI.selectedText(function(text, event) {
- t = text;
- });
- appAPI.shortcut.add("Alt+W", function() {
- appAPI.openURL({
- url: "http://"+ l +".wikipedia.org/wiki/"+t,
- where: "tab",
- focus: false
- });
- }, {
- type: 'keydown',
- propagate: true,
- disable_in_input: true,
- target: document
- }
- );
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement