Sleazy Fork is available in English.

phtest

for videos issues on slow devices

  1. // ==UserScript==
  2. // @name phtest
  3. // @namespace https://sleazyfork.org/fr/users/60332-maxime
  4. // @include http://www.pornhub.com/*
  5. // @description for videos issues on slow devices
  6. // @version 1
  7. // @grant GM_openInTab
  8. // @require http://code.jquery.com/jquery-2.1.4.min.js
  9. // @run-at document-end
  10. // @noframes
  11. // ==/UserScript==
  12. $(document).delegate("*","click",function(){
  13. var link = $(this).attr('href');
  14. //alert(link);
  15. if (link.indexOf("view_video.php?viewkey=") >= 0) {
  16. var regex = /view_video\.php\?viewkey=/;
  17. link = link.replace(regex, "embed/");
  18. GM_openInTab (link);
  19. return false;
  20. }
  21. });