Always Mobile xHamster

Switches to Mobile Version

  1. // ==UserScript==
  2. // @name Always Mobile xHamster
  3. // @namespace robin.india@gmail.com
  4. // @description Switches to Mobile Version
  5. // @include https://xhamster.com/*
  6. // @version 1
  7. // @grant none
  8. // @icon https://static-ec.xhcdn.com/images/favicon/favicon-128x128.png
  9. // ==/UserScript==
  10. 'use strict';
  11.  
  12. var m = /^(https?:\/\/)(\xhamster\.com\/.*)/.exec(location.href);
  13. if (m) { window.location = m[1] + "m." + m[2] };