CINXE.COM

Wikipedia:スクリプト - Wikipedia

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available" lang="ja" dir="ltr"> <head> <meta charset="UTF-8"> <title>Wikipedia:スクリプト - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )jawikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"ja", "wgMonthNames":["","1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"wgRequestId":"332daa3d-d91d-4f35-9ae5-4414d8f1036c","wgCanonicalNamespace":"Project","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":4,"wgPageName":"Wikipedia:スクリプト","wgTitle":"スクリプト","wgCurRevisionId":102604735,"wgRevisionId":102604735,"wgArticleId":11581,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["ウィキペディアの手引き書"],"wgPageViewLanguage":"ja","wgPageContentLanguage":"ja","wgPageContentModel":"wikitext","wgRelevantPageName":"Wikipedia:スクリプト","wgRelevantArticleId":11581,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":true,"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{ "pageLanguageCode":"ja","pageLanguageDir":"ltr","pageVariantFallbacks":"ja"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":true,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":8000,"wgRelatedArticlesCompat":[],"wgCentralAuthMobileDomain":false,"wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"visual","wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q10966085","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true, "wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false};RLSTATE={"ext.gadget.PDFLinkIcon":"ready","ext.gadget.RedirectColor":"ready","ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.pygments":"ready","ext.discussionTools.init.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["ext.pygments.view","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc", "skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.NormalizeCharWidth","ext.gadget.suppressEnterAtSummaryBox","ext.gadget.checkSignature","ext.gadget.charinsert","ext.gadget.WikiMiniAtlas","ext.gadget.switcher","ext.gadget.protectionIndicator","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","wikibase.client.vector-2022","ext.checkUser.clientHints","wikibase.sidebar.tracking"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=ja&amp;modules=ext.discussionTools.init.styles%7Cext.pygments%2CwikimediaBadges%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=ja&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=ja&amp;modules=ext.gadget.PDFLinkIcon%2CRedirectColor&amp;only=styles&amp;skin=vector-2022"> <link rel="stylesheet" href="/w/load.php?lang=ja&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.4"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Wikipedia:スクリプト - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//ja.m.wikipedia.org/wiki/Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88"> <link rel="alternate" type="application/x-wiki" title="編集" href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (ja)"> <link rel="EditURI" type="application/rsd+xml" href="//ja.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://ja.wikipedia.org/wiki/Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.ja"> <link rel="alternate" type="application/atom+xml" title="WikipediaのAtomフィード" href="/w/index.php?title=%E7%89%B9%E5%88%A5:%E6%9C%80%E8%BF%91%E3%81%AE%E6%9B%B4%E6%96%B0&amp;feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-4 ns-subject mw-editable page-Wikipedia_スクリプト rootpage-Wikipedia_スクリプト skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">コンテンツにスキップ</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="サイト"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="メインメニュー" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">メインメニュー</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">メインメニュー</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">サイドバーに移動</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">非表示</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> 案内 </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" title="メインページに移動する [z]" accesskey="z"><span>メインページ</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:%E3%82%B3%E3%83%9F%E3%83%A5%E3%83%8B%E3%83%86%E3%82%A3%E3%83%BB%E3%83%9D%E3%83%BC%E3%82%BF%E3%83%AB" title="このプロジェクトについて、できること、情報を入手する場所"><span>コミュニティ・ポータル</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:%E6%9C%80%E8%BF%91%E3%81%AE%E5%87%BA%E6%9D%A5%E4%BA%8B" title="最近の出来事の背景を知る"><span>最近の出来事</span></a></li><li id="n-newpages" class="mw-list-item"><a href="/wiki/%E7%89%B9%E5%88%A5:%E6%96%B0%E3%81%97%E3%81%84%E3%83%9A%E3%83%BC%E3%82%B8" title="最近新規に作成されたページの一覧"><span>新しいページ</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/%E7%89%B9%E5%88%A5:%E6%9C%80%E8%BF%91%E3%81%AE%E6%9B%B4%E6%96%B0" title="このウィキにおける最近の更新の一覧 [r]" accesskey="r"><span>最近の更新</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/%E7%89%B9%E5%88%A5:%E3%81%8A%E3%81%BE%E3%81%8B%E3%81%9B%E8%A1%A8%E7%A4%BA" title="無作為に選択されたページを読み込む [x]" accesskey="x"><span>おまかせ表示</span></a></li><li id="n-sandbox" class="mw-list-item"><a href="/wiki/Wikipedia:%E3%82%B5%E3%83%B3%E3%83%89%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9" title="練習用のページ"><span>練習用ページ</span></a></li><li id="n-commonsupload" class="mw-list-item"><a href="//commons.wikimedia.org/wiki/Special:UploadWizard?uselang=ja" title="画像やメディアファイルをウィキメディア・コモンズにアップロード"><span>アップロード (ウィキメディア・コモンズ)</span></a></li> </ul> </div> </div> <div id="p-help" class="vector-menu mw-portlet mw-portlet-help" > <div class="vector-menu-heading"> ヘルプ </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:%E7%9B%AE%E6%AC%A1" title="情報を得る場所"><span>ヘルプ</span></a></li><li id="n-villagepump" class="mw-list-item"><a href="/wiki/Wikipedia:%E4%BA%95%E6%88%B8%E7%AB%AF" title="プロジェクトについての意見交換"><span>井戸端</span></a></li><li id="n-notice" class="mw-list-item"><a href="/wiki/Wikipedia:%E3%81%8A%E7%9F%A5%E3%82%89%E3%81%9B" title="プロジェクトについてのお知らせ"><span>お知らせ</span></a></li><li id="n-bugreportspage" class="mw-list-item"><a href="/wiki/Wikipedia:%E3%83%90%E3%82%B0%E3%81%AE%E5%A0%B1%E5%91%8A" title="ウィキペディア・ソフトウェアのバグ報告"><span>バグの報告</span></a></li><li id="n-contact" class="mw-list-item"><a href="/wiki/Wikipedia:%E9%80%A3%E7%B5%A1%E5%85%88" title="ウィキペディアやウィキメディア財団に関する連絡先"><span>ウィキペディアに関するお問い合わせ</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-ja.svg" style="width: 7.5em; height: 1.25em;"> <img class="mw-logo-tagline" alt="" src="/static/images/mobile/copyright/wikipedia-tagline-ja.svg" width="100" height="14" style="width: 6.25em; height: 0.875em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/%E7%89%B9%E5%88%A5:%E6%A4%9C%E7%B4%A2" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Wikipedia内を検索 [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>検索</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Wikipedia内を検索" aria-label="Wikipedia内を検索" autocapitalize="sentences" title="Wikipedia内を検索 [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="特別:検索"> </div> <button class="cdx-button cdx-search-input__end-button">検索</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="個人用ツール"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="表示"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="ページのフォントサイズ、幅、色の外観を変更する" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="表示" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">表示</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_ja.wikipedia.org&amp;uselang=ja" class=""><span>寄付</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=%E7%89%B9%E5%88%A5:%E3%82%A2%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E4%BD%9C%E6%88%90&amp;returnto=Wikipedia%3A%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88" title="アカウントを作成してログインすることをお勧めしますが、必須ではありません" class=""><span>アカウント作成</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=%E7%89%B9%E5%88%A5:%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3&amp;returnto=Wikipedia%3A%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88" title="ログインすることを推奨します。ただし、必須ではありません。 [o]" accesskey="o" class=""><span>ログイン</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="その他の操作" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="個人用ツール" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">個人用ツール</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="利用者メニュー" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_ja.wikipedia.org&amp;uselang=ja"><span>寄付</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E5%88%A5:%E3%82%A2%E3%82%AB%E3%82%A6%E3%83%B3%E3%83%88%E4%BD%9C%E6%88%90&amp;returnto=Wikipedia%3A%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88" title="アカウントを作成してログインすることをお勧めしますが、必須ではありません"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>アカウント作成</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E5%88%A5:%E3%83%AD%E3%82%B0%E3%82%A4%E3%83%B3&amp;returnto=Wikipedia%3A%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88" title="ログインすることを推奨します。ただし、必須ではありません。 [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>ログイン</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> ログアウトした編集者のページ <a href="/wiki/Wikipedia:%E3%82%A6%E3%82%A3%E3%82%AD%E3%83%9A%E3%83%87%E3%82%A3%E3%82%A2%E3%81%B8%E3%82%88%E3%81%86%E3%81%93%E3%81%9D" aria-label="編集の詳細"><span>もっと詳しく</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/%E7%89%B9%E5%88%A5:%E8%87%AA%E5%88%86%E3%81%AE%E6%8A%95%E7%A8%BF%E8%A8%98%E9%8C%B2" title="このIPアドレスからなされた編集の一覧 [y]" accesskey="y"><span>投稿記録</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/%E7%89%B9%E5%88%A5:%E3%83%88%E3%83%BC%E3%82%AF%E3%83%9A%E3%83%BC%E3%82%B8" title="このIPアドレスからなされた編集についての議論 [n]" accesskey="n"><span>トーク</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="サイト"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="目次" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">目次</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">サイドバーに移動</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">非表示</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">ページ先頭</div> </a> </li> <li id="toc-注意" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#注意"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>注意</span> </div> </a> <button aria-controls="toc-注意-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>注意サブセクションを切り替えます</span> </button> <ul id="toc-注意-sublist" class="vector-toc-list"> <li id="toc-KISSの原則" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#KISSの原則"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>KISSの原則</span> </div> </a> <ul id="toc-KISSの原則-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-ライセンス" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#ライセンス"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>ライセンス</span> </div> </a> <ul id="toc-ライセンス-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Unicode数値参照変換スクリプト" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Unicode数値参照変換スクリプト"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Unicode数値参照変換スクリプト</span> </div> </a> <span class="ext-discussiontools-init-sidebar-meta">1件の コメント</span> <button aria-controls="toc-Unicode数値参照変換スクリプト-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Unicode数値参照変換スクリプトサブセクションを切り替えます</span> </button> <ul id="toc-Unicode数値参照変換スクリプト-sublist" class="vector-toc-list"> <li id="toc-JavaScript" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#JavaScript"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>JavaScript</span> </div> </a> <ul id="toc-JavaScript-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Perl" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Perl"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Perl</span> </div> </a> <ul id="toc-Perl-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-EmEditor_Professional_for_Windows" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#EmEditor_Professional_for_Windows"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>EmEditor Professional for Windows</span> </div> </a> <ul id="toc-EmEditor_Professional_for_Windows-sublist" class="vector-toc-list"> <li id="toc-単純に数値参照に変える" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#単純に数値参照に変える"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3.1</span> <span>単純に数値参照に変える</span> </div> </a> <ul id="toc-単純に数値参照に変える-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-日本語版で扱えない文字のみ変える" class="vector-toc-list-item vector-toc-level-3"> <a class="vector-toc-link" href="#日本語版で扱えない文字のみ変える"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3.2</span> <span>日本語版で扱えない文字のみ変える</span> </div> </a> <ul id="toc-日本語版で扱えない文字のみ変える-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> </ul> </li> <li id="toc-関連項目" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#関連項目"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>関連項目</span> </div> </a> <ul id="toc-関連項目-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="目次" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="目次の表示・非表示を切り替え" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">目次の表示・非表示を切り替え</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-namespace">Wikipedia</span><span class="mw-page-title-separator">:</span><span class="mw-page-title-main">スクリプト</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="特定の記事の別の言語版に移動します。 利用可能な言語5件" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-5" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">5の言語版</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-ar mw-list-item"><a href="https://ar.wikipedia.org/wiki/%D9%88%D9%8A%D9%83%D9%8A%D8%A8%D9%8A%D8%AF%D9%8A%D8%A7:%D8%B3%D9%83%D8%B1%D8%A8%D8%AA%D8%A7%D8%AA" title="アラビア語: ويكيبيديا:سكربتات" lang="ar" hreflang="ar" data-title="ويكيبيديا:سكربتات" data-language-autonym="العربية" data-language-local-name="アラビア語" class="interlanguage-link-target"><span>العربية</span></a></li><li class="interlanguage-link interwiki-en mw-list-item"><a href="https://en.wikipedia.org/wiki/Wikipedia:Scripts" title="英語: Wikipedia:Scripts" lang="en" hreflang="en" data-title="Wikipedia:Scripts" data-language-autonym="English" data-language-local-name="英語" class="interlanguage-link-target"><span>English</span></a></li><li class="interlanguage-link interwiki-km mw-list-item"><a href="https://km.wikipedia.org/wiki/%E1%9E%9C%E1%9E%B7%E1%9E%82%E1%9E%B8%E1%9E%97%E1%9E%B8%E1%9E%8C%E1%9E%B6:Scripts" title="クメール語: វិគីភីឌា:Scripts" lang="km" hreflang="km" data-title="វិគីភីឌា:Scripts" data-language-autonym="ភាសាខ្មែរ" data-language-local-name="クメール語" class="interlanguage-link-target"><span>ភាសាខ្មែរ</span></a></li><li class="interlanguage-link interwiki-si mw-list-item"><a href="https://si.wikipedia.org/wiki/%E0%B7%80%E0%B7%92%E0%B6%9A%E0%B7%92%E0%B6%B4%E0%B7%93%E0%B6%A9%E0%B7%92%E0%B6%BA%E0%B7%8F:Scripts" title="シンハラ語: විකිපීඩියා:Scripts" lang="si" hreflang="si" data-title="විකිපීඩියා:Scripts" data-language-autonym="සිංහල" data-language-local-name="シンハラ語" class="interlanguage-link-target"><span>සිංහල</span></a></li><li class="interlanguage-link interwiki-zh-yue mw-list-item"><a href="https://zh-yue.wikipedia.org/wiki/Wikipedia:Scripts" title="広東語: Wikipedia:Scripts" lang="yue" hreflang="yue" data-title="Wikipedia:Scripts" data-language-autonym="粵語" data-language-local-name="広東語" class="interlanguage-link-target"><span>粵語</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q10966085#sitelinks-wikipedia" title="言語間リンクを編集" class="wbc-editpage">リンクを編集</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="名前空間"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-project" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88" title="プロジェクトページを表示 [c]" accesskey="c"><span>ウィキペディア</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Wikipedia%E2%80%90%E3%83%8E%E3%83%BC%E3%83%88:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88" rel="discussion" title="本文ページについての議論 [t]" accesskey="t"><span>ノート</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="別の言語に切り替える" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">日本語</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="表示"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88"><span>閲覧</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit" title="このページのソースコードを編集する [e]" accesskey="e"><span>ソースを編集</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=history" title="このページの過去の版 [h]" accesskey="h"><span>履歴表示</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="ページツール"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="ツール" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">ツール</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">ツール</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">サイドバーに移動</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">非表示</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="その他の操作" > <div class="vector-menu-heading"> 操作 </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88"><span>閲覧</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit" title="このページのソースコードを編集する [e]" accesskey="e"><span>ソースを編集</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=history"><span>履歴表示</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> 全般 </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/%E7%89%B9%E5%88%A5:%E3%83%AA%E3%83%B3%E3%82%AF%E5%85%83/Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88" title="ここにリンクしている全ウィキページの一覧 [j]" accesskey="j"><span>リンク元</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/%E7%89%B9%E5%88%A5:%E9%96%A2%E9%80%A3%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%AE%E6%9B%B4%E6%96%B0%E7%8A%B6%E6%B3%81/Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88" rel="nofollow" title="このページからリンクしているページの最近の更新 [k]" accesskey="k"><span>関連ページの更新状況</span></a></li><li id="t-upload" class="mw-list-item"><a href="/wiki/Wikipedia:%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AE%E3%82%A2%E3%83%83%E3%83%97%E3%83%AD%E3%83%BC%E3%83%89" title="ファイルをアップロードする [u]" accesskey="u"><span>ファイルをアップロード</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/%E7%89%B9%E5%88%A5:%E7%89%B9%E5%88%A5%E3%83%9A%E3%83%BC%E3%82%B8%E4%B8%80%E8%A6%A7" title="特別ページの一覧 [q]" accesskey="q"><span>特別ページ</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;oldid=102604735" title="このページのこの版への固定リンク"><span>この版への固定リンク</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=info" title="このページについての詳細情報"><span>ページ情報</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E5%88%A5:UrlShortener&amp;url=https%3A%2F%2Fja.wikipedia.org%2Fwiki%2FWikipedia%3A%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%2597%25E3%2583%2588"><span>短縮URLを取得する</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E5%88%A5:QrCode&amp;url=https%3A%2F%2Fja.wikipedia.org%2Fwiki%2FWikipedia%3A%25E3%2582%25B9%25E3%2582%25AF%25E3%2583%25AA%25E3%2583%2597%25E3%2583%2588"><span>QRコードをダウンロード</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> 印刷/書き出し </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E5%88%A5:%E3%83%96%E3%83%83%E3%82%AF&amp;bookcmd=book_creator&amp;referer=Wikipedia%3A%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88"><span>ブックの新規作成</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=%E7%89%B9%E5%88%A5:DownloadAsPdf&amp;page=Wikipedia%3A%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=show-download-screen"><span>PDF 形式でダウンロード</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;printable=yes" title="このページの印刷用ページ [p]" accesskey="p"><span>印刷用バージョン</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> 他のプロジェクト </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q10966085" title="関連付けられたデータリポジトリ項目へのリンク [g]" accesskey="g"><span>ウィキデータ項目</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="ページツール"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="表示"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">表示</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">サイドバーに移動</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">非表示</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint"></div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="ja" dir="ltr"><style data-mw-deduplicate="TemplateStyles:r101346560">.mw-parser-output .hatnote{margin:0.5em 0;padding:3px 2em;background-color:transparent;border-bottom:1px solid #a2a9b1;font-size:90%}html.skin-theme-clientpref-night .mw-parser-output .hatnote>table{color:inherit}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .hatnote>table{color:inherit}}</style><div class="hatnote dablink noprint selfreference"><table style="width:100%; background:transparent;"> <tbody><tr><td style="width:20px;"><span typeof="mw:File"><a href="/wiki/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB:Wikipedia%27s_W.svg" class="mw-file-description" title="ウィキペディア"><img alt="ウィキペディア" src="//upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Wikipedia%27s_W.svg/20px-Wikipedia%27s_W.svg.png" decoding="async" width="20" height="20" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Wikipedia%27s_W.svg/30px-Wikipedia%27s_W.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Wikipedia%27s_W.svg/40px-Wikipedia%27s_W.svg.png 2x" data-file-width="128" data-file-height="128"/></a></span></td> <td><a href="/wiki/%E3%82%A6%E3%82%A3%E3%82%AD%E3%83%9A%E3%83%87%E3%82%A3%E3%82%A2" title="ウィキペディア">ウィキペディア</a>において、 <ul><li><a href="/wiki/%E3%82%A6%E3%82%A7%E3%83%96%E3%83%96%E3%83%A9%E3%82%A6%E3%82%B6" title="ウェブブラウザ">ウェブブラウザ</a>で使う<a href="/wiki/JavaScript" title="JavaScript">JavaScript</a>による<a href="/wiki/%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88" title="ユーザースクリプト">ユーザースクリプト</a>の使用については「<a href="/wiki/Wikipedia:%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0JS" title="Wikipedia:カスタムJS">Wikipedia:カスタムJS</a>」を、</li> <li>サーバ側が処理する<a href="/wiki/Lua%E8%A8%80%E8%AA%9E" class="mw-redirect" title="Lua言語">Lua言語</a>の使用については「<a href="/wiki/Wikipedia:Lua" title="Wikipedia:Lua">Wikipedia:Lua</a>」をごらんください。</li></ul></td> </tr></tbody></table></div> <style data-mw-deduplicate="TemplateStyles:r101346494">.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%;font-size:90%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}body.skin--responsive .mw-parser-output table.ombox img{max-width:none!important}html.skin-theme-clientpref-night .mw-parser-output .ombox-speedy{background-color:#310402}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .ombox-speedy{background-color:#310402}}</style><table class="plainlinks ombox ombox-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><a href="/wiki/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB:Twemoji_1f527.svg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Twemoji_1f527.svg/30px-Twemoji_1f527.svg.png" decoding="async" width="30" height="30" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Twemoji_1f527.svg/45px-Twemoji_1f527.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/9e/Twemoji_1f527.svg/60px-Twemoji_1f527.svg.png 2x" data-file-width="512" data-file-height="512"/></a></span></td><td class="mbox-text"><div style="padding-top: 6px; padding-bottom: 5px;"><b>この文書は手引き書です</b>。ウィキペディア日本語版での活動の参考にされていますが、<a href="/wiki/Wikipedia:%E6%96%B9%E9%87%9D%E3%81%A8%E3%82%AC%E3%82%A4%E3%83%89%E3%83%A9%E3%82%A4%E3%83%B3" title="Wikipedia:方針とガイドライン">方針やガイドライン</a>ではありません。</div></td></tr></tbody></table> <p>このページでは、<a href="/wiki/%E3%82%A6%E3%82%A3%E3%82%AD%E3%83%9A%E3%83%87%E3%82%A3%E3%82%A2%E6%97%A5%E6%9C%AC%E8%AA%9E%E7%89%88" title="ウィキペディア日本語版">ウィキペディア日本語版</a>で役に立つ<b>スクリプト</b>について紹介します。 </p> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="注意" data-mw-thread-id="h-注意"><span id=".E6.B3.A8.E6.84.8F"></span><span data-mw-comment-start="" id="h-注意"></span>注意<span data-mw-comment-end="h-注意"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=1" title="節を編集: 注意"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-\u6ce8\u610f","replies":["h-KISS\u306e\u539f\u5247-\u6ce8\u610f","h-\u30e9\u30a4\u30bb\u30f3\u30b9-\u6ce8\u610f"]}}--></div> <div class="mw-heading mw-heading3"><h3 id="KISSの原則" data-mw-thread-id="h-KISSの原則-注意"><span id="KISS.E3.81.AE.E5.8E.9F.E5.89.87"></span><span data-mw-comment-start="" id="h-KISSの原則-注意"></span>KISSの原則<span data-mw-comment-end="h-KISSの原則-注意"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=2" title="節を編集: KISSの原則"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="rellink" style="margin-bottom: 0.5em; padding-left: 2em; font-size: 90%;" role="note">→詳細は「<a href="/wiki/KISS%E3%81%AE%E5%8E%9F%E5%89%87" title="KISSの原則">KISSの原則</a>」を参照</div> <p>できるだけ読みやすくするよう、<a href="/wiki/KISS%E3%81%AE%E5%8E%9F%E5%89%87" title="KISSの原則">KISSの原則</a>に従ってスクリプトを簡潔で単純にすることを検討してください。 </p> <div class="mw-heading mw-heading3"><h3 id="ライセンス" data-mw-thread-id="h-ライセンス-注意"><span id=".E3.83.A9.E3.82.A4.E3.82.BB.E3.83.B3.E3.82.B9"></span><span data-mw-comment-start="" id="h-ライセンス-注意"></span>ライセンス<span data-mw-comment-end="h-ライセンス-注意"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=3" title="節を編集: ライセンス"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>ウィキペディアへの投稿(このページの編集を含む)は<a href="/wiki/Wikipedia:CC-BY-SA" class="mw-redirect" title="Wikipedia:CC-BY-SA">CC BY-SA</a>ライセンス(ほとんどの場合、<a href="/wiki/Wikipedia:GFDL" class="mw-redirect" title="Wikipedia:GFDL">GFDL</a>ライセンスも)に基づき公開されます。しかし、CC BY-SAライセンスは美術や文学向けに作成され、ソフトウェア向けではありません。そのため、このページで公開したスクリプトが最大限で活用されるために、<a href="/wiki/GNU_General_Public_License" title="GNU General Public License">GNU GPL</a>のような<a href="/wiki/%E3%83%95%E3%83%AA%E3%83%BC%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9" class="mw-redirect" title="フリーソフトウェアライセンス">フリーソフトウェアライセンス</a>でも提供することを検討してください。スクリプトのはじめに明記することで、ほかのライセンスでも提供していることを明示できます。 </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><!--__DTSUBSCRIBEBUTTONDESKTOP__{&quot;headingLevel&quot;:2,&quot;name&quot;:&quot;h-\u30cd\u30a4-2018-12-30T11:59:00.000Z&quot;,&quot;type&quot;:&quot;heading&quot;,&quot;level&quot;:0,&quot;id&quot;:&quot;h-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8-2018-12-30T11:59:00.000Z&quot;,&quot;replies&quot;:[&quot;h-JavaScript-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8-2018-12-30T11:59:00.000Z&quot;,&quot;h-Perl-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8&quot;,&quot;h-EmEditor_Professional_for_Windows-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8&quot;],&quot;text&quot;:&quot;Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8&quot;,&quot;linkableTitle&quot;:&quot;Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8&quot;}--><h2 id="Unicode数値参照変換スクリプト" data-mw-thread-id="h-Unicode数値参照変換スクリプト-2018-12-30T11:59:00.000Z"><span id="Unicode.E6.95.B0.E5.80.A4.E5.8F.82.E7.85.A7.E5.A4.89.E6.8F.9B.E3.82.B9.E3.82.AF.E3.83.AA.E3.83.97.E3.83.88"></span><span data-mw-comment-start="" id="h-Unicode数値参照変換スクリプト-2018-12-30T11:59:00.000Z"></span>Unicode数値参照変換スクリプト<span data-mw-comment-end="h-Unicode数値参照変換スクリプト-2018-12-30T11:59:00.000Z"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=4" title="節を編集: Unicode数値参照変換スクリプト"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-\u30cd\u30a4-2018-12-30T11:59:00.000Z","type":"heading","level":0,"id":"h-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8-2018-12-30T11:59:00.000Z","replies":["h-JavaScript-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8-2018-12-30T11:59:00.000Z","h-Perl-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8","h-EmEditor_Professional_for_Windows-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8"]}}--><div class="ext-discussiontools-init-section-bar"><div class="ext-discussiontools-init-section-metadata"><!--__DTLATESTCOMMENTTHREAD__{"id":"c-\u30cd\u30a4-2018-12-30T11:59:00.000Z-JavaScript","timestamp":"2018-12-30T11:59:00.000Z"}__--><!--__DTCOMMENTCOUNT__1__--><!--__DTAUTHORCOUNT__1__--></div><div class="ext-discussiontools-init-section-actions"><!--__DTSUBSCRIBEBUTTONMOBILE__{&quot;headingLevel&quot;:2,&quot;name&quot;:&quot;h-\u30cd\u30a4-2018-12-30T11:59:00.000Z&quot;,&quot;type&quot;:&quot;heading&quot;,&quot;level&quot;:0,&quot;id&quot;:&quot;h-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8-2018-12-30T11:59:00.000Z&quot;,&quot;replies&quot;:[&quot;h-JavaScript-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8-2018-12-30T11:59:00.000Z&quot;,&quot;h-Perl-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8&quot;,&quot;h-EmEditor_Professional_for_Windows-Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8&quot;],&quot;text&quot;:&quot;Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8&quot;,&quot;linkableTitle&quot;:&quot;Unicode\u6570\u5024\u53c2\u7167\u5909\u63db\u30b9\u30af\u30ea\u30d7\u30c8&quot;}--></div></div></div> <div class="mw-heading mw-heading3"><h3 id="JavaScript" data-mw-thread-id="h-JavaScript-Unicode数値参照変換スクリプト-2018-12-30T11:59:00.000Z"><span data-mw-comment-start="" id="h-JavaScript-Unicode数値参照変換スクリプト-2018-12-30T11:59:00.000Z"></span>JavaScript<span data-mw-comment-end="h-JavaScript-Unicode数値参照変換スクリプト-2018-12-30T11:59:00.000Z"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=5" title="節を編集: JavaScript"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><b><span data-mw-comment-start="" id="c-ネイ-2018-12-30T11:59:00.000Z-JavaScript"></span>原作者</b>: </p> <ul><li><a href="/wiki/%E5%88%A9%E7%94%A8%E8%80%85:Cyp" title="利用者:Cyp">كسيپ Cyp</a> 10:14 7 Jun 2003 (UTC) ( initial write )</li> <li>--<a href="/wiki/%E5%88%A9%E7%94%A8%E8%80%85:%C3%86var_Arnfj%C3%B6r%C3%B0_Bjarmason" title="利用者:Ævar Arnfjörð Bjarmason">Ævar Arnfjörð Bjarmason</a> 16:02, 2004 May 16 (UTC) ( major cleanup of html code, added indenting )</li> <li><a href="/wiki/%E5%88%A9%E7%94%A8%E8%80%85:%E3%83%8D%E3%82%A4" title="利用者:ネイ">ネイ</a>(<a href="/wiki/%E5%88%A9%E7%94%A8%E8%80%85%E2%80%90%E4%BC%9A%E8%A9%B1:%E3%83%8D%E3%82%A4" title="利用者‐会話:ネイ">会話</a>) <a href="https://ja.wikipedia.org/wiki/Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88#c-ネイ-2018-12-30T11:59:00.000Z-JavaScript" class="ext-discussiontools-init-timestamplink">2018年12月30日 (日) 11:59 (UTC)</a>(日本語化)<span class="ext-discussiontools-init-replylink-buttons" data-mw-thread-id="c-ネイ-2018-12-30T11:59:00.000Z-JavaScript"><span class="ext-discussiontools-init-replylink-bracket">[</span><a class="ext-discussiontools-init-replylink-reply" role="button" tabindex="0" href="">返信</a><span class="ext-discussiontools-init-replylink-bracket">]</span><!--__DTELLIPSISBUTTON__{"threadItem":{"timestamp":"2018-12-30T11:59:00.000Z","author":"\u30cd\u30a4","type":"comment","level":1,"id":"c-\u30cd\u30a4-2018-12-30T11:59:00.000Z-JavaScript","replies":[]}}--></span><span data-mw-comment-end="c-ネイ-2018-12-30T11:59:00.000Z-JavaScript"></span></li></ul> <p><b>動作確認済ブラウザ</b>: </p> <ul><li><a href="/wiki/Internet_Explorer" title="Internet Explorer">Internet Explorer</a> 5.00.3502.1000, 11.195.17763.0</li> <li><a href="/wiki/Mozilla_Firefox" title="Mozilla Firefox">Mozilla Firefox</a> 0.8, 64.0</li> <li><a href="/wiki/Google_Chrome" title="Google Chrome">Google Chrome</a> 71.0.3578.98</li></ul> <p><b>注釈</b>: </p><p>You may not need a script for converting CJK characters if you have a Mac running Mac OS X 10.2 and have Mozilla as your browser. Just do the editing from within Mozilla. Mozilla automatically does the conversion. For example, in adding this edit, I type in the Japanese characters for "edit," which are 編集. Mozilla automatically converted these characters to the proper romanized Unicode format. Just look at the above lines in the editing box to see for yourself. -<a href="/w/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:IppikiOokami&amp;action=edit&amp;redlink=1" class="new" title="「利用者:IppikiOokami」 (存在しないページ)">User: IppikiOokami</a> 5 September 2003 </p> <div style="margin-left:0"> <table class="mw-collapsible mw-collapsed" style="background: transparent; text-align: left; border: 1px solid Silver; margin: 0.2em auto auto; width:100%; clear: both; padding: 1px;"> <tbody><tr> <th style="background: #CCFFCC; font-size:87%; padding:0.2em 0.3em; text-align:center;"><div style="display:inline;font-size:115%">JavaScript</div> </th></tr> <tr> <td style="border: solid 1px Silver; padding: 0.6em; background: White;"> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="o">&lt;!</span><span class="nx">DOCTYPE</span><span class="w"> </span><span class="nx">HTML</span><span class="w"> </span><span class="nx">PUBLIC</span><span class="w"> </span><span class="s2">"-//W3C//DTD HTML 4.01//EN"</span><span class="w"> </span><span class="s2">"http://www.w3.org/TR/html4/strict.dtd"</span><span class="o">></span> <span class="o">&lt;</span><span class="nx">html</span><span class="o">></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">head</span><span class="o">></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">title</span><span class="o">></span><span class="nx">Unicode変換ツール</span><span class="o">&lt;</span><span class="err">/title></span> <span class="w"> </span><span class="o">&lt;</span><span class="err">/head></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">body</span><span class="o">></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">form</span><span class="w"> </span><span class="nx">name</span><span class="o">=</span><span class="s2">"charform"</span><span class="o">></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">p</span><span class="o">></span><span class="nx">下記のボックスに文字を入力してください</span><span class="err">。</span><span class="nx">コードが127以上の文字は</span><span class="o">&amp;</span><span class="nx">amp</span><span class="p">;</span><span class="err">#</span><span class="mf">1234</span><span class="p">;</span><span class="nx">のように変換されます</span><span class="err">。</span><span class="o">&lt;</span><span class="err">/p></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">p</span><span class="o">></span><span class="nx">入力</span><span class="o">:&lt;</span><span class="err">/p></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">textarea</span><span class="w"> </span><span class="nx">name</span><span class="o">=</span><span class="s2">"input"</span><span class="w"> </span><span class="nx">cols</span><span class="o">=</span><span class="s2">"80"</span><span class="w"> </span><span class="nx">rows</span><span class="o">=</span><span class="s2">"25"</span><span class="w"> </span><span class="nx">onKeyUp</span><span class="o">=</span><span class="s2">"revtxt()"</span><span class="o">></span> <span class="w"> </span><span class="nx">JavaScriptが無効です</span><span class="err">。</span> <span class="w"> </span><span class="o">&lt;</span><span class="err">/textarea></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">p</span><span class="o">></span><span class="nx">出力</span><span class="o">:&lt;</span><span class="err">/p></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">textarea</span><span class="w"> </span><span class="nx">name</span><span class="o">=</span><span class="s2">"output"</span><span class="w"> </span><span class="nx">cols</span><span class="o">=</span><span class="s2">"80"</span><span class="w"> </span><span class="nx">rows</span><span class="o">=</span><span class="s2">"25"</span><span class="o">></span> <span class="w"> </span><span class="nx">JavaScriptが無効です</span><span class="err">。</span> <span class="w"> </span><span class="o">&lt;</span><span class="err">/textarea></span> <span class="w"> </span><span class="o">&lt;</span><span class="err">/form></span> <span class="w"> </span><span class="o">&lt;</span><span class="nx">script</span><span class="w"> </span><span class="nx">type</span><span class="o">=</span><span class="s2">"text/javascript"</span><span class="o">></span> <span class="w"> </span><span class="c">&lt;!--</span> <span class="w"> </span><span class="nb">document</span><span class="p">.</span><span class="nx">charform</span><span class="p">.</span><span class="nx">input</span><span class="p">.</span><span class="nx">value</span><span class="o">=</span><span class="s2">""</span><span class="p">;</span> <span class="w"> </span><span class="nb">document</span><span class="p">.</span><span class="nx">charform</span><span class="p">.</span><span class="nx">output</span><span class="p">.</span><span class="nx">value</span><span class="o">=</span><span class="s2">"ここに入力しないでください。"</span><span class="p">;</span> <span class="w"> </span><span class="kd">function</span><span class="w"> </span><span class="nx">revtxt</span><span class="p">()</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">s</span><span class="o">=</span><span class="nb">document</span><span class="p">.</span><span class="nx">charform</span><span class="p">.</span><span class="nx">input</span><span class="p">.</span><span class="nx">value</span><span class="p">;</span> <span class="w"> </span><span class="nx">o</span><span class="o">=</span><span class="s2">""</span><span class="p">;</span> <span class="w"> </span><span class="k">for</span><span class="p">(</span><span class="w"> </span><span class="nx">m</span><span class="o">=</span><span class="mf">0</span><span class="p">;</span><span class="nx">s</span><span class="p">.</span><span class="nx">charAt</span><span class="p">(</span><span class="nx">m</span><span class="p">);</span><span class="o">++</span><span class="nx">m</span><span class="w"> </span><span class="p">)</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="o">=</span><span class="nx">s</span><span class="p">.</span><span class="nx">charCodeAt</span><span class="p">(</span><span class="nx">m</span><span class="p">))</span><span class="o">&lt;</span><span class="mf">128</span><span class="o">&amp;&amp;</span><span class="nx">c</span><span class="o">!=</span><span class="mf">38</span><span class="p">)</span><span class="w"> </span><span class="nx">o</span><span class="o">+=</span><span class="nx">s</span><span class="p">.</span><span class="nx">charAt</span><span class="p">(</span><span class="nx">m</span><span class="p">);</span> <span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="o">==</span><span class="mf">38</span><span class="p">)</span><span class="w"> </span><span class="nx">o</span><span class="o">+=</span><span class="s2">"&amp;amp;"</span><span class="p">;</span> <span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="nx">o</span><span class="o">+=</span><span class="s2">"&amp;#"</span><span class="o">+</span><span class="nx">c</span><span class="o">+</span><span class="s2">";"</span><span class="p">;</span> <span class="w"> </span><span class="nb">document</span><span class="p">.</span><span class="nx">charform</span><span class="p">.</span><span class="nx">output</span><span class="p">.</span><span class="nx">value</span><span class="o">=</span><span class="nx">o</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="o">--></span> <span class="w"> </span><span class="o">&lt;</span><span class="err">/script></span> <span class="o">&lt;</span><span class="err">/html></span> </pre></div> </td></tr></tbody></table></div> <div class="mw-heading mw-heading3"><h3 id="Perl" data-mw-thread-id="h-Perl-Unicode数値参照変換スクリプト"><span data-mw-comment-start="" id="h-Perl-Unicode数値参照変換スクリプト"></span>Perl<span data-mw-comment-end="h-Perl-Unicode数値参照変換スクリプト"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=6" title="節を編集: Perl"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>下記は<a href="/wiki/Perl" title="Perl">Perl</a>の<code>ord()</code>関数を利用して、<a href="/wiki/%E6%A8%99%E6%BA%96%E3%82%B9%E3%83%88%E3%83%AA%E3%83%BC%E3%83%A0" title="標準ストリーム">標準入力</a>の<a href="/wiki/%E3%82%AD%E3%83%A3%E3%83%A9%E3%82%AF%E3%82%BF_(%E3%82%B3%E3%83%B3%E3%83%94%E3%83%A5%E3%83%BC%E3%82%BF)" title="キャラクタ (コンピュータ)">キャラクタ</a>をキャラクタセット内の数字に変換するスクリプトです。 </p> <div class="mw-highlight mw-highlight-lang-perl mw-content-ltr" dir="ltr"><pre><span></span><span class="ch">#!/usr/bin/perl</span> <span class="c1"># Code is in the public domain.</span> <span class="k">use</span><span class="w"> </span><span class="nn">strict</span><span class="p">;</span> <span class="k">my</span><span class="w"> </span><span class="nv">@input</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">split</span><span class="w"> </span><span class="p">(</span><span class="sr">//</span><span class="p">,</span><span class="w"> </span><span class="o">&lt;></span><span class="p">);</span> <span class="k">foreach</span><span class="w"> </span><span class="k">my</span><span class="w"> </span><span class="nv">$c</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="nv">@input</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="nb">ord</span><span class="p">(</span><span class="nv">$c</span><span class="p">)</span><span class="w"> </span><span class="o">>=</span><span class="w"> </span><span class="mi">255</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="s">'&amp;amp;#'</span><span class="w"> </span><span class="o">.</span><span class="w"> </span><span class="nb">ord</span><span class="p">(</span><span class="nv">$c</span><span class="p">)</span><span class="w"> </span><span class="o">.</span><span class="w"> </span><span class="s">';'</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="k">print</span><span class="w"> </span><span class="nv">$c</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="p">}</span> </pre></div> <div class="mw-heading mw-heading3"><h3 id="EmEditor_Professional_for_Windows" data-mw-thread-id="h-EmEditor_Professional_for_Windows-Unicode数値参照変換スクリプト"><span data-mw-comment-start="" id="h-EmEditor_Professional_for_Windows-Unicode数値参照変換スクリプト"></span>EmEditor Professional for Windows<span data-mw-comment-end="h-EmEditor_Professional_for_Windows-Unicode数値参照変換スクリプト"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=7" title="節を編集: EmEditor Professional for Windows"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Microsoft Windows用のテキストエディタとして、EmEditorがあります。これは、Unicodeをネイティブで扱えるため、ウィキペディアの編集に適しています。ここでは、EmEditor Professional版で使用できるWindows Scripting Hostを用いたマクロを紹介します。一部(document.selection.Text など)を除いてECMAScript互換のJScriptなので流用もしやすいでしょう。ただし、Standard版ではJScript形式のマクロは使用できないのでご注意ください。 </p> <div class="mw-heading mw-heading4"><h4 id="単純に数値参照に変える" data-mw-thread-id="h-単純に数値参照に変える-EmEditor_Professional_for_Windows"><span id=".E5.8D.98.E7.B4.94.E3.81.AB.E6.95.B0.E5.80.A4.E5.8F.82.E7.85.A7.E3.81.AB.E5.A4.89.E3.81.88.E3.82.8B"></span><span data-mw-comment-start="" id="h-単純に数値参照に変える-EmEditor_Professional_for_Windows"></span>単純に数値参照に変える<span data-mw-comment-end="h-単純に数値参照に変える-EmEditor_Professional_for_Windows"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=8" title="節を編集: 単純に数値参照に変える"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>範囲選択されている部分を数値参照に変えます。 </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="c1">// EmEditor Professinal用 Unicode数値参照変換スクリプト "num.jsee"</span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">document</span><span class="p">.</span><span class="nx">selection</span><span class="p">.</span><span class="nx">Text</span><span class="p">;</span><span class="w"> </span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">""</span><span class="p">;</span> <span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kd">var</span><span class="w"> </span><span class="nx">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0</span><span class="p">,</span><span class="w"> </span><span class="nx">l</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">str</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="w"> </span><span class="nx">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="nx">l</span><span class="p">;</span><span class="w"> </span><span class="nx">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">str</span><span class="p">.</span><span class="nx">charCodeAt</span><span class="p">(</span><span class="nx">i</span><span class="p">);</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mh">0x7f</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nx">res</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="nb">String</span><span class="p">.</span><span class="nx">fromCharCode</span><span class="p">(</span><span class="nx">c</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nx">res</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="s2">"&amp;#"</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="s2">";"</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span> <span class="w"> </span><span class="nb">document</span><span class="p">.</span><span class="nx">selection</span><span class="p">.</span><span class="nx">Text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">res</span><span class="p">;</span> </pre></div> <div class="mw-heading mw-heading4"><h4 id="日本語版で扱えない文字のみ変える" data-mw-thread-id="h-日本語版で扱えない文字のみ変える-EmEditor_Professional_for_Windows"><span id=".E6.97.A5.E6.9C.AC.E8.AA.9E.E7.89.88.E3.81.A7.E6.89.B1.E3.81.88.E3.81.AA.E3.81.84.E6.96.87.E5.AD.97.E3.81.AE.E3.81.BF.E5.A4.89.E3.81.88.E3.82.8B"></span><span data-mw-comment-start="" id="h-日本語版で扱えない文字のみ変える-EmEditor_Professional_for_Windows"></span>日本語版で扱えない文字のみ変える<span data-mw-comment-end="h-日本語版で扱えない文字のみ変える-EmEditor_Professional_for_Windows"></span></h4><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=9" title="節を編集: 日本語版で扱えない文字のみ変える"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>このスクリプトは、全角半角変換も行いますが、漏れがかなりあります。実用上は問題ないでしょう。 </p> <div class="mw-highlight mw-highlight-lang-javascript mw-content-ltr" dir="ltr"><pre><span></span><span class="w"> </span><span class="c1">// Wikipedia日本語版用 Unicode数値参照変換スクリプト "wjnum.jsee"</span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">str</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nb">document</span><span class="p">.</span><span class="nx">selection</span><span class="p">.</span><span class="nx">Text</span><span class="p">;</span><span class="w"> </span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">res</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s2">""</span><span class="p">;</span> <span class="w"> </span> <span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kd">var</span><span class="w"> </span><span class="nx">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mf">0</span><span class="p">;</span><span class="w"> </span><span class="nx">i</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="nx">str</span><span class="p">.</span><span class="nx">length</span><span class="p">;</span><span class="w"> </span><span class="nx">i</span><span class="o">++</span><span class="p">)</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="kd">var</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">str</span><span class="p">.</span><span class="nx">charCodeAt</span><span class="p">(</span><span class="nx">i</span><span class="p">);</span> <span class="w"> </span><span class="c1">// 全角・半角変換</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="mh">0xff10</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0xff19</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// 全角数字</span> <span class="w"> </span><span class="mh">0xff21</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0xff3a</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// 全角英大文字</span> <span class="w"> </span><span class="mh">0xff40</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0xff5a</span><span class="w"> </span><span class="c1">// 全角英小文字</span> <span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span> <span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">-=</span><span class="w"> </span><span class="mh">0xfee0</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xff0c</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// 全角カンマ</span> <span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0x2c</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xff0e</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// 全角ピリオド</span> <span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0x2e</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xff61</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// 半角カナ句点</span> <span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0x3002</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xff62</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// 半角カナ鉤括弧</span> <span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0x300c</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xff63</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// 半角カナ鉤括弧</span> <span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0x300d</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xff64</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// 半角カナ読点</span> <span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0x3001</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="nx">c</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mh">0xff65</span><span class="p">)</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="c1">// 半角カナ中黒</span> <span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mh">0x30fb</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="c1">// 問題がでやすい文字を数値参照化</span> <span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;</span><span class="w"> </span><span class="mh">0x7f</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// 1byte英数</span> <span class="w"> </span><span class="mh">0x3041</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0x3094</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// ひらがな</span> <span class="w"> </span><span class="mh">0x309b</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0x309e</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// かな記号</span> <span class="w"> </span><span class="mh">0x30a1</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0x30fe</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// カタカナ</span> <span class="w"> </span><span class="mh">0x3000</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0x3015</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// CJK記号</span> <span class="w"> </span><span class="mh">0x4e00</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0x9f90</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// CJK統合漢字</span> <span class="w"> </span><span class="mh">0xff01</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0xff0f</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// !"#$%&'()**+,-./</span> <span class="w"> </span><span class="mh">0xff1a</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0xff20</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// :;<=>?@</span> <span class="w"> </span><span class="mh">0xff3b</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0xff3f</span><span class="w"> </span><span class="o">||</span><span class="w"> </span><span class="c1">// [\]^_</span> <span class="w"> </span><span class="mh">0xff5b</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&amp;&amp;</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">&lt;=</span><span class="w"> </span><span class="mh">0xff5e</span><span class="w"> </span><span class="c1">// {|}~</span> <span class="w"> </span><span class="p">){</span><span class="w"> </span> <span class="w"> </span><span class="nx">res</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="nb">String</span><span class="p">.</span><span class="nx">fromCharCode</span><span class="p">(</span><span class="nx">c</span><span class="p">);</span> <span class="w"> </span><span class="p">}</span><span class="w"> </span><span class="k">else</span><span class="w"> </span><span class="p">{</span> <span class="w"> </span><span class="nx">res</span><span class="w"> </span><span class="o">+=</span><span class="w"> </span><span class="s2">"&amp;#"</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="nx">c</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="s2">";"</span><span class="p">;</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span><span class="p">}</span> <span class="w"> </span> <span class="w"> </span><span class="nb">document</span><span class="p">.</span><span class="nx">selection</span><span class="p">.</span><span class="nx">Text</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">res</span><span class="p">;</span><span class="w"> </span><span class="c1">//選択範囲 置換</span> </pre></div> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="関連項目" data-mw-thread-id="h-関連項目"><span id=".E9.96.A2.E9.80.A3.E9.A0.85.E7.9B.AE"></span><span data-mw-comment-start="" id="h-関連項目"></span>関連項目<span data-mw-comment-end="h-関連項目"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;action=edit&amp;section=10" title="節を編集: 関連項目"><span>編集</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-\u95a2\u9023\u9805\u76ee","replies":[]}}--></div> <ul><li><a href="/wiki/Wikipedia:%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0JS" title="Wikipedia:カスタムJS">Wikipedia:カスタムJS</a></li> <li><a href="/wiki/Wikipedia:%E3%82%AC%E3%82%B8%E3%82%A7%E3%83%83%E3%83%88" title="Wikipedia:ガジェット">Wikipedia:ガジェット</a></li></ul> <p><br/> </p> <!-- NewPP limit report Parsed by mw‐api‐ext.codfw.canary‐6c697c5745‐lmj6k Cached time: 20241117011208 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] DiscussionTools time usage: 0.029 seconds CPU time usage: 0.128 seconds Real time usage: 0.162 seconds Preprocessor visited node count: 230/1000000 Post‐expand include size: 5136/2097152 bytes Template argument size: 1195/2097152 bytes Highest expansion depth: 10/100 Expensive parser function count: 4/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 30734/5000000 bytes Lua time usage: 0.026/10.000 seconds Lua memory usage: 949188/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 86.026 1 -total 48.02% 41.309 1 Template:How-to 36.53% 31.423 1 Template:WikipediaPage 34.52% 29.695 1 Template:Dablink 32.83% 28.244 1 Template:Hatnote 25.05% 21.553 1 Template:Ombox 20.14% 17.322 1 Template:Ifempty 17.58% 15.123 1 Template:Category_handler 9.23% 7.944 1 Template:Main 3.59% 3.088 1 Template:Collapse_top --> <!-- Saved in parser cache with key jawiki:pcache:idhash:11581-0!canonical and timestamp 20241117011230 and revision id 102604735. Rendering was triggered because: edit-page --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">「<a dir="ltr" href="https://ja.wikipedia.org/w/index.php?title=Wikipedia:スクリプト&amp;oldid=102604735">https://ja.wikipedia.org/w/index.php?title=Wikipedia:スクリプト&amp;oldid=102604735</a>」から取得</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/%E7%89%B9%E5%88%A5:%E3%82%AB%E3%83%86%E3%82%B4%E3%83%AA" title="特別:カテゴリ">カテゴリ</a>: <ul><li><a href="/wiki/Category:%E3%82%A6%E3%82%A3%E3%82%AD%E3%83%9A%E3%83%87%E3%82%A3%E3%82%A2%E3%81%AE%E6%89%8B%E5%BC%95%E3%81%8D%E6%9B%B8" title="Category:ウィキペディアの手引き書">ウィキペディアの手引き書</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> 最終更新 2024年11月17日 (日) 01:12 (日時は<a href="/wiki/%E7%89%B9%E5%88%A5:%E5%80%8B%E4%BA%BA%E8%A8%AD%E5%AE%9A#mw-prefsection-rendering" title="特別:個人設定">個人設定</a>で未設定ならば<a href="/wiki/%E5%8D%94%E5%AE%9A%E4%B8%96%E7%95%8C%E6%99%82" title="協定世界時">UTC</a>)。</li> <li id="footer-info-copyright">テキストは<a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.ja">クリエイティブ・コモンズ 表示-継承ライセンス</a>のもとで利用できます。追加の条件が適用される場合があります。詳細については<a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">利用規約</a>を参照してください。</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy/ja">プライバシー・ポリシー</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:%E3%82%A6%E3%82%A3%E3%82%AD%E3%83%9A%E3%83%87%E3%82%A3%E3%82%A2%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6">ウィキペディアについて</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:%E5%85%8D%E8%B2%AC%E4%BA%8B%E9%A0%85">免責事項</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">行動規範</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">開発者</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/ja.wikipedia.org">統計</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookieに関する声明</a></li> <li id="footer-places-mobileview"><a href="//ja.m.wikipedia.org/w/index.php?title=Wikipedia:%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">モバイルビュー</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5cd4cd96d5-8b77w","wgBackendResponseTime":103,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-注意","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-KISSの原則-注意","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-ライセンス-注意","replies":[]}]},{"headingLevel":2,"name":"h-ネイ-2018-12-30T11:59:00.000Z","type":"heading","level":0,"id":"h-Unicode数値参照変換スクリプト-2018-12-30T11:59:00.000Z","replies":[{"headingLevel":3,"name":"h-ネイ-2018-12-30T11:59:00.000Z","type":"heading","level":0,"id":"h-JavaScript-Unicode数値参照変換スクリプト-2018-12-30T11:59:00.000Z","replies":[{"timestamp":"2018-12-30T11:59:00.000Z","author":"ネイ","type":"comment","level":1,"id":"c-ネイ-2018-12-30T11:59:00.000Z-JavaScript","replies":[]}]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Perl-Unicode数値参照変換スクリプト","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-EmEditor_Professional_for_Windows-Unicode数値参照変換スクリプト","replies":[{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-単純に数値参照に変える-EmEditor_Professional_for_Windows","replies":[]},{"headingLevel":4,"name":"h-","type":"heading","level":0,"id":"h-日本語版で扱えない文字のみ変える-EmEditor_Professional_for_Windows","replies":[]}]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-関連項目","replies":[]}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.029"},"limitreport":{"cputime":"0.128","walltime":"0.162","ppvisitednodes":{"value":230,"limit":1000000},"postexpandincludesize":{"value":5136,"limit":2097152},"templateargumentsize":{"value":1195,"limit":2097152},"expansiondepth":{"value":10,"limit":100},"expensivefunctioncount":{"value":4,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":30734,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 86.026 1 -total"," 48.02% 41.309 1 Template:How-to"," 36.53% 31.423 1 Template:WikipediaPage"," 34.52% 29.695 1 Template:Dablink"," 32.83% 28.244 1 Template:Hatnote"," 25.05% 21.553 1 Template:Ombox"," 20.14% 17.322 1 Template:Ifempty"," 17.58% 15.123 1 Template:Category_handler"," 9.23% 7.944 1 Template:Main"," 3.59% 3.088 1 Template:Collapse_top"]},"scribunto":{"limitreport-timeusage":{"value":"0.026","limit":"10.000"},"limitreport-memusage":{"value":949188,"limit":52428800}},"cachereport":{"origin":"mw-api-ext.codfw.canary-6c697c5745-lmj6k","timestamp":"20241117011208","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10