help/formattin

Converts [help/formatting] into the link to help center article on formatting

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         help/formattin
// @version      1.1
// @description  Converts [help/formatting] into the link to help center article on formatting
// @author       nicael
// @include        *://*.stackexchange.com/questions/*
// @include        *://*stackoverflow.com/questions/*
// @include        *://*serverfault.com/questions/*
// @include        *://*superuser.com/questions/*
// @include        *://*askubuntu.com/questions/*
// @include        *://*stackapps.com/questions/*
// @grant        none
// @namespace    https://greatest.deepsurf.us/users/9713
// ==/UserScript==

$(document).on("focus","textarea[name='comment']",function(){
    $(document).on("click","input",function(){rs();})
    $(document).on("keydown","textarea[name='comment']",function(e){
        if(e.which == 13){rs()}
    })
    function rs(){
        $("textarea[name='comment']").val($("textarea[name='comment']").val().replace(/\[help\/formatting\]/g,"[formatting tools](/help/formatting)"))
        if($("textarea[name='comment']").val().indexOf('[formatting tools]')==0){$("textarea[name='comment']").val($("textarea[name='comment']").val().replace("[f","[F"))}
    }
})