2ch code preview

Add code preview to 2ch.hk

Från och med 2015-04-11. Se den senaste versionen.

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

Upphovsman
7sIV799F
Betyg
0 0 0
Version
0.4.0
Skapad
2015-04-11
Uppdaterad
2015-04-11
Size
2,61 KB
Licens
N/A
Gäller för

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

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

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

Минусы

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