Greasy Fork is available in English.

Append Script

Easier way to write scripts as dom

Este script no debería instalarse directamente. Es una biblioteca que utilizan otros scripts mediante la meta-directiva de inclusión // @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());
})();