2ch code preview

Add code preview to 2ch.hk

As of 11.04.2015. See ბოლო ვერსია.

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!)

ავტორი
7sIV799F
რეიტინგი
0 0 0
ვერსია
0.4.0
შექმნილია
11.04.2015
განახლებულია
11.04.2015
Size
2,61 KB
ლიცენზია
პ/გ
გამოყენებს მათ

Добавляет для 2ch.hk тэг [code], а также предпросмотр кода из онлайн сервисов прямо в посте. Поддерживаются: pastebin, ideone, jsfiddle, codepen.

Использование

Выделите код в форме ответа и нажмите кнопку code. Если обернуть вручную тэгом [code] то звёздочки и лишние пробелы потеряются.

Минусы

Для нормального отображения кода даже для тех, у кого скрипт не установлен, символ * заменяется на внешне похожий символ ٭, так что если вы не установили скрипт и пытаетесь скопировать и выполнить код, у вас ничего не получится.