- var win = external.menuArguments;
- var links = [];
- var joinedLinks = "";
- var fns = [];
- var joinedFNs = "";
- var count = 0;
- with(win)
- if (typeof(gPhotosInfo) == "object") {
- for (var i in gPhotosInfo) {
- var url = getPhotoOriginSrc(i);
- var fn = getPhotoDescr(i).replace(/(^\s*)|(\s*$)/g, "");
- if (fn.substr(fn.length-6).indexOf(".")==-1) {
- var ext = getPhotoOriginSrc(i);
- ext = ext.substr(ext.lastIndexOf("."));
- fn += ext;
- }
- links[count] = url + "?/" + fn;
- fns[count] = fn;
- count++;
- }
- joinedLinks = links.join('#@#');
- joinedFNs = fns.join('#@#');
- } else if(typeof(gAlbumsIds) == 'object') {
- var ft=document.getElementById('footer');
- ft.innerText='';
- base = 'http://photo.163.com/photos/'+gUserId+'/';
- row = ft.insertRow(); row.height='30px'; row.bgColor='silver';
- cell = row.insertCell(); cell.innerText='序号'; cell.width='25px';
- cell = row.insertCell(); cell.innerText='页码'; cell.width='25px';
- cell = row.insertCell(); cell.innerText='页数'; cell.width='30px';
- cell = row.insertCell(); cell.innerText='状态'; cell.width='60px';
- cell = row.insertCell(); cell.innerText='相册'; cell.width='150px';
- cell = row.insertCell(); cell.innerText='说明'; cell.width='150px';
- for (var i=0; i!=gAlbumsIds.length; i++) {
- row=ft.insertRow(); row.height='25px';
- row.onMouse
- row.insertCell().innerText=i+1;
- row.insertCell().innerHTML=''+(Math.floor(i/16)+1)+'';
- row.insertCell().innerHTML=gAlbumsInfo[gAlbumsIds[i]][2]
- row.insertCell().innerHTML=PHOLDER_PRIVACY_LABELS[gAlbumsInfo[gAlbumsIds[i]][1]];
- row.insertCell().innerHTML=''+gAlbumsInfo[gAlbumsIds[i]][3]+'';
- row.insertCell().innerHTML=gAlbumsInfo[gAlbumsIds[i]][4];
- row=ft.insertRow(); row.height='1px'; row.bgColor='silver';
- row.insertCell(); row.insertCell(); row.insertCell(); row.insertCell(); row.insertCell(); row.insertCell();
- }
- }
- else {
- alert('不是163相册吧……\x0D\x0A要么您点的太快了?');
- }
- if joinedLinks<>"" then
- Dim vbLinks
- vbLinks = Split(joinedLinks, "#@#")
- vbFNs = Split(joinedFNs, "#@#")
- ReDim params(Ubound(vbLinks)*2+2)
- params(0)=external.menuArguments.document.Url
- for u = 0 to Ubound(vbLinks)
- params(u*2+1) = vbLinks(u)
- params(u*2+2) = vbFNs(u)
- next
- On Error Resume Next
- set JetCarCatch=CreateObject("JetCar.Netscape")
- if err<>0 then
- MsgBox("FlashGet not properly installed!"+ vbCrLf+"Please Install FlashGet again")
- else
- JetCarCatch.AddUrlList params
- end if
- end if
更新或者安装方法(如果右键菜单里已有X163的项则只需更新)
打开notepad,输入以上内容,存到/覆盖到
C:\windows\web\X163.htm
更新到此就结束了
如果新安装的话
输入以下内容
- Windows Registry Editor Version 5.00
- [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\(&X)X163]
- @="C:/WINDOWS/Web/X163.htm"
- "Contexts"=dword:000000ff
存到C:\windows\web\X163.reg,运行C:\windows\web\X163.reg
关掉所有的IE窗口,重进IE,Maxthon的话也要关掉重进
打开一个163相册,右键菜单里面会多一个X163的项
点他,一切你自己就明白了
新版的X163除了更新支持blog形态的163图片地址
支持了直接与FlashGet的交互,直接由FlashGet下载同时改名
不用再点什么按钮了,直接右键菜单X163搞定一切,由FlashGet重命名、原来脚本之类的不用了
当然,如果没有装FlashGet,我也就只有……了
ps.新版的blog空间貌似很不能行,大家OX时请温柔,被ban了就反而不爽了