xHamster Custom "New xHamster" Button

Replaces the "New xHamster" button with your text and link

  1. // ==UserScript==
  2. // @name xHamster Custom "New xHamster" Button
  3. // @namespace https://greasyfork.org/en/scripts/370229-xhamster-custom-new-xhamster-button
  4. // @version 0.1
  5. // @description Replaces the "New xHamster" button with your text and link
  6. // @author Phlegomatic
  7. // @match https://xhamster.com/*
  8. // @include https://*.xhamster.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. //------------------------ Customize It!
  13. var TAG = " "; // <--- Your Text Goes Here
  14. var URL = "https://xhamster.com"; // <--- Your Link Goes Here
  15. //------------------------
  16.  
  17.  
  18.  
  19. var cName = "design-switcher no-popunder";
  20.  
  21. document.getElementsByClassName(cName)[0].innerHTML=TAG;
  22. document.getElementsByClassName(cName)[0].href=URL;
  23.