help/formattin

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

目前為 2015-11-10 提交的版本,檢視 最新版本

// ==UserScript==
// @name         help/formattin
// @version      1.0
// @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://gf.qytechs.cn/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)"))}
})

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址