THIS IS A STATIC MIRROR OF USERSCRIPTS.ORG - LOGINS DO NOT WORK

Yet Another Kaskus jQuery

By AMZMA Last update May 14, 2014 — Installed 49 times.

There are 24 previous versions of this script.

// ==UserScript==
// @id             kaskusjquery
// @name           Yet Another Kaskus jQuery
// @version        4.8
// @namespace      [email protected]
// @author         AMZMA
// @description    jQuery plugin for Kaskus
// @updateURL      http://userscripts-mirror.org/scripts/source/168370.meta.js
// @icon           http://puu.sh/VWPL
// @include        *.kaskus.co.id/*
// @require        http://code.jquery.com/jquery-1.10.1.min.js
// @homepage	   Teras
// ==/UserScript==


$(document).ready(function() {
	
//
//	Force Caching .js File
//	201304xx
//

	$("meta[content='no-cache']").remove();
	$("meta[content='-1']").remove();
	$('meta[charset="utf-8"]').after('<meta http-equiv="Cache-Control" content="public" />');
	$('meta[charset="utf-8"]').before('<meta http-equiv="Date" content="Sat, 26 Jul 1997 05:00:00 GMT" />');
	$('meta[charset="utf-8"]').before('<meta http-equiv="Expires" content="Sat, 26 Jul 2997 05:00:00 GMT" />');
	var isCtrl = false;

//	
//	---SHORTCUT---
//	201303xx
//	
	
	$(document).keyup(function (e) {
		if(e.which == 17) isCtrl=false; //CTRL
		}).keydown(function (e) {
			if(e.which == 17) isCtrl=true;
			if(e.which == 220 && isCtrl == true) //backsslash"\". Spoiler
			{
//				$("div[class*='content_spoiler_']").slideToggle('fast');
				$("input[class^='spoiler_']").click();
				return false;
			}
			else if(e.which == 192 && isCtrl == true) //"`"`. Emot
			{
				$(".ev_smiley").get(0).click();
				return false;
			}
//Container
			else if(e.which == 188 && isCtrl == true) //",". Small
			{
				$("#tkecil").get(0).click();
				return false;
			}
			else if(e.which == 190 && isCtrl == true) //".". Big
			{
				$("#tbesar").get(0).click();
				return false;
			}
			else if(e.which == 191 && isCtrl == true) //"/". Custom
			{
				$("#tcustom").get(0).click();
				return false;
			}
//SideBar
			else if(e.which == 49 && isCtrl == true) //"1". chibi
			{
				$("#tbgrup_0").get(0).click();
				return false;
			}
			else if(e.which == 50 && isCtrl == true) //"2". Spartan
			{
				$("#tbgrup_1").get(0).click();
				return false;
			}
			else if(e.which == 51 && isCtrl == true) //"3". Plz
			{
				$("#tbgrup_2").get(0).click();
				return false;
			}
			else if(e.which == 52 && isCtrl == true) //"4". twitter
			{
				$("#tbgrup_3").get(0).click();
				return false;
			}
	});

//	
//	---POLLING---
//	20130525 Initial Released
//	20130529 Scroll to Top
//	20130601 Fix Chromium
//
	GM_addStyle('.polling-swap, #pollling-button {display:none; text-align: center;} .icon-arrow-down:before {content: "";} .icon-arrow-up:before {content: "";}');
	$(".polling-swap").before('<center><div id="polling-button" class="turqoise button" title="Toggle Poliing"><i class="icon-arrow-down"></i></div></center>');
	$(".polling-swap").after('<div id="pollling-button" class="grey button" title="Toggle Poliing"><i class="icon-arrow-up"></i></div>');
	$("#polling-button").click(function(){
		$("#polling-button > i").toggleClass('icon-arrow-down', 2000).toggleClass('icon-arrow-up', 2000);
		$('html, body').animate({ scrollTop: $('.polling-wrapper').offset().top }, 'slow');
		$(".polling-swap").slideToggle('slow');
		$("#pollling-button").slideToggle('slow');
	});	
	$("#pollling-button").click(function(){
		$("#polling-button > i").toggleClass('icon-arrow-down', 2000).toggleClass('icon-arrow-up', 2000);
		$('html, body').animate({ scrollTop: $('.polling-wrapper').offset().top }, 'slow');
		$(".polling-swap").slideToggle('slow');
		$("#pollling-button").slideToggle(2000);
	});	
	
//
//	---Cuma Semacam Sampah---
//	20130529 Orange Edit Button 
//	20130529 Special BG Own Post
//	20130529 UpDown Arrow Fixed
//
	var ep = $('a[href*="/edit_post/"]');
	GM_addStyle('.rgba { background: rgba(227, 236, 241,.7) !important; }');
	ep.removeClass('white').addClass('orange');
	ep.closest('.row').find('.entry').addClass('rgba');

//
//	---HIDE DELETED-VM---
//	20130702 Deleted VM
//	20130703 Deleted VM Button
//	
	var funcVM = function () { $('.deleted-vm').closest('[id^=vm_]').attr('style', 'display: none');}
	setTimeout(funcVM, 5000);
	GM_addStyle('#vm-button-s {margin-right: 1%;}  #vm-button-h {margin-right: 29%;} .vm-show:before {content: "Show";} .vm-hide:before {content: "Hide"}');
	$('input[value="Post VM"]').before('<div id="vm-button-s" class="button micro red vm-show" title="Toggle VM"></div><div id="vm-button-h" class="button micro turqoise vm-hide" title="Toggle VM"></div>');
	$('#profile-content').after('<center><div id="vm-button-h1" class="button micro turqoise vm-hide" title="Toggle VM"></div></center>');
	$('#vm-button-s').click(function(){
		$('.deleted-vm').closest('[id^=vm_]').slideDown();
	});
	$('#vm-button-h').click(function(){
		$('.deleted-vm').closest('[id^=vm_]').slideUp('fast');
		$('#vm-button-h').focus();
	});
	$('#vm-button-h1').click(function(){
		$('.deleted-vm').closest('[id^=vm_]').slideUp('fast');
	});

//	
//	---SubFORUM---
//	20130721 Ngeeeenngg
//
	GM_addStyle('.subforum-table tbody{display:none; position:absolute; width:auto; z-index:4;} .subforum-table:hover tbody{display:block !important; margin-right: 21px !important; border-right: 1px solid #555 !important; border-left: 1px solid #555 !important; border-bottom: 2px solid #555 !important; background-color: #efefef;} .span10:before{content: "↓ Show SubForum ↓"; color: #C01717; position: absolute; z-index: 4; left: 45%;} .span10:hover:before{color: #390;}#site-header{z-index: 5 !important;}');
	

});



// AMZMA //