Xhamster Quick Links v.2.7

Adds handy links to the top/right of the Xhamster page (inculde USERSTYLE for HOVER)

目前為 2017-06-05 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Xhamster Quick Links v.2.7
  3. // @date 2016.01
  4. // @version 2.7
  5.  
  6. // @description Adds handy links to the top/right of the Xhamster page (inculde USERSTYLE for HOVER)
  7.  
  8. // @namespace https://greasyfork.org/users/7434
  9. // @author Andreas Schaefer it.mensch@gmail.com
  10. // @author janvier57
  11.  
  12. // @include *xhamster.com*
  13.  
  14.  
  15.  
  16. // @exclude http*://services.addons.mozilla.org/*
  17. // @exclude https://www.bing.com/*
  18.  
  19. // @grant none
  20. // @grant GM_getValue
  21. // @grant GM_setValue
  22.  
  23. // ==/UserScript==
  24.  
  25. // (Credit Andreas Schaefer)
  26.  
  27.  
  28.  
  29. if (window.top != window.self) //don't run on frames or iframes
  30. {
  31. return;
  32. }
  33.  
  34. // TWEAK FOR MY STYLE :
  35. //var customhtml = "<div style=\"position: absolute !important; top: -2px; left: 0px; margin-left: 180px !important; px;height: 15px; color: #999999; z-index: 99; width: auto !important; font-size:10px; text-align: center; white-space: nowrap !important; outline: 1px solid gray; \">" +
  36.  
  37. // TWEAK FOR NO STYLE :
  38. var customhtml = "<div style=\"border: 1px solid gray; \">" +
  39.  
  40.  
  41. // USAGE: You can put whatever links or html you want in .
  42.  
  43. // Simply Add/Edit your own links to the following variable:
  44. // EXAMPLE:
  45. // "<a href=YOUR LINK>ITS LABEL</a> | " +
  46.  
  47.  
  48. // MY FAVORITES
  49.  
  50. " <a href=http://xhamster.com/user/video/janvier57/favorite-1.html>My Favs</a>" +
  51. "►" +
  52. "<a href=http://xhamster.com/favorites/videos-200.html>My Favs200</a> " +
  53. "<a href=http://xhamster.com/favorites/videos-400.html>My Favs400</a> " +
  54. "<a href=http://xhamster.com/favorites/videos-600.html>My Favs600</a> " +
  55. "<a href=http://xhamster.com/favorites/videos-800.html>My Favs800</a> " +
  56. "<a href=http://xhamster.com/favorites/videos-900.html>My Favs900</a> " +
  57.  
  58. "►" +
  59.  
  60. // My BLOG - Xhamster Tools
  61. "<a href=http://xhamster.com/user/janvier57/posts/479976.html>Xham Tools</a>" +
  62. // Xhamster Forum
  63. "<a href=http://suggestions.xhamster.com/forums/59059-general>Xhamster Forum</a>" +
  64. // ✉ Xhamster CONTACT Support
  65. "<a href=https://xhamster.com/info/contact> ✉ Xhamster Support</a>" +
  66. // How to get around blocking xHamster.com
  67. "<a href=https://xhamster.net/>How to get around blocking xHamster.com</a>" +
  68.  
  69. "►" +
  70. // FIND A PORNSTAR
  71. "<a href=https://xhamster.com/posts/624414>Find a Pornstar (Initial)</a>" +
  72. "<a href=https://xhamster.com/posts/333371>Model Index (by Sick my Duck) (Initial)</a>" +
  73. // Verified Porns Stars (DuckDuckGo: Xhamster video with IAFD links )
  74. " <a href=https://duckduckgo.com/?q=http%3A%2F%2Fwww.iafd.com%2F+site%3Axhamster.com&t=ffsb&ia=web>DuckDuckGo Search: Xhamster video with IAFD links</a>" +
  75. // Verified Porns Stars (DuckDuckGo: Xhamster video with NudeVita links )
  76. " <a href=https://duckduckgo.com/?q=http%3A%2F%2Fwww.nudevista.com+site%3Axhamster.com&t=ffsb&ia=web>DuckDuckGo Search: Xhamster video with NudeVista links</a>" +
  77. // PornMD - Real-Time List of to PornHub's Searches : Straight
  78. "<a href=http://www.pornmd.com/live-search>PornMD : Real-Time List of to PornHub's Searches (Straight) </a> " +
  79. "</div>";
  80.  
  81.  
  82. var allspans = new Array();
  83. //JANVIER57 TWEAK 2016
  84. allspans = document.getElementsByClassName('menu');
  85. if (allspans.length == 0) {
  86. allspans = document.getElementsByClassName('global-nav-content');
  87. }
  88. allspans[0].innerHTML += customhtml;
  89.  
  90.  
  91.  
  92. // ADD MY CSS / USERSTYLE for the Script :
  93. // Test addGlolStyle STYLE technique for Chrome compatibility
  94.  
  95. function addGlobalStyle(css) {
  96. var head, style;
  97. head = document.getElementsByTagName('head')[0];
  98. if (!head) { return; }
  99. style = document.createElement('style');
  100. style.type = 'text/css';
  101. style.innerHTML = css;
  102. head.appendChild(style);
  103. }
  104. addGlobalStyle('.menu.menuUser .main + div {position:fixed !important;height:14px !important;width:9px !important;left:0 !important;top: 1px !important;color: #999999; font-size:10px;text-align:left;overflow:hidden !important;z-index:50000 !important;outline:1px solid gray;background:red;}.menu.menuUser .main + div a {color:white !important;text-shadow:none !important; }');
  105. addGlobalStyle('.menu.menuUser .main + div:hover{position: fixed!important;display:inline-block !important;height:auto !important;width:auto !important;width:auto !important;top:1px !important;left:0 !important;color:#999999;font-size:10px;text-align:left;overflow:hidden;z-index:50000 !important;outline:1px solid gray;background:blue !important; }');
  106. addGlobalStyle('.menu.menuUser .main + div a {color:white !important;text-shadow:none !important; }');