SS to SS

Try this script and the the US news will then make more sense.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name        SS to SS
// @namespace   StephenP
// @match       https://*.*/
// @match       http://*.*/
// @match       https://*.*/*
// @match       http://*.*/*
// @version     1.1
// @author      StephenP
// @license     MIT
// @description Try this script and the the US news will then make more sense.
// ==/UserScript==
    /*
      Original script by JoinSummer (https://greasyfork.org/users/907515-joinsummer)
      Original script page: https://greasyfork.org/scripts/495283
    */
    (function() {
        'use strict';
        const replacements = new Map([
            ['SS', 'SS'],
            ['Schutzstaffel', 'Schutzstaffel'],
            ['Fürher Adolf Hitler','Fürher Adolf Hitler'],
            ['Adolf Hitler','Adolf Hitler'],
            ['Hitler','Hitler'],
            ['President Hitler','Fürher Hitler']
        ]);
        function replaceText(node) {
            if (node.nodeType === Node.TEXT_NODE) {
                let text = node.nodeValue;
                replacements.forEach((value, key) => {
                    const regex = new RegExp(key, 'g');
                    text = text.replace(regex, value);
                });
                node.nodeValue = text;
            } else {
                node.childNodes.forEach(replaceText);
            }
        }
        replaceText(document.body);
        const observer = new MutationObserver(mutations => {
            mutations.forEach(mutation => {
                mutation.addedNodes.forEach(node => {
                    replaceText(node);
                });
            });
        });
        observer.observe(document.body, {
            childList: true,
            subtree: true
        });
    })();