Create history list

Creates a list of your download history.

  1. // ==UserScript==
  2. // @name Create history list
  3. // @namespace pxgamer
  4. // @version 0.2
  5. // @description Creates a list of your download history.
  6. // @author pxgamer
  7. // @include *kat.cr/account/history*
  8. // @grant GM_setValue
  9. // @grant GM_getValue
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var all = { titles: [], magnets: [], torrents: [] };
  16.  
  17. $('a.cellMainLink[href$=".html"]').each(function() {
  18. all.titles.push($(this).html());
  19. });
  20. $('a[title="Torrent magnet link"]').each(function() {
  21. all.magnets.push($(this).attr('href'));
  22. });
  23. $('a[title="Download torrent file"]').each(function() {
  24. all.torrents.push($(this).attr('href'));
  25. });
  26.  
  27. console.log(all);
  28.  
  29. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址