Draggable Sidebar Elements

Fully mushable sidebar

Stan na 22-05-2015. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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();
});