Posted By

avansare on 01/13/16


Tagged

javascript js


Versions (?)

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


 / Published in: JavaScript
 

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

  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  

You need to login to post a comment.