Return to Snippet

Revision: 70321
at January 13, 2016 19:51 by avansare


Initial Code
// ==UserScript==
// @name         CodePad | New Snipped Hack
// @version      1.0.0
// @description  When creating a new CodePad snippet, the default language will be set to 'JavaScript'.
// @author       Uunknownn
// @match        https://codepad.co/snippet
// @grant        none
// ==/UserScript==

(function(){
    document.getElementsByClassName("icn-arrow-down")[0].parentElement.innerHTML="<span>JavaScript<i class=\"icn-arrow-down\"></i></span>";
    document.getElementById("snippet_type_id-193").checked=true;
})();

Initial URL

                                

Initial Description
When creating a new https://codepad.co/ snippet, the default language will be set to 'JavaScript'.

Initial Title
Codepad.co - Set Default Language to JavaScript.js Last active 11 minutes ago

Initial Tags
javascript, js

Initial Language
JavaScript