Skip to content

Instantly share code, notes, and snippets.

@RobertYim
RobertYim / postFakeAppleID-Parameter Ver
Created October 20, 2015 15:33 — forked from chitanda/postFakeAppleID-Parameter Ver
循环往钓鱼网站库里写虚假帐号和密码。目前自动模式只支持form表格提交的钓鱼网站。使用方法:在钓鱼网站页面打开浏览器开发者工具,将下面的代码复制到`console`中运行即可。自定义效果的话只需要按照函数说明的样式填写四个参数即可。eg loopPost(10,12,2000,2000)
/**
* [loopPost 循环往钓鱼网站库里写虚假帐号和密码。目前自动模式只支持form表格提交的钓鱼网站]
* @param {[type]} min [帐号和密码的最小长度,默认为6]
* @param {[type]} max [帐号和密码的最大长度,默认为12]
* @param {[type]} timeGap [发送数据的时间间隔,单位为ms,不需要填写单位。默认为500]
* @param {[type]} times [一共发送的虚假帐号个数,默认为5000]
* @return {[type]} [description]
*/
function loopPost(min,max,timeGap,times){
var scr = document.createElement('script');
scr.type = 'text/javascript';
scr.src = "http://libs.baidu.com/jquery/1.9.0/jquery.min.js";
document.head.appendChild(scr);
scr.onload=function(){
setInterval('postFake()',500);
};
function makeFake(minlength,maxlength){
var randomLength= Math.floor(Math.random()*(maxlength-minlength))+minlength;
# opening and closing windows and popovers
defaults write -g NSAutomaticWindowAnimationsEnabled -bool false
# smooth scrolling
defaults write -g NSScrollAnimationEnabled -bool false
# showing and hiding sheets, resizing preference windows, zooming windows
# float 0 doesn't work
defaults write -g NSWindowResizeTime -float 0.001

#Remove Dock Icon of Mac OSX App

How to get rid of unnecessary dock icons.

##Generic

Navigate to the app and look in the container for info.plist. Open info.plist and add or modify the LSUIElement Element.

LSUIElement