天涯改版,原天涯只看楼主js失效,js作者更新,见
http://hi.baidu.com/ymerlin
对应sidki,Exceptions-U.ptxt 更新:
Code: Select all
www.tianya.cn/publicforum/content/ $SET(sUserJSB=var doc = document;var topPage = doc.getElementById('pageDivTop');if (topPage) {var topPage_c = topPage.cloneNode(true);topPage_c.setAttribute("id", 'TopClone');topPage.parentNode.insertBefore(topPage_c, topPage);topPage.style.display = "none";} var bottomPage = doc.getElementById('pageDivBottom');if (bottomPage) {var bottomPage_c = bottomPage.cloneNode(true);bottomPage_c.setAttribute("id", 'bottomClone');bottomPage.parentNode.insertBefore(bottomPage_c, bottomPage);bottomPage.style.display = "none";} var lzonly = doc.getElementById("__ty_vip_1");var span_child = lzonly.parentNode.childNodes;for (var i=0; i<span_child.length; i++) {if (span_child[i].tagName == "A") {switch (span_child[i].innerHTML) {case '只看楼主':span_child[i].setAttribute("onclick","javascript:V.lookByAuthor(V.author); void 0;");break;case '高亮楼主':span_child[i].setAttribute("onclick","javascript:V.redByAuthor(V.author); void 0;");break;case '只看某人回复':span_child[i].setAttribute("onclick","javascript:selectWriter(); void 0");break;case '关注此帖':span_child[i].innerHTML = '返回';span_child[i].setAttribute("onclick","javascript:V.lookByAuthorBack(); void 0;");break;case '免费试用百宝箱':span_child[i].setAttribute("href","javascript:void(4)");span_child[i].setAttribute("onclick","javascript:alert('You are using it now!'); void 0;");break;}}}function selectWriter( ) {var options = V.getAllWriters();var numbers = options.numbers;var writers = options.writers;var div = V.$( V.WRITERS_DIV );if ( !V.isShowAllWriter ) {var li, em;var length = numbers.length;var newDoc = document.createDocumentFragment();for (var i = length - 1; i >= 0; i--) {li = document.createElement("li");li.innerHTML ='<em>'+writers[i]+'</em>'+numbers[i]+'';new Elem(li).addEventListener('click', function(event) {var el = event.target || event.srcElement;var reg = document.all ? '<EM>' : '<em>';if (el.innerHTML.indexOf(reg) > -1){return;}V.writer = el.innerHTML;V.hide( "userlist" );V.lookByAuthorBack();V.lookByAuthor(V.writer);});newDoc.appendChild(li);}div.appendChild(newDoc);newDoc = null;V.isShowAllWriter = true;}V.show( "userlist" );};)