字幕组字幕下载页面扩展脚本

给字幕组的字幕下载页面增加一个字幕版本对应的视频文件下载链接

  1. // ==UserScript==
  2. // @name 字幕组字幕下载页面扩展脚本
  3. // @icon http://www.rrys2019.com/favicon.ico
  4. // @author LisonFan
  5. // @version 1.0.1
  6. // @description 给字幕组的字幕下载页面增加一个字幕版本对应的视频文件下载链接
  7. // @match http://www.rrys2019.com/subtitle/*
  8. // @grant none
  9. // @license MIT License
  10. // @require https://lib.baomitu.com/jquery/3.4.1/jquery.min.js
  11. // @namespace https://github.com/LisonFan/
  12. // ==/UserScript==
  13.  
  14. (function ($) {
  15. 'use strict';
  16.  
  17. let subtitleInfoList = $("ul.subtitle-info").find("li")
  18. $.each(subtitleInfoList, function () {
  19. let tmpStr = $(this).text()
  20. if (tmpStr.search(/^版本/g) > -1) {
  21. let title = tmpStr.substring(3)
  22. title = title.replace(/(\.zip|\.rar)$/, "")
  23. let url = "https://rarbg.to/torrents.php?search=" + title
  24. let a = "<a href='" + url + "' target='_blank' style='color: red;'>" + title + "</a>"
  25. $(this).html($(this).text().replace(title, a + " <- 点击跳转"))
  26. }
  27. })
  28. })(jQuery);

QingJ © 2025

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