Greasy Fork is available in English.

usefull functions

none

このスクリプトは単体で利用できません。右のようなメタデータを含むスクリプトから、ライブラリとして読み込まれます: // @require https://update.greasyfork.org/scripts/22002/139945/usefull%20functions.js

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください。
作者
Arnie
バージョン
0.0.1.20160804112017
作成日
2016/08/04
更新日
2016/08/04
ライセンス
不明

Useful Functions

In this Repo I save functions they are helpful to create UserScripts. You can integrated they for example like this:


@require https://raw.githubusercontent.com/ArnieTheOne/useful-functions/master/functions.js

Functions are:

changeColor(objId, objClass, bgColor, fontcolor)

changeSize(objId, objClass, width, height)

getKeycodes()

keydown(keycode, run)

keypress(keycode, run)

keyup(keycode, run)

pressKey(elem, keycode)

Example:
changeColor('centerContainer', 'container', 'black', 'white')
changeColor('#centerContainer', '.container', 'black', 'white')

This functions will change the background- and the font-color of every element with the class 'container' or the Id centerContainer to black and white. The two Functions have the same result - you can use '#' and '.' or not :)