Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Google Hestia (anime) version
  3. // @icon https://raw.githubusercontent.com/tangxiadi/Google-Hestia-Anime/master/Anime/icon2.0.png
  4. // @description Hestia Dance on Google search engine
  5. // @namespace https://github.com/tangxiadi/Google-Hestia-Anime
  6. // @author tangxiadi
  7. // @homepage http://tangxiadi.cn
  8. // @include http://www.google*
  9. // @include http://images.google*
  10. // @include http://news.google*
  11. // @include http://blogsearch.google*
  12. // @include http://books.google*
  13. // @include http://209.85.165.104*
  14. // @include http://translate.google*
  15. // @include http://video.google*
  16. // @include https://translate.google*
  17. // @include https://encrypted.google*
  18. // @include https://www.google*
  19. // @include https://www.google*
  20. // @include https://images.google*
  21. // @include https://news.google*
  22. // @include https://blogsearch.google*
  23. // @include https://books.google*
  24. // @include https://209.85.165.104*
  25. // @include https://translate.google*
  26. // @include https://video.google*
  27. // @grant unsafeWindow
  28. // @grant GM_xmlhttpRequest
  29. // @run-at document-start
  30. // @version 3.5.5
  31. // @date 2015-05-25
  32. // @license http://creativecommons.org/licenses/by-nc-sa/3.0/
  33. // ==/UserScript==
  34.  
  35. (function() {var css = [
  36. "img#hplogo {",
  37. " box-sizing: border-box;",
  38. " background: url(\"https://raw.githubusercontent.com/tangxiadi/Google-Hestia-Anime/master/Anime/hestia-home.gif\") center no-repeat !important;",
  39. " padding-left: 521px;",
  40. " bottom: 155px;",
  41. " z-index: -999;",
  42. " position: relative;",
  43. " padding-bottom: 335px;",
  44. " margin: auto;",
  45. "}",
  46. "#gt-src-wrap {",
  47. " background: url(\"https://raw.githubusercontent.com/tangxiadi/Google-Hestia-Anime/master/Anime/hestia-translate.gif\") 44% 37% no-repeat;",
  48. " background-attachment: fixed;",
  49. "}",
  50. "#hplogo > div {",
  51. "display:none;",
  52. "}",
  53. "div#hplogo[style] {",
  54. "position:relative;",
  55. "top: -213px;",
  56. "}",
  57. "#hplogo {text-indent: -9000px !important;white-space: nowrap;}",
  58. "textarea { color:#fff;}",
  59. ".mw {",
  60. "background: url(\"https://raw.githubusercontent.com/tangxiadi/Google-Hestia-Anime/master/Anime/hestia-web.gif\") 80% 100% no-repeat;",
  61. "background-attachment: fixed;",
  62. "}",
  63. "#logo img {",
  64. "background: url(\"https://raw.githubusercontent.com/tangxiadi/Google-Hestia-Anime/master/Anime/hestia-logo.gif\") 17% 13% no-repeat !important;",
  65. "}",
  66. "div#hplogo {",
  67. " box-sizing: border-box;",
  68. " background: url(\"https://raw.githubusercontent.com/tangxiadi/Google-Hestia-Anime/master/Anime/hestia-home.gif\") center no-repeat !important;",
  69. " padding-left: 521px;",
  70. " bottom: 101px;",
  71. " z-index: -999;",
  72. " position: relative;",
  73. " padding-bottom: 335px;",
  74. " margin: auto;",
  75. "}",
  76. ".sbibod, .jhp input[type=\"submit\"] {",
  77. " opacity: 0.7;",
  78. "}"
  79. ].join("\n");
  80.  
  81. if (typeof GM_addStyle != "undefined") {
  82. GM_addStyle(css);
  83. } else if (typeof PRO_addStyle != "undefined") {
  84. PRO_addStyle(css);
  85. } else if (typeof addStyle != "undefined") {
  86. addStyle(css);
  87. } else {
  88. var node = document.createElement("style");
  89. node.type = "text/css";
  90. node.appendChild(document.createTextNode(css));
  91. var heads = document.getElementsByTagName("head");
  92. if (heads.length > 0) {
  93. heads[0].appendChild(node);
  94. } else {
  95. // no head yet, stick it whereever
  96. document.documentElement.appendChild(node);
  97. }
  98. }
  99. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement