JoyReactor better mobile link

Link to page

当前为 2024-06-29 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name JoyReactor better mobile link
  3. // @description Link to page
  4. // @namespace https://gist.github.com/qiwichupa/6a81db04507c850e27e7e44bbdd04066
  5. // @homepage https://greasyfork.org/ru/scripts/499146-joyreactor-better-mobile-link
  6. // @author qiwichupa
  7. // @version 2024.06.28.21
  8. // @license Public Domain
  9. // @include http*://*.reactor.cc*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. $('a[href^="http://m.joyreactor.cc"]').each(function() {
  14. var link = $(this);
  15. var href = link.attr('href');
  16. if (href)
  17. var page=window.location.href.replace(window.location.origin, "")
  18. link.attr('href', href+page);
  19. });