Youtube old slogan restore

this script adds youtube's old slogan 'broadcast yourself' back both next to the logo and in the title and also restores the old logo.

  1. // ==UserScript==
  2. // @name Youtube old slogan restore
  3. // @namespace http://userscripts.org/users/428476
  4. // @description this script adds youtube's old slogan 'broadcast yourself' back both next to the logo and in the title and also restores the old logo.
  5. // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
  6. // @grant GM_getValue
  7. // @grant GM_setValue
  8. // @grant GM_deleteValue
  9. // @grant GM_registerMenuCommand
  10. // @grant GM_listValues
  11. // @grant GM_addStyle
  12. // @include http://www.youtube.com/*
  13. // @include https://www.youtube.com/*
  14. // @version 1.2
  15. // ==/UserScript==
  16.  
  17.  
  18.  
  19. $(document.createElement("button"))
  20. .attr("id", "slogan")
  21. .attr("class", "master-sprite")
  22. .insertAfter("#logo-container");
  23.  
  24.  
  25.  
  26.  
  27.  
  28. if (document.title == "YouTube") {
  29. document.title = "YouTube - Broadcast Yourself."
  30. }
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. var cssToInsert = ".master-sprite {background: url(http://web.archive.org/old-web/20090629011634/http://s.ytimg.com/yt/img/master-vfl102488.png) repeat-x scroll 0px 0px transparent !important; border:0px none !important;padding:0px !important; cursor:pointer !important;} #yt-masthead #slogan {width:125px !important; height:11px !important; background-position: 0px -33px !important; margin: 2px 2px 3px !important; cursor:default !important; display:block !important; float:left !important;} #logo-container {margin-left:0px !important; margin-top:-2px !important; margin-right:0px !important;} #logo-container:not(.doodle) #logo:not(.doodle) {background:url(https://s.ytimg.com/yt/imgbin/www-master.png) -79px -20px !important; width:110px !important; height:40px !important;} #logo-container .content-region {display:none !important;} ";
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48. var head=document.getElementsByTagName('head')[0];
  49. if(!head)
  50. return;
  51. var style=document.createElement('style');
  52. style.setAttribute('type','text/css');
  53. style.appendChild(document.createTextNode(cssToInsert));
  54. head.appendChild(style);
  55.  
  56.