New Kaskus Anti Lag

Biar Kaskus gak berat gan!

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name		New Kaskus Anti Lag
// @namespace		http://userscripts.org/scripts/show/150801
// @version		1.3
// @description		Biar Kaskus gak berat gan!
// @include		http://kaskus.co.id/*
// @include		http://*.kaskus.co.id/*
// @require		http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
// @grant		GM_addStyle
// @copyright		2012 mixmix
// ==/UserScript==
function removeElement(ElementXpath) {
    var alltags = document.evaluate(ElementXpath,document,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null); 
    for (i=0; i<alltags.snapshotLength; i++) { 
        element = alltags.snapshotItem(i); 
        element.parentNode.removeChild(element); // Remove this element from its parent. 
    } 
}
removeElement("//div[@class='kasad-wrapper']");
removeElement("//a[@class='l-link']");
removeElement("//a[@class='r-link']");
removeElement("//div[@class='baloon-track']");
removeElement("//span[@class='counter']");
GM_addStyle('body { background-image: none !important; }');
GM_addStyle('.meta-header { position: static !important; }');
GM_addStyle('#hot-cat .dropdown.open:after { background-color: rgba(0,0,0,0) !important; }');
GM_addStyle('.meta-header, .noticed > strong, .banner-top-ads, .user-content-wrapper, #subforum, #edit, #signup-form, .dropdown-menu, .sorting.open > a, .tools-panel.open > a, #user-profile-main header, #hot-c, #hot-r, #hot-cat, .category-bar, .category-tab, .category-tab a.current, .category-bar ul li ul, #breadcrumbs-wrap, #forum-listing, .banner-notice, #site-footer, .pagination .active a, input, textarea, select, .thread-prevnext, .hfeed .author .control a, .hfeed .entry-head, .white.button, .purple.button, .turqoise.button, .blue.button, .orange.button, .red.button, .green.button, .black.button, .grey.button, .pagination, #details-header, .item-content, .item-content figure { box-shadow: none !important; -webkit-box-shadow: none !important; }');

$ = unsafeWindow.$
$(window).load(function(){
	$('#reply-messsage').off('keyup');
});