Easier way to write scripts as dom
이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @require https://update.greasyfork.org/scripts/32816/215508/Append%20Script.js을(를) 사용하여 포함하는 라이브러리입니다.
// ==UserScript==
// @name Append Script
// @version 1.0
// @description Easier way to write scripts as dom
// @author A Meaty Alt
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function appendScript(scriptContent){
var script = document.createElement("script");
script.text = scriptContent;
document.getElementsByTagName("body")[0].appendChild(script);
}
appendScript(appendScript.toString());
})();