// ==UserScript== // @name Tieba Advanced // @namespace http://gera2ld.blog.163.com/ // @author Gerald // @icon http://cn.gravatar.com/avatar/a0ad718d86d21262ccd6ff271ece08a3?s=80 // @version 2.7.8 // @description 贴吧增强 - Gerald倾情打造 // @homepageURL http://gerald.top/code/TiebaAdvanced // @include http://tieba.baidu.com/* // @exclude http://tieba.baidu.com/tb/* // @require https://greasyfork.org/scripts/144/code.user.js // @grant none // @downloadURL none // ==/UserScript== // Mask layer var mask=$('
').appendTo('body'); DELAY=2000; // 初始化贴子管理面板 function initPostManager() { if(utils.postManager) return; utils.addStyle('\ #ge_tm{display:none;border-collapse:separate;width:100%;height:100%;background:white;color:#333;padding:20px;border-radius:20px;shadow:0 1px 5px #333;border-spacing:5px;table-layout:fixed;}\ #ge_tm tr{height:1px;}\ #ge_tm tr.ge_td{height:auto;}\ .ge_td>td{width:50%;height:100%;vertical-align:top;position:relative;}\ .ge_td>td>*{width:100%;height:100%;border:1px solid;overflow:auto;background:transparent;'+(window.opera?'position:absolute;':'')+'}\ '); var tm=$('').appendTo(mask); tm.listItems=function(t,e,x,s){ var d=[]; if(x) d.push(''); t.list.forEach(function(i){d.push('');}); e.html(d.join('')); if(s) {x=x?1:0;t.load(s-x);e.prop('selectedIndex',t.last+x);} }; tm.newItem=function(e,d) { tm.list.load(tm.list.length-1); if(!tm.list.cur||tm.list.cur.data) { tm.list.load(tm.list.push(d)); $('').appendTo(tm)), tn=$('').appendTo(c), ti=$('').appendTo($('').appendTo(c)).html('').change(liveShow).blur(saveItem); $('添加').appendTo(c).click(tm.newItem); $('删除').appendTo(c).click(function() { var l=tm.list.last;tm.list.pop(l);ti.children().eq(l).remove();editItem(1); }); c=$('
').appendTo(c); $('关闭').appendTo(c).click(function() { tm.list.save();if(tm.callback) tm.callback(); tm.animate({top:innerHeight+'px'},300,function() {$(this).hide();mask.fadeOut('fast');}); }); $('
').appendTo(tm); c=$('').appendTo(tm); var tc=$('
').appendTo($('
编辑框预览框