LostFilm - Close dialog after download.

Torrents are downloaded in main window instead of opened dialog, also dialog closes when torrent downloaded.

  1. // ==UserScript==
  2. // @name LostFilm - Close dialog after download.
  3. // @version 1.0
  4. // @description Torrents are downloaded in main window instead of opened dialog, also dialog closes when torrent downloaded.
  5. // @match http://retre.org/*
  6. // @grant none
  7. // @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
  8. // @author Epsil0neR
  9. // @namespace https://gf.qytechs.cn/en/users/19387
  10. // ==/UserScript==
  11.  
  12. $(document).on('click', 'a', function(evt){
  13. if (window.opener && typeof this.getAttribute('href') === 'string') {
  14. evt.preventDefault();
  15. window.opener.location = this.getAttribute('href');
  16. window.close();
  17. }
  18. });

QingJ © 2025

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