Greasy Fork is available in English.

海豚海豹PT辅助

A PT site helper

  1. // ==UserScript==
  2. // @name 海豚海豹PT辅助
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description A PT site helper
  6. // @author You
  7. // @match https://greatposterwall.com/torrents.php*
  8. // @match https://dicmusic.club/torrents.php*
  9. // @icon https://www.google.com/s2/favicons?domain=greatposterwall.com
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. 'use strict';
  15. // ------------------------ 音乐站
  16. if (location.origin.includes('dicmusic')) {
  17. // 折叠
  18. var link = document.querySelector('a.show_torrents_link'); var event = { ctrlKey: true }; toggle_group(1, link, event);
  19. // 免费检测
  20. let has = 0;
  21. document.querySelectorAll('td.td_info').forEach(node => {
  22. const text = node.innerText;
  23. if (text.includes('免费') || text.includes('free')) {
  24. has = 1;
  25. }
  26. });
  27. if (has) $('#menu ul').append('<li style="color:red">有免费种</li>');
  28. }
  29.  
  30. // ------------------------ 影视站
  31. if (location.origin.includes('greatposterwall')) {
  32. // 折叠
  33. var link = document.querySelector('a.show_torrents_link'); var event = { ctrlKey: true }; toggle_group(1, link, event);
  34. // 免费检测
  35. let has = 0;
  36. document.querySelectorAll('a.torrent_specs').forEach(node => {
  37. const text = node.innerText;
  38. if (text.includes('免费') || text.includes('free')) {
  39. has = 1;
  40. }
  41. });
  42. if (has) $('#menu ul').append('<li style="color:red">有免费种</li>');
  43. }
  44.  
  45. })();