Draggable Sidebar Elements

Fully mushable sidebar

Verze ze dne 22. 05. 2015. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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