Thai enlarger

Thai enlarger. https://www.reddit.com/r/programmingrequests/comments/i86vvs/help_with_a_firefox_extension_converted_from_old/

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

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Thai enlarger
// @namespace    none
// @version      0.1
// @description  Thai enlarger. https://www.reddit.com/r/programmingrequests/comments/i86vvs/help_with_a_firefox_extension_converted_from_old/
// @author       ky1-e
// @include http://*/*
// @include https://*/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

        var pagehtml = document.body.innerHTML;


var allThaiLetters = "";

var thisLetter = "";

for (let x = 3585 ; x < 3675 ; x++) {

    thisLetter = String.fromCharCode(x);

    allThaiLetters = allThaiLetters + thisLetter + "|";

}

allThaiLetters = allThaiLetters.substring(0, allThaiLetters.length - 1);

var thaiRegex = new RegExp("(("+allThaiLetters+")+)", "g");

pagehtml = pagehtml.replace(thaiRegex, "<span style=font-size:160%>$1</span>");

document.body.innerHTML = pagehtml;

})();