LOG2 scripting reference

Legend of Grimrock 2 scripting reference formatter

اعتبارا من 06-11-2014. شاهد أحدث إصدار.

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 or Violentmonkey 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.

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

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name        LOG2 scripting reference
// @namespace   jkos
// @include     http://www.grimrock.net/modding/scripting-reference/
// @version     1.2
// @grant       none
// @description Legend of Grimrock 2 scripting reference formatter
// ==/UserScript==
	   
$('h3').css('cursor','pointer')
$('h3').nextUntil('h3').hide();

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

//$('em').css('font-weight','bold');
$('em').css('color','#b99e73');
$('em').css('font-size','1.1em');
$('li').html(function(i, val) {
  return '<span style="font-weight: bold">'+val.replace(':', ':</span>');
});
//$('a:contains("Component")').first().parent().show()
$('a').parent().show()
.click(function(){
  $(this).nextUntil('p:visible').show()
  
}).css('cursor','pointer');