// DokuWikiのWikiスタイル書体補完スクリプト // Wiki-Style Script // hGcl_Wiki_Style.js // version 2.1 // 2019 / 01 / 11 // // 2019 ひぃ(Hir)/ワタアメ // Twitter : @Hir_gca // // 使用方法 // htmlファイルの~内に // このスクリプトファイルを呼び出す構文を書いてください。 // 下記の関数は読み込みが完了した時に実行されます。 // ※補足(この行の文責:HokkaidoPerson[北海道ゆっくり放送]):このプラグインでは何もしなくてもスクリプトが自動的に読み込まれます。 // // \//と入力すると「//」と出力します。 // ://は変換されません // // **太字**、//斜体//、__下線付き__、''等幅''がご利用頂けます // // // $[hdcolor $\HTMLの色コード$\$]~$[/hdcolor$]はと同じ働きをします。 // (間と
間には適用されません) // ※補足(この行の文責:HokkaidoPerson[北海道ゆっくり放送]):上記に加え、クラス「wss-nowiki-section」「diff」、及び
間にも適用されません。 // // // 利用規約 // ・本条文は日本語のもと解釈されます。 // ・著作者(ひぃ(Hir)/ワタアメ)は予告なく本条文を変更できるものとします。 // ・本スクリプトを使用した際に起こった損害につきましては、当方では一切責任をとりかねます。 // ・権利詐称、無断転載、無断販売については厳禁です。 // ・改変しての二次配布につきましては、この文章を含めた上記の文すべてを説明書または本スクリプトファイルに //  必ず記述してください。 // // // [Translated and supplemented by HokkaidoPerson] // The script to complement DokuWiki syntax // Wiki-Style Script // hGcl_Wiki_Style.js // version 2.1 // 2019 / 01 / 11 // // 2019 Hir/wataame // Twitter : @Hir_gca // // How to Use // Call this script in - of html files. // The following functions will be run when the browser completed loading pages. // * In this plugin, the script will be loaded without doing anything special. // // "\// " will be "//" // "://" won't be converted. // // **Bold**, //italic//, __underlined__, ''monospaced'' characters available. // // // $[hdcolor $\HTML color code$\$]~$[/hdcolor$] equals to // (Unavailable in ,
-
,
, and the class "wss-nowiki-section" and "diff") // // // The license // ・This license is interpreted in Japanese above. // ・An author of this script, Hir/wataame, can change this license without notice. // ・The author won't foot the bill for your loss when you use this script. // ・Fabricating the rights of this script, and unauthorized copying and selling this script are strictly prohibited. // ・When you'll distribute forks of this script, you must write all these sentences including this license on manuals or the script files you'll distribute. // // // 自動実行用 / To run the functions automatically document.addEventListener("DOMContentLoaded", wikiStyle); // 変換用テーブル / Tables for converting var StyleArray = new Array( '//', // 斜体 / Italic '**', // 太字 / Bold '__', // 下線 / Underlined '\'\'' // 等幅 / Monospaced ); var ConvertArray = new Array( 'em', // 斜体 / Italic 'strong', // 太字 / Bold 'u', // 下線 / Underlined 'code' // 等幅 / Monospaced ); function wikiStyle(){ var bodyInnerHTML = document.body.innerHTML; var HeaderSplit; var result; var k; // textareaタグのデータを保持する / Preserve datas in