LOR spoiler

Add spoiler functionality

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

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.

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

יוצר
Артем Малофеев
התקנות יומיות
0
סה"כ התקנות
19
דירוגים
1 0 0
גרסה
2
נוצר
02-02-2017
עודכן
02-02-2017
Size
1.84 קילו-בייט
רישיון
לא זמין
חל על

https://www.linux.org.ru/forum/linux-org-ru/13081628

Автор: https://www.linux.org.ru/people/anTaRes/profile

В очередной раз наткнувшись на километровый топик с вставками кода решил откопать свой юзерскрипт для скрытия больших кусков кода.

Последняя версия где-то протерялась, потому переписал практически с нуля, на основе той что нашел:

префикс перед spoiler, в зависимости от типа
умеет скрывать теги [cut], [code], [pre]
лимит строк - 15 или 5, если тема засрана вставками (тут можно считать лимиты отдельно для каждого поста, но мне лень).