
登录贴吧,打开 www.baidu.com/p/setting/profile/portrait
制作并运行书签:
javascript:var i=document.createElement('input');i.type='file';document.getElementsByClassName('setting-profile-title')[0].appendChild(i);
选择gif动态图片。(运行第二步的书签后会显示“选择文件”项)

制作并运行书签:
javascript:var f=new FormData();f.append('ct',4);f.append('spIsBlogPicAdd',2);f.append('spAlbumName','abc');f.append('BrowserType',1);f.append('spRefURL','替换一');f.append('Filename','blob.png');f.append('cm',1);f.append('file',i.files[0]);f.append('upload','baidu sumit headportrait');var xhr=new XMLHttpRequest();xhr.open('POST','替换二'+App.router.global.login_userInfo.portrait);xhr.withCredentials=true;xhr.send(f);
将楼上代码中标注的两处替换成以下内容,制作成书签:
替换一:http://www.baidu.com/p/setting/profile/portrait
替换二:http://himg.baidu.com/sys/upload/
没了 自身亲测使用
