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
| // ==UserScript== | |
| // @name emblur | |
| // @desc Unfocuses <embed>/<object> on focus. | |
| // @help Hold shift/ctrl to turn off temporarily. | |
| // @include main | |
| // @author satyr | |
| // @license X | |
| // ==/UserScript== | |
| function emblur(e){ | |
| switch(e.type){ |
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
| Utils.extend(feed, { | |
| title: 'google++', | |
| author: { | |
| name: 'satyr', email: 'murky.satyr\x40gmail.com', | |
| homepage: 'http://satyr.github.com', | |
| }, | |
| license: 'X', | |
| }) | |
| const | |
| Google = 'https://www.google.com/', |
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
| XML.prettyPrinting = XML.ignoreWhitespace = false; | |
| const | |
| Name = 'bijin-tokei', | |
| BT = 'http://www.bijint.com', | |
| Base = [<div class={Name +' root'} | |
| ><div class="acts" | |
| ><input type="button" id="copy" accesskey="c" disabled="disabled" value="Copy" | |
| /><input type="button" id="open" accesskey="o" disabled="disabled" value="Open" | |
| /></div | |
| ><div id={Name} class="content"> </div |
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
| const | |
| H = Utils.escapeHtml, | |
| Aliases = { | |
| t: { | |
| help: 'title', | |
| get text(){ return info().title }, | |
| }, | |
| u: { | |
| help: 'URL', | |
| get text(){ return info().url }, |
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
| CmdUtils.CreateCommand({ | |
| name: 'google bookmark example?', | |
| description: '?', | |
| preview: function gbe_preview(pb){ | |
| pb.innerHTML = '...'; | |
| CmdUtils.previewAjax(pb, { | |
| url: 'http://www.google.com/bookmarks/?output=xml', | |
| dataType: 'text', | |
| success: function gbe_success(xml){ | |
| var {bookmarks} = XML(xml.replace(/<\?[^>]*>/, '')); |
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
| const Name = 'gatherer', Gatherer = 'http://gatherer.wizards.com/', | |
| Base = '<style>\ | |
| a img {border:none}\ | |
| tr {background-color:inherit !important}\ | |
| td {padding:0 .2em 1ex !important; width:auto !important}\ | |
| .error {font-style:oblique; line-height:1.8}\ | |
| .logo {display:inline-block}\ | |
| .logo > img {max-width:100%; vertical-align:middle}\ | |
| .loading {opacity:0.9}\ | |
| .loading + .logo {opacity:0.4}\ |
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
| var Name = 'jamazon', | |
| Jamazon = 'http://www.amazon.co.jp/', | |
| ItemMax = 35, | |
| Logo = '<a class="logo" href="'+ Jamazon +'" accesskey="0">' | |
| + '<img border="0" width="126" height="28" align="middle" src="' | |
| + 'http://g-ecx.images-amazon.com/images/G/09/gno/images/general/' | |
| + 'navAmazonLogoFooter._V28243234_.gif' | |
| + '"/></a>', | |
| Base = '<style>\ | |
| .head {padding:0 0.4em}\ |
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
| var noun_typed_text = { | |
| name: 'typed text', | |
| suggest: function suggestTyped(txt, htm, cb, si){ | |
| return !si && {text: txt, summary: htm, score: .4} | |
| }, | |
| } | |
| var replace = CmdUtils.CreateCommand({ | |
| name: 'replace', | |
| icon: 'chrome://ubiquity/skin/icons/page_refresh.png', |
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
| function cmd_toggle_autohide(){ | |
| displayMessage(toggleAutoHide(context.chromeWindow.gUbiquity), this); | |
| } | |
| function toggleAutoHide(U){ | |
| var p = U.msgPanel, nah = noAutoHide(p), b = nah !== 'on'; | |
| p.setAttribute('noautohide', b); | |
| p[(b ? 'add' : 'remove') +'EventListener']('keydown', manualHide, false); | |
| return nah; | |
| } | |
| function noAutoHide(p){ |
NewerOlder