html-muncher可以实现这样的代码混淆,他是用python编写的,github地址 https://github.com/dgram/html-muncher
安装
用git从 http://github.com/ccampbell/html-muncher 下载到本地
cd html-muncher
python setup.py install
使用
munch --help
混淆css文件及html内的class名称
munch --css demo/css --html demo/views
混淆一个包含css及js代码的html文件
munch --html demo/single-file/view-with-inline-styles.html
混淆多个css文件及html文件
munch --css file1.css,file2.css --html view1.html,view2.html
混淆多个目录下匹配的css文件及html文件
munch --css /my/css/directory,global.css --html /view/directory1,/view/directory2,/view/directory3,template.html
网友回复