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


/ Published in: JavaScript
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. // ==UserScript==
  2. // @name CodePad | New Snipped Hack
  3. // @version 1.0.0
  4. // @description When creating a new CodePad snippet, the default language will be set to 'JavaScript'.
  5. // @author Uunknownn
  6. // @match https://codepad.co/snippet
  7. // @grant none
  8. // ==/UserScript==
  9.  
  10. (function(){
  11. document.getElementsByClassName("icn-arrow-down")[0].parentElement.innerHTML="<span>JavaScript<i class=\"icn-arrow-down\"></i></span>";
  12. document.getElementById("snippet_type_id-193").checked=true;
  13. })();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.