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.

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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,8 кБ
Ліцензія
Н/Д
Відноситься до

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

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

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

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

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