LOG2 scripting reference

Legend of Grimrock 2 scripting reference formatter

Stan na 06-11-2014. Zobacz najnowsza wersja.

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

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

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        LOG2 scripting reference
    // @namespace   jkos
    // @include     http://www.grimrock.net/modding/scripting-reference/
    // @version     1
    // @grant       none
    // @description Legend of Grimrock 2 scripting reference formatter
    // ==/UserScript==
           
    $('h3').css('cursor','pointer')
    $('h3').nextUntil('h3').hide();

    $('h3').click(function(e){
      if ($(e.target).next().is(":visible") ){
        $('h3').nextUntil('h3').hide();
      }else{
        $(e.target).nextUntil('h3').show() ;
      }
    })

    $('em').css('font-weight','bold');
    $('em').css('font-size','1.1em');
    $('li').html(function(i, val) {
      return '<span style="font-weight: bold">'+val.replace(':', ':</span>');
    });