諗都唔洗諗,立即左Keyboard右滑鼠花半粒鐘時間Fix返佢,順便造福人群。
呢個Userscript Fix返幾樣o野:
- 快速回覆會好似以前咁浮動形式+摺合。
- Helianthus.annuus果個Message Template,如果太多自訂訊息會按唔到OK制,亦新增唔到。
- 刪除阻住晒既討論區守則。
- 刪除阻住晒既咖啡色Menu bar。
- 刪除阻住晒既高登 Logo。
- 修正頁面闊度
- 放大Menu bar左手邊o的字
- 加返[返回吹水台]
暫時Fix返以上係我覺得對我好唔方便既野。
如果真係後繼無人,或者之後有時間再更新這個Post,增加一下功能。
使用方法一如以往新增一個Userscript,Copy And Paste,Save,搞掂。
18/Jan/2012 20:56 Update :
似乎好多巴打都有用,我岩岩再Update左一次,現在Resize browser後,條快速回覆Bar都會起度。
起高登不便出Post,有什麼想加或Bug可留言,因為林祖舜之前都因為我寫高登Post Parser而Bam過我一次。 :fuck:
// ==UserScript==
// ==UserScript==
// @name HKGolden.js
// @namespace HKGolden.js
// @description 修正/增強HKGolden
// @include http://forum*.hkgolden.com/topics.aspx?type=*
// @include http://forum*.hkgolden.com/view.aspx?type=*&message=*
// @include http://forum*.hkgolden.com/view.aspx?message=*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
// @require http://cachedcommons.org/cache/jquery-bbq/1.2.1/javascripts/jquery-bbq.js
// ==/UserScript==
var QrOpenTop = 27;
var QrCloseTop = 322;
function toggleNMTop() {
var status = jQuery('#QrStatus').text();
if (status == 'show') {
jQuery('#newmessage').animate({
top: window.innerHeight - QrOpenTop
}, 400);
jQuery('#QrStatus').text('hide');
} else {
jQuery('#newmessage').animate({
top: QrCloseTop
}, 400);
jQuery('#QrStatus').text('show');
}
return false;
}
function PosQrDiv() {
jQuery('#newmessage').css('top', window.innerHeight - QrOpenTop);
}
document.body.onresize = PosQrDiv;
jQuery(document).ready(function ($) {
//Delete條咖啡色Menu bar
jQuery('table table > tbody > tr:eq(1)').remove();
//Delete 高登 Logo
jQuery('table > tbody > tr:eq(1) table > tbody > tr:eq(0)').remove();
//Remove 討論區守則
jQuery('div.DivBoxContainer').remove();
//Fix Helianthus.annuus Message template dialog size.
jQuery('#ctl00_ContentPlaceHolder1_QuickReplyTable select:eq(2)').live("click", function () {
if (jQuery('.an-forum').css('display') != 'none') {
jQuery('div.an-forum').css('margin-top', -400);
jQuery('#an-snippets').css('height', window.innerHeight - 100).css('overflow', 'scroll');
jQuery('#an-snippets > div:eq(0)').css('float', 'left');
jQuery('#an-snippets > div:eq(0) > input:eq(0)').css('width', '400px').css('float', 'left');
jQuery('#an-snippets > div:eq(0) > textarea:eq(0)').css('width', '600px');
}
});
//Fix 快速回覆
jQuery('#newmessage').append("");
jQuery('#QrStatus').text('hide');
jQuery('#newmessage').css('position', 'fixed');
jQuery('#ctl00_ContentPlaceHolder1_QuickReplyTable > tbody > tr > td > table > tbody > tr:eq(0)').css('cursor', 'pointer');
jQuery('#ctl00_ContentPlaceHolder1_QuickReplyTable > tbody > tr > td > table > tbody > tr:eq(0)').click(function () {
toggleNMTop();
});
jQuery('#ctl00_ContentPlaceHolder1_btn_Submit').live("click", function () {
jQuery('#newmessage').animate({
top: window.innerHeight - QrOpenTop
}, 400);
});
PosQrDiv();
//Fix Helianthus.annuus 頁面闊度
var width = '80%'; //可設定為auto, 80%, 1000px等
var maintable = jQuery('table > tbody > tr:eq(3) > td > table:eq(0)');
jQuery(maintable).attr('width', width);
jQuery('div.PageMiddleBox', 'table.repliers').css('width', width);
jQuery('tbody > tr >td', maintable).attr('width', width);
//放大Menu bar左手邊o的字
var menubar_left = jQuery('table:eq(4)');
jQuery('span,a', menubar_left).css('font-size', '16px');
//加返[返回吹水台]
jQuery('#ctl00_ContentPlaceHolder1_view_form > div:eq(4)').append(" 返回吹水台");
});
:369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :369: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :clown: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :fuck: :sosad: :sosad: :sosad: :sosad: :sosad: :sosad: :sosad: :sosad: :sosad: :sosad: :sosad: :sosad: :sosad: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :banghead: :369n:
回覆刪除