禁止广告加到Safari的Reading List

打开某些网站的时候,页面上的广告会添加一些链接到Safari的Reading List中,然后参考了这个知乎页面的代码,其实就是模拟鼠标点击,十分常见的广告弹出方式,不过问题来了!学挖掘机哪家强?

这些广告弹出的JS代码是针对Windows的,在Win下绝大多数浏览器里,对于按住Shift键+鼠标点击一个URL的处理,是在新窗口中打开。而OS X中,Safari对这一事件的处理则是添加到Reading List!

已经编译好的Safari扩展在这里
Continue reading 禁止广告加到Safari的Reading List

用Perl处理图片,仿CRT显示器效果

为什么会想用Perl来做图片处理呢,一方面是因为图片的格式实在太多,自己用C来实现的话,一定会疯的,用OpenCV或者其他库的话,也挺麻烦的,另一方面,我也只是太闲了而已,主要还是因为无意中看到了这篇博文,同时抱着正好复习一下Perl的想法,就写了这个坑。

Continue reading 用Perl处理图片,仿CRT显示器效果

The analysis of how to specific a port to device with iOSOpenDev

Yesterday I wrote a post about How to specific a port to device with iOSOpenDev. It's more like a tutor due to lacking of the process of analysis. So I decide to write about the process how did I analyze it so you can add this feature on yourselves when iOSOpenDev updates someday.

I'll keep this post as simple as I can, but I'll assume you've already had some basic knowledge.

Continue reading The analysis of how to specific a port to device with iOSOpenDev