Snowlord7 Dev Console

dev console by snowlord7, but i added a button to open it.

目前为 2019-09-16 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Snowlord7 Dev Console
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description dev console by snowlord7, but i added a button to open it.
  6. // @author twarped
  7. // @match http*://*/*
  8. // @exclude https://docs.google.com/*/*
  9. // @exclude https://sites.google.com/*/*
  10. // @grant none
  11. // ==/UserScript==
  12. var on = document.createElement('button');
  13. on.innerHTML = "Dev Console";
  14. on.addEventListener("click",function(){
  15. var x = document.createElement("script");
  16. x.src = "https://cdn.jsdelivr.net/gh/SnowLord7/devconsole@master/main.js";
  17. x.onload = alert("Loaded Developer Console!")+alert('this is Snowlord7s thing...');
  18. document.head.appendChild(x);
  19. });
  20. document.body.appendChild(on);