Created
November 27, 2010 17:54
-
-
Save azu/718116 to your computer and use it in GitHub Desktop.
WebStormにGreasemonkeyの補完候補を追加する
This file contains 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
/** | |
* Created by azu. | |
* Date: 10/11/28 | |
* License: MIT License | |
*/ | |
var unsafeWindow = window; | |
/** | |
* コンソールにログを吐く | |
* @param {Sting} message String (or any object with a .toString() method) The message to display in the console. | |
*/ | |
function GM_log(message) { | |
} | |
/** | |
* GM_setValueでセットした値を削除 | |
* @param {String} name Property name to delete. | |
*/ | |
function GM_deleteValue(name) { | |
} | |
/** | |
* GM_setValueでセットした値を取り出す | |
* @param name Property name to retrieve. | |
* @param defaultvalue If name is not found, then use this property to return a default value. If default is omitted JavaScript undefined is returned. | |
*/ | |
function GM_getValue(name, defaultvalue) { | |
} | |
/** | |
* @return Array | |
*/ | |
function GM_listValues() { | |
return Array; | |
} | |
/** | |
* nameをキーにして値を保存する | |
* @param name Property name to retrieve or create. | |
* @param value | |
*/ | |
function GM_setValue(name, value) { | |
} | |
/** | |
* @resourceで指定したリソースを取り出す | |
* @param resourceName metadata_block_resourceName | |
* @return String | |
*/ | |
function GM_getResourceText(resourceName) { | |
} | |
/** | |
* @resourceで指定したリソースを取り出す | |
* base64 encoded data: URL scheme | |
* @param resourceName metadata_block_resourceName | |
* @return String | |
*/ | |
function GM_getResourceURL(resourceName) { | |
} | |
/** | |
* CSSを適応する | |
* @param css body { color:red } | |
*/ | |
function GM_addStyle(css) { | |
} | |
/** | |
* XMLHttpRequest | |
* @param details | |
*/ | |
function GM_xmlhttpRequest(details) { | |
} | |
/** | |
* urlを新しいタブで開く | |
* @param url http://www.example.com | |
*/ | |
function GM_openInTab(url) { | |
} | |
/** | |
* ユーザコマンドに登録 | |
* @param commandName “Some Name” | |
* @param commandFunc function | |
* @param accelKey “g” | |
* @param accelModifiers “control alt” | |
* @param accessKey “g” | |
*/ | |
function GM_registerMenuCommand(commandName, commandFunc, accelKey, accelModifiers, accessKey) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment