Axfc Uploader Shortcut Bookmarklet
by
Cherenkov
2010-05-17 [2010/05/17 22:09:30]
ダウンロードへの近道
@@ -1,5 +1,5 @@
/*
- * @title Axfc Uploader Shortcut
+ * @title Axfc Uploader Shortcut Bookmarklet
* @description ダウンロードへの近道
* @include http://*
* @license MIT License
/*
* @title Axfc Uploader Shortcut Bookmarklet
* @description ダウンロードへの近道
* @include http://*
* @license MIT License
*/
(function(){
var str = prompt("Axfc Shortcut - 入力例: H_12345 password", "");
var words = str.replace(/^\s+|\s+$/g, "").split(/\s+/);
if (!/_/.test(words[0])) {
words[0] = words[0] + "_" + words[1];
words[1] = words[2];
}
words[0] = words[0].replace(/_/, "/so/").replace(/\..+/, "");
words[1] = "&key=" + words[1];
open("http://www1.axfc.net/uploader/" + words[0] + words[1])
})()
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。