Draggable Sidebar Elements

Fully mushable sidebar

Tính đến 22-05-2015. Xem phiên bản mới nhất.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(Tôi đã có Trình quản lý tập lệnh người dùng, hãy cài đặt nó!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        Draggable Sidebar Elements
// @namespace   PXgamer
// @include     *localhost:999/kat/*
// @include     *kickass.to/*
// @include     *kat.cr/*
// @description Fully mushable sidebar
// @version     1.2
// @grant       none
// ==/UserScript==

$(".sliderbox").css('background-color', 'white');
$(".sliderbox").css('z-index', '2');
$(".sliderbox").css('border', '1px white solid');
$(".sliderbox").css('border-radius', '2px');
$(".sliderbox").css('-moz-border-radius', '2px');
$(".sliderbox").css('padding', '3px');
$("#hidesidebar").after('<br/><br/><a style="float: right;" href="" id="makeDrag" onclick="return false;"><span class="postLink icon16 textButton">Make Draggable</span></a>');


$(document).delegate('#makeDrag','click', function () {
    $('#makeDrag').addClass('.disabledButton');
    $(".sliderbox").wrap('<li class="ui-state-default" style="margin-bottom:2px"></li>');
    $('#sidebar').sortable();
});