? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

二郎猫

虚拟IT产品

Follow in NewsfeedFollowing

Latest comments:

ZeroNet开发环境绿色免安装包

on Aug 25, 2017

正在制作中....

Read more

ZeroNet项目代码级开发环境搭建

on Aug 24, 2017

系统环境:win10,64位

第一步,CoffeeScript环境搭建。

nodejs官网下载nodejs最新版本,安装默认即可。

nodejs安装OK后,通过npm命令安装CoffeeScript:

npm install -g coffee-script

执行命令,如下:

20170826155129.png (979x512)

第二步:安装ZeroBundle,下载后解压即可。所在目录不可包含空格与中文.

20170826155533.png (126x160)

里面的结构:

20170826155618.png (334x289)

第三步:执行zeronet.cmd一次,会远程下载文件。

20170826160125.png (787x57)

第四步:修改zeronet.cmd,另存为zeronetdebug.cmd

20170826160709.png (593x50)

zeronet.cmd中代码:

@echo off
if "%1" == "" (
    Python\python.exe -m zerobundle.run https://github.com/HelloZeroNet/ZeroNet start.py
) else (
    if not exist ZeroNet (
        Python\python.exe -m zerobundle.run https://github.com/HelloZeroNet/ZeroNet zeronet.py %*
    ) else (
        cd ZeroNet
        ..\Python\python.exe zeronet.py %*
        cd ..
    )
)
pause

zeronetdebug.cmd中代码:

@echo off
if "%1" == "" (
    Python\python.exe -m zerobundle.run https://github.com/HelloZeroNet/ZeroNet start.py
) else (
    if not exist ZeroNet (
        Python\python.exe -m zerobundle.run https://github.com/HelloZeroNet/ZeroNet zeronet.py --debug %*
    ) else (
        cd ZeroNet
        ..\Python\python.exe zeronet.py --debug %*
    cd ..
    )
)
pause

到此,代码开发环境,基本完工。

Read more

ZeroNetBlog头像是如何实现的?

on Aug 24, 2017

第一步,用火狐浏览器前端跟踪,如下图:

____001.png (1051x544)虽然定义了一个img标签,但不是真头像,真实头像是用css中的background-image控制的。

第二步,打开查找css后发现木有background-image定义,如下:

.left .avatar {    background-color: #F0F0F0; width: 60px; height: 60px; -webkit-border-radius: 100%; -moz-border-radius: 100%; -o-border-radius: 100%; -ms-border-radius: 100%; border-radius: 100% ; margin-bottom: 10px;    background-position: center center; background-size: 70%; display: inline-block; image-rendering: pixelated;}

里面木有定义。

第三步,继续查找发现是all.js中用代码定义

$("body").append("<style>.avatar { background-image: url(data:image/png;base64," + imagedata + ") }</style>");

第四步,修改头像...代码如下:

$("body").append("<style>.avatar { background-image: url(data:image/gif;base64,R0lGODlheAB4APcAAAYHBwYHBwYHBwYHBwYICgYJCwYJDAYKDQYKDQcLDg4SFBYaHCEkJDEyMTw8O0VFREpKSU1OS1JTUFteWmRoZWpta3N0cn5/fI2NipmZlaSkn7KyrsHDv9LV0tXY1tfa19ve3OLj4enp5/Py8fr5+fv7+/79/f7+/v7+/v////////////////39/f7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////////7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v////7+/v7+/v7+/v7+/v7+/v////7+/v7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NURMGRISUw2ySXOdXkIWxiAiHYQqVT2RI19meW4alH6cNH0iRAEgTJ/tZrOatRg6QzkoHhqVMRxwKRbWpKJT2I345TvlbxdHyk2axPaVvQ5DlSQytliAhudzSF9CaYj2UjAxwwASHJiSA6tSkLFBa6mBrmtEop4xlRJIIGmLcgCuvTV1LVTtEgIK0/62SKAKgVqF0FvTN6ZGIFIsCvQAavUAEwyvTbsM0mSzDifFB3a+rg+ZzTcy8UKEmxApkIg6wzNQ1MAi7AshKXAEK6lWpt2wqWbgYMIRWAjGDVqCz8Yjix2osuVl7z3mtChgFnjJu6snrjlm6Jq3HZ1y8X8pgHlHOAL1yiAxMA1A9CsodyuTKWySLDLau4uV628oDDnOUxk5nLWj6zROxWrGY0m7nNLnwznNcM5jlDWc52zhue88xgPru5pX6mIaADrWeeBOXQiE70SUCj6EY7uieMfrSkJ70TQlv60pj2SkAAADs=)}</style>");

Read more

iReaderHelper-完美破解掌阅plus,light

on Aug 24, 2017

官方网址:https://www.ireaderfans.com/

  • 绿色软件: 直接解压运行即可。目前完美破解plus,light
  • 简单易用: 鼠标点击几步即可完成hack,开启USB调试功能
  • 其实就是安卓系统root工具,只针对掌阅硬件阅读器。

Read more

测试——小奶猫

on Aug 24, 2017 ·
1 comment

006zLaJQgy1fg85oxdo3vg306408cnpd.jpg (220x300)​​​​​​​

Read more
Add new post

Title

21 hours ago · 2 min read ·
3 comments
Body
Read more

Not found

Title

21 hours ago · 2 min read

0 Comments:

user_name1 day ago
Reply
Body
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More