aboutsummaryrefslogtreecommitdiffstats
path: root/copy.js
AgeCommit message (Collapse)Author
2012-02-26fix: syntax error at config's exampleTaro Matsuzawa aka. btm
2011-09-13libly.Wedata ↵anekos
のコンストラクタでURIエンコードしたものを渡さなくてもいいようにした
2011-07-27coderepos ちゃうんやでanekos
2011-05-29fix for eaa063f66dbblyrical_logical
see http://code.google.com/p/vimperator-labs/source/diff?spec=svneaa063f66dbb3bc0d074b290fb79e273e2003fde&r=eaa063f66dbb3bc0d074b290fb79e273e2003fde&format=side&path=/common/modules/storage.jsm
2010-11-29Fix <updateURL>anekos
2009-11-10v2.3の新しいヘルプに対応teramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35883 d0d07461-0603-4401-acd4-de1884942a52
2009-09-01fix a typosuVene
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35152 d0d07461-0603-4401-acd4-de1884942a52
2009-08-19Change to use arg.literalArg.anekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34918 d0d07461-0603-4401-acd4-de1884942a52
2009-08-19fix a typoanekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34917 d0d07461-0603-4401-acd4-de1884942a52
2009-08-19ごめん、あやまったものでcommitしてしまったteramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34916 d0d07461-0603-4401-acd4-de1884942a52
2009-08-19add %CLIP% variable which is previous clipboard stringteramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34915 d0d07461-0603-4401-acd4-de1884942a52
2009-08-19-appendモード追加teramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34914 d0d07461-0603-4401-acd4-de1884942a52
2009-08-17%HTMLSEL%でタグ名が大文字のままになるバグ修正teramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34882 d0d07461-0603-4401-acd4-de1884942a52
2009-08-13%HTMLSEL%のタグ名を小文字化teramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34871 d0d07461-0603-4401-acd4-de1884942a52
2009-02-10HTMLSEL / SEL が動いていなかったのを修正anekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29860 d0d07461-0603-4401-acd4-de1884942a52
2009-02-07add some keywords.anekos
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29671 d0d07461-0603-4401-acd4-de1884942a52
2009-02-04custom function に渡すの忘れてた[29547]suVene
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29550 d0d07461-0603-4401-acd4-de1884942a52
2009-02-04custom method の場合にも置換後の文字列を渡すように ↵suVene
parameter 追加 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29547 d0d07461-0603-4401-acd4-de1884942a52
2009-01-26何度も :source 可能にsuVene
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29079 d0d07461-0603-4401-acd4-de1884942a52
2009-01-26args が null の時の対応suVene
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29075 d0d07461-0603-4401-acd4-de1884942a52
2009-01-26fixed typo.suVene
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29069 d0d07461-0603-4401-acd4-de1884942a52
2009-01-26Oops. delete debug code.suVene
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29068 d0d07461-0603-4401-acd4-de1884942a52
2009-01-26* custom 関数の実行確認強化.suVene
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29066 d0d07461-0603-4401-acd4-de1884942a52
2009-01-26load wedata, and add optionssuVene
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29038 d0d07461-0603-4401-acd4-de1884942a52
2008-12-24add updateURL for pluginManager.jssuVene
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27364 d0d07461-0603-4401-acd4-de1884942a52
2008-12-19plugiinManager対応teramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@27088 d0d07461-0603-4401-acd4-de1884942a52
2008-11-28change algorithm(replaceVariable) and fix bugteramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25278 d0d07461-0603-4401-acd4-de1884942a52
2008-11-27optimize completer's codeteramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25152 d0d07461-0603-4401-acd4-de1884942a52
2008-11-27follow CVS HEAD (fix: command argument and completer)teramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25054 d0d07461-0603-4401-acd4-de1884942a52
2008-11-262.0pre対応pekepeke
refcontrol, autoproxychanger 追加 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24976 d0d07461-0603-4401-acd4-de1884942a52
2008-11-22follow CVS HEADteramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24670 d0d07461-0603-4401-acd4-de1884942a52
2008-11-19cosmetic changeteramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@24352 d0d07461-0603-4401-acd4-de1884942a52
2008-11-02fix titleAndURL's description on completionjanus_wel
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22590 d0d07461-0603-4401-acd4-de1884942a52
2008-11-01handling for 2.0prepekepeke
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22491 d0d07461-0603-4401-acd4-de1884942a52
2008-10-15namespaceの省略(vimperator CVS headと旧版との互換性維持のため)teramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@21395 d0d07461-0603-4401-acd4-de1884942a52
2008-10-06vimp CVS Headに追従(bang[!])の仕様変更に対して)teramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@20856 d0d07461-0603-4401-acd4-de1884942a52
2008-09-21Fix:teramako
* indent * command arguments handling git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@19677 d0d07461-0603-4401-acd4-de1884942a52
2008-07-01ちょっと分かり難いのでASINコード取得のサンプルを修正teramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@15010 d0d07461-0603-4401-acd4-de1884942a52
2008-06-20custom function のサポートteramako
mapのサポート git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@14325 d0d07461-0603-4401-acd4-de1884942a52
2008-05-11CVS HEADに対応trapezoid
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@11409 d0d07461-0603-4401-acd4-de1884942a52
2008-04-23lang/javascript/vimperator-plugins/trunk/copy.js:drry
* `Array` オブジェクトに対する `for each` 文を回避しました。 * インデントの混在を統一しました。 * ほか。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@10226 d0d07461-0603-4401-acd4-de1884942a52
2008-04-23lang/javascript/vimperator-plugins/trunk/copy.js :teramako
globalVariables.copy_templatesをそのまま使うように変更 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@10224 d0d07461-0603-4401-acd4-de1884942a52
2008-04-13lang/javascript/vimperator-plugins/trunk/copy.js: teramako
* vimperatorrcからテンプレートを読むように変更[[BR]](see [http://www.karashi.org/~poppen/d/20080410.html#p01]) * その他 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@9404 d0d07461-0603-4401-acd4-de1884942a52
2008-04-02lang/javascript/vimperator-plugins/trunk/copy.js: fix completer methodteramako
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8695 d0d07461-0603-4401-acd4-de1884942a52
2008-03-26lang/javascript/vimperator-plugins/trunk/copy.js: some fixtrapezoid
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8423 d0d07461-0603-4401-acd4-de1884942a52
2008-03-26lang/javascript/vimperator-plugins/trunk/googlesugest.js: rename -> ↵trapezoid
googlesuggest.js git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8412 d0d07461-0603-4401-acd4-de1884942a52
2008-03-26lang/javascript/vimperator-plugins/trunk/copy.js: CVS HEADに対応trapezoid
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8405 d0d07461-0603-4401-acd4-de1884942a52
2008-03-21lang/javascript/vimperator-plugins/trunk/xpathBlink.jsdrry
lang/javascript/vimperator-plugins/trunk/autoIgnoreKey.js lang/javascript/vimperator-plugins/trunk/copy.js lang/javascript/vimperator-plugins/trunk/lookupDictionary.js lang/javascript/vimperator-plugins/trunk/splitBrowser.js lang/javascript/vimperator-plugins/trunk/gmperator.js: * 消えたファイルを trunk にコピーしました。 * ほか。 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@8235 d0d07461-0603-4401-acd4-de1884942a52
ss="p">); return; } // get number of displayed items var numofList = arg.match(/^\d+$/) ? arg : (liberator.globalVariables.nnp_coop_numoflist || 10); // struct display string // generate data var items = new Array; for(var i=0 ; i<nodesLength && i<numofList ; ++i ) { // get video id var id = nodes[i].href.match(/\d+$/); // build thumnail's URL // refer: http://d.hatena.ne.jp/ZIGOROu/20081014/1223991205 var thumbnail = thumbnailURL.replace(/\$HOSTNUMBER/g, id % 2 + 1) .replace(/\$VIDEO_ID/g, id); // evaluate variables and push to list items.push( itemHTML.replace(/\$INDEX/g, i + 1) .replace(/\$THUMBNAILURL/g, thumbnail) .replace(/\$TITLE/g, nodes[i].textContent) .replace(/\$URL/g, nodes[i].href) ); } // evaluate variables var caption = captionTemplate .replace(/\$NUMOFDISPLAY/g, (nodesLength < numofList) ? nodesLength : numofList) .replace(/\$NUMOFTOTAL/g, nodesLength) .replace(/\$PLAYTITLE/g, playTitle) .replace(/\$STATUSES/g, statuses); // final processing var str = styles + tableTemplate.replace(/\$CAPTION/g, caption) .replace(/\$THEAD/g, thead) .replace(/\$ITEMS/g, items.join('')); liberator.echo(str, liberator.modules.commandline.FORCE_MULTILINE); },{} ); // stuff functions // return first node function $f(query, node) { node = node || window.content.document; var result = (node.ownerDocument || node).evaluate( query, node, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null ); return result.singleNodeValue ? result.singleNodeValue : null; } // return snapshot nodes list function $s(query, node) { node = node || window.content.document; var result = (node.ownerDocument || node).evaluate( query, node, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null ); var nodes = []; for(var i=0 ; i<result.snapshotLength ; ++i) nodes.push(result.snapshotItem(i)); return nodes; } // define other commands // only send CommandEvent to NicoNicoPlaylist script [ [['nnppushallvideos'], "push all videos to NicoNicoPlaylist", 'GMNNPPushAllVideos'], [['nnppushthisvideo'], "push current video to NicoNicoPlaylist", 'GMNNPPushThisVideo'], [['nnpplaynext'], "play next in NicoNicoPlaylist", 'GMNNPPlayNext'], [['nnpremove'], "remove item in NicoNicoPlaylist", 'GMNNPRemove'], [['nnpclear'], "clear all items in NicoNicoPlaylist", 'GMNNPClear'], [['nnprandom'], "toggle random mode of NicoNicoPlaylist", 'GMNNPRandom'], [['nnploop'], "toggle loop mode of NicoNicoPlaylist", 'GMNNPLoop'], [['nnpfullscreen'], "toggle fullscreen mode of NicoNicoPlaylist", 'GMNNPFullScreen'], ].forEach( function ([command, description, eventname]){ liberator.modules.commands.addUserCommand(command, description, function (arg) { var r = document.createEvent("CommandEvent"); r.initCommandEvent(eventname, true, true, arg.string); window.content.dispatchEvent(r); },{} ); } ); })(); // vim:sw=4 ts=4 et: