Penis for Twitter

Replaces the "Favorite" heart by a penis.

  1. // ==UserScript==
  2. // @name Penis for Twitter
  3. // @namespace tuxproject.de
  4. // @description Replaces the "Favorite" heart by a penis.
  5. // @description:de Ersetzt das "Gefällt mir"-Herz durch einen Penis.
  6. // @author @tux0r
  7. // @license WTFPL; http://wtfpl.net/txt/copying
  8. // @version 1
  9. // @include /^https?://(www\.)?twitter\.com/.*?$/
  10. // ==/UserScript==
  11.  
  12. function addGlobalStyle(css) {
  13. var head, style;
  14. head = document.getElementsByTagName('head')[0];
  15. if (!head) { return; }
  16. style = document.createElement('style');
  17. style.type = 'text/css';
  18. style.innerHTML = css;
  19. head.appendChild(style);
  20. }
  21.  
  22. addGlobalStyle('.HeartAnimation { background-image: url(http://tuxproject.de/projects/TwitterPenis/penis.png) !important; }');