1)},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=by(a,"opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=bu.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(by)return by(a,c)},swap:function(a,b,c){var d={},e,f;for(f in b)d[f]=a.style[f],a.style[f]=b[f];e=c.call(a);for(f in b)a.style[f]=d[f];return e}}),f.curCSS=f.css,c.defaultView&&c.defaultView.getComputedStyle&&(bz=function(a,b){var c,d,e,g,h=a.style;b=b.replace(br,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b))),!f.support.pixelMargin&&e&&bv.test(b)&&bt.test(c)&&(g=h.width,h.width=c,c=e.width,h.width=g);return c}),c.documentElement.currentStyle&&(bA=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f==null&&g&&(e=g[b])&&(f=e),bt.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),by=bz||bA,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){if(c)return a.offsetWidth!==0?bB(a,b,d):f.swap(a,bw,function(){return bB(a,b,d)})},set:function(a,b){return bs.test(b)?b+"px":b}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bq.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bp,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bp.test(g)?g.replace(bp,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){return f.swap(a,{display:"inline-block"},function(){return b?by(a,"margin-right"):a.style.marginRight})}})}),f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)}),f.each({margin:"",padding:"",border:"Width"},function(a,b){f.cssHooks[a+b]={expand:function(c){var d,e=typeof c=="string"?c.split(" "):[c],f={};for(d=0;d<4;d++)f[a+bx[d]+b]=e[d]||e[d-2]||e[0];return f}}});var bC=/%20/g,bD=/\[\]$/,bE=/\r?\n/g,bF=/#.*$/,bG=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bH=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bI=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bJ=/^(?:GET|HEAD)$/,bK=/^\/\//,bL=/\?/,bM=/
Lookup Assistant Menu Editor
-
+
Save
Load
- Exec
-
- Wipe
Default
-
-
-
+
Help
@@ -33,10 +27,6 @@ I. Buttons
Load: Load settings from local storage.
- Exec: Execute the settings shown in the editor without saving.
-
- Wipe: Delete settings from local storage.
-
Default: Restore default settings.
@@ -67,7 +57,6 @@ II. Editing
{
"type": "link",
- "open": "tab",
"title": "Google",
"address": "http://www.google.com/search?q=%s"
}
@@ -82,10 +71,6 @@ II. Editing
of course, use "link" for links. However, this key is optional. The default behavior
is "link" if it's omitted.
- "open": This determines how Lookup Assistant behaves when one of its links is clicked.
- It can be one of three values: "tab", "window", or "incognito". This key is optional.
- The default type is "tab" if it's omitted.
-
"title": The name for this link.
"address": The URL with a search token (%s). The search token will ultimately be replaced
@@ -103,14 +88,14 @@ II. Editing
{
"type": "menu",
"title": "Additional Links",
- "entry": []
+ "entries": []
}
Regarding braces, quotes, and commas, the same rules apply here as they did with the link
type. The "type" and "title" keys also work the same way as they did for links, except
"type" is not optional here.
- The new key is "entry", and the value is a pair of brackets. What's placed between them
+ The new key is "entries", and the value is a pair of brackets. What's placed between them
will determine what appears in this menu. Links, separators, and even additional menus
are all valid. See the link and separator section for proper formatting.
@@ -129,7 +114,7 @@ III. Examples
One Link:
[
- { "type": "link", "open": "tab", "title": "Google", "address": "http://www.google.com/search?q=%s" }
+ { "type": "link", "title": "Google", "address": "http://www.google.com/search?q=%s" }
]
@@ -151,7 +136,7 @@ III. Examples
{ "title": "Google", "address": "http://www.google.com/search?q=%s" },
{ "title": "Google Images", "address": "http://www.google.com/search?tbm=isch&q=%s" },
{ "type": "separator" },
- { "type": "menu", "title": "Menu 1", "entry":
+ { "type": "menu", "title": "Menu 1", "entries":
[
{ "title": "Amazon", "address": "http://www.amazon.com/s/field-keywords=%s" },
{ "title": "eBay", "address": "http://www.ebay.com/sch/i.html?_nkw=%s" }
@@ -163,9 +148,9 @@ III. Examples
One Link + Menu with a Menu, Each with One Link:
[
- { "type": "menu", "title": "Menu 1", "entry":
+ { "type": "menu", "title": "Menu 1", "entries":
[
- { "type": "menu", "title": "Menu 2", "entry":
+ { "type": "menu", "title": "Menu 2", "entries":
[
{ "title": "Amazon", "address": "http://www.amazon.com/s/field-keywords=%s" }
]
@@ -203,7 +188,7 @@ IV. Errors
Types are also separated by a comma.
No comma after the last key-value pair.
No comma after the last type.
- Menu entry uses brackets [], not braces {} and not parentheses ().
+ Menu entries uses brackets [], not braces {} and not parentheses ().
A good way to avoid these errors is to make small incremental changes and test them with
@@ -220,7 +205,7 @@ IV. Errors
-