解决在Firefox下面Live Space“发布日志”按钮被禁用的问题
也许你发现了上面的帖子。
这个帖子是我在进行测试,看看能不能启用Live Space的“发布日志”按钮。
事实上是成功了,特将其分享给大家。
首先,你需要安装Firefox扩展 greasemonkey。这个扩展可以使你在加载一个页面的时候执行一段你自己的Javascript程序。
安装之后,将下面的程序拷贝到一个文本文件,并把扩展名改成 .user.js。(务必是.user.js,否则greasemonkey无法自动安装之)。
===脚本开始,拷贝时请不要包含这一行===
// ==UserScript==
// @name Enable Live Space Post Button
// @namespace http://ftofficer.spaces.live.com
// @description Enable Live Space Post Button
// @include http://*.spaces.live.com/*
// ==/UserScript==
function LiveSpace_enableButton(id) {
var button = document.getElementById(id);
if ( button ) {
var cls = button.getAttribute("class");
var clsNameEnd = cls.indexOf("spDisabled");
if ( clsNameEnd != -1 ) {
clsNameEnd–; // skip " " before spDisabled
var newCls = cls.substring(0, clsNameEnd);
button.setAttribute("class", newCls);
button.setAttribute("mi:state", "enabled");
var aNode = document.createElement("a");
aNode.id = id;
aNode.href = "#";
}
}
}
LiveSpace_enableButton("actionToolbarBlogPost");
LiveSpace_enableButton("actionToolbarSave");
===脚本结束,拷贝时请不要包含这一行===
然后将这个js文件拖放到Firefox窗口中,greasemonkey会弹出对话框询问是否安装,选择是,即可完成安装。
然后,去Live Space的“添加日志”当中看看吧。
如果看到“发布日志”和“保存为草稿”仍然没有启用的话,请看看greasemonkey当中配置的网直通配符是不是和你的网址一致,自己改改看看。在不行可以在这里回复。

谢谢你!成功了!
顺便~
LiveSpace_enableButton("actionToolBarListAddItem");
orz没反应……
"actionToolBarListAddItem"这是哪个Item?
分析一下加上。
似乎是本来就没有js逻辑……
太感谢了!:D
相当困扰。
为什么只有firefox出这个问题呢。。。故意的?
终于好了
谢谢~
^_^
仍然不行。。。看来是今天spaces出了问题
Thank you!
谢谢 啊 ,成功的说
很感谢。这问题困扰许久,终于解决了~~
wow gold!All wow gold US Server 24.99$/1000G on sell! Cheap wow gold,wow gold -109121425091006
Welcome to enter (wow gold) and (wow power leveling) trading site, (Rolex) are cheap, (World of Warcraft gold) credibility Very good! Quickly into the next single! Key words directly to the website click on transactions!
thanks