Neko is a little cat who sits on the webpage and chases the mouse pointer / touch around.
When you run the demo webpage index.html, a webpage is opened with Neko inside it.
- As you move the mouse, Neko will follow.
- If the mouse is inside the webpage and it is not moving, Neko will go to sleep.
- When the mouse is moved Neko will awake and will chase the mouse.
- If the mouse is outside the window, Neko will scratch the webpage window boundary and goes to sleep.
Written by Kagurazaka Yashi. Taking ingredients from Windows Version : The original program (X Window) was written by Masayuki Koba and later modified by Tatsuya Kato.
npm install --save jquery- Open
index.html
npm install --save jquerynpm install --save google-closure-compilersh g_wpplugin.shorsh g_wpplugin-addjq.sh(include jquery)- Upload the
wpNekofolder to the/wp-content/plugins/directory. - Activate the
wpNekoplugin through thePluginsmenu in WordPress.
Add:
sh g_tampermonkey.sh- Tampermonkey® Icon -
Create a new script - copy the contents of
tampermonkey/wneko.jsto Editor - File - Save
Edit:
sh g_tampermonkey.sh- Tampermonkey® Icon -
Dashboard-Installed userscripts - Edit
wNeko - copy the contents of
tampermonkey/wneko.jsto Editor
Link URLs:
- Texture:
//github.com/kagurazakayashi/wNeko/blob/master/texture/neko2/t_neko2.gif?raw=true - Jquery:
//code.jquery.com/jquery-1.11.0.min.js- Edit:
tampermonkey/wneko.tmp.js- Line 20:
url_nico - Line 21:
url_nicocur
- Line 20:
- Edit:
A configuration program has been supplied with wNeko. Double click on the neko. From here you can set all of the options for wNeko.
sh change.sh <texturename>
<texturename>: neko2(default)/neko/bsd/dog/tora/sakura/tomoyo
texturename copyright: texture/<texturename>/COPYRIGHT
Optional step: Update WordPress Plugin
♥ Texture List ♥
Having too many Nekos - especially if they're high speed will result in a reduction of system resources. This is unavoidable.
TERMS OF USE
This program is totally unsupported FREEWARE and you use it at your own risk. Neither the author nor anyone involved in the distribution of this program can be held responsible for any damage or loss of revenue that the use of this program may cause.
As this program is unsupported, the author is under no obligation to read or reply to any questions regarding the operation of this program.
If you do not agree with these terms, you may not use this software.
Code License : MIT.
Neko 是一只小猫(也可以通过 change.sh 替换为其他皮肤),它可以显示在你的网页中。
你只需要打开示例网页 index.html, 你就可以看到它。
- 当你移动鼠标指针或者触摸屏幕的时候,它就会追逐你的鼠标指针或触摸位置。
- 当鼠标在网页中但是没有移动时,它会在指针或触摸点旁边睡觉。
- 直到鼠标再次移动或屏幕再次被触摸,便会惊醒过来并继续追逐。
- 如果鼠标移动到了网页以外,它会在网页窗口边缘附近做抓挠动作并进入睡眠。
程序由 神楽坂雅詩 制作。参考自 Windows 中的版本 : 最开始运行在 X Window 中的程序 oneko 由 Masayuki Koba 制作,后来由 Tatsuya Kato 移植到了 Windows 3x - 9x 中。
- 安装依赖
npm install --save jquery - 打开示例网页
index.html
- 安装依赖
npm install --save jquery - 安装依赖
npm install --save google-closure-compiler - 生成插件
sh g_wpplugin.sh或sh g_wpplugin-addjq.sh(嵌入 jquery) - 上传
wpNeko文件夹到 WordPress 所在文件夹的/wp-content/plugins/文件夹中。 - 在 WordPress 后台打开插件菜单并启用
wpNeko。
添加到油猴插件:
- 生成脚本
sh g_tampermonkey.sh - 点击油猴插件图标,选
添加新脚本... - 拷贝
tampermonkey/wneko.js中的内容到打开的编辑器中 - 编辑器中的文件菜单 - 保存
编辑油猴插件中的脚本:
- 生成脚本
sh g_tampermonkey.sh - 点击油猴插件图标,选
管理面板-已安装脚本 - 修改
wNeko脚本 - 拷贝
tampermonkey/wneko.js中的内容到打开的编辑器中
修改从其他网站中载入的资源网址:
- 模型:
//github.com/kagurazakayashi/wNeko/blob/master/texture/neko2/t_neko2.gif?raw=true - jquery:
//code.jquery.com/jquery-1.11.0.min.js- 编辑以上设置: 在文件
tampermonkey/wneko.tmp.js中- 第 20 行:
url_nico变量 - 第 21 行:
url_nicocur变量
- 第 20 行:
- 编辑以上设置: 在文件
双击它可以打开一个设置窗口,进行常用的设置。(目前仅临时生效,永久生效请直接修改 wneko.js 中的变量)
sh change.sh <皮肤名称>
<皮肤名称>: neko2(默认)/neko/bsd/dog/tora/sakura/tomoyo
查看皮肤版权: texture/<皮肤名称>/COPYRIGHT
之后可以通过执行 WordPress 插件生成步骤更新插件中的皮肤。
♥ 查看皮肤列表和预览 ♥
刷新速度设置过快会导致别人访问网页时发生浏览器大量处理器占用,这是无法避免的。
这个程序是完全免费和开源的软件。作者不提供任何支持,作者和任何参与本项目的人都不会对使用本项目可能造成的任何损害或收入损失负责,你需要自行承担风险。
代码部分使用 MIT 协议授权。
皮肤由不同的作者制作,查看皮肤版权: texture/<皮肤名称>/COPYRIGHT 。
如果你不同意这些条款,请不要使用。