QuickAddCharacter

Gắn nhanh Character

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

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 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        QuickAddCharacter
// @namespace   © Darklce ♜
// @description Gắn nhanh Character
// @include     http://*/admin/index.forum?mode=generate&part=modules&sub=roleplay&tid=*
// @exclude     http://nkdesign.forumvi.com
// @version     1
// @grant       none
// ==/UserScript==

$(function(){
   $('#main-content > fieldset').after('<div class="center"><input value="Cập nhật đanh sách" id="k_QAC_update" type="submit" /></div>');
   $('#k_QAC_update').click(function(){
     var u_link = $('#main-content > fieldset').find('.forumline tbody > tr + tr > td + td > a').attr("href");
     $('#main-content > fieldset').css('opacity','0.5');
     $('#main-content > fieldset').load(u_link + " #main-content > fieldset", function(){
         var u_comp = $(this).html();
         $(this).after(u_comp).remove();
     });
   });
});