Nigmotes

Giant errect minion penis

当前为 2016-02-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Nigmotes
  3. // @namespace Rooms
  4. // @version 0.58.3
  5. // @description Giant errect minion penis
  6. // @grant none
  7. // @copyright 2015
  8. // @include *://*.instasync.com/*
  9. // @include *://instasync.com/*
  10. // ==/UserScript==
  11.  
  12.  
  13. // { src:"", width:, height:, title:''},
  14. // { src:"", width:, height:, name:''},
  15.  
  16.  
  17. //emotes organized by date added
  18.  
  19.  
  20. var emotes = [
  21.  
  22. //nigmotes
  23. { src:"http://i.imgur.com/SUr2EXY.jpg", width:100, height:60, title:'johncena'}
  24. { src:"http://i.imgur.com/JPyglMD.jpg", width:100, height:70, title:'escape'}
  25. { src:"http://i.imgur.com/Y8tKvUW.jpg", width:100, height:70, title:'hellosatan'}
  26. ];
  27.  
  28. function addEmotes(){
  29. emotes.forEach(function(emote){
  30. window.$codes[emote.title || emote.name] = $('<img>', emote)[0].outerHTML;
  31. });
  32. }
  33. function main(){
  34. if(!window.$codes || Object.keys(window.$codes).length === 0){
  35. setTimeout(main, 75);
  36. }else{
  37. addEmotes();
  38. }
  39. }
  40. if (window.document.readyState === 'complete') {
  41. main();
  42. } else {
  43. window.addEventListener('load', main, false);
  44. }