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. { src:"http://i.imgur.com/0b9cJ1s.jpg", width:700, height:700, title:'hikevin'},
  27. ];
  28.  
  29. function addEmotes(){
  30. emotes.forEach(function(emote){
  31. window.$codes[emote.title || emote.name] = $('<img>', emote)[0].outerHTML;
  32. });
  33. }
  34. function main(){
  35. if(!window.$codes || Object.keys(window.$codes).length === 0){
  36. setTimeout(main, 75);
  37. }else{
  38. addEmotes();
  39. }
  40. }
  41. if (window.document.readyState === 'complete') {
  42. main();
  43. } else {
  44. window.addEventListener('load', main, false);
  45. }