Go to biliplus

给tucao.one的某些页面的视频条目添加一个链接,一键跳转到对应的biliplus地址

  1. // ==UserScript==
  2. // @name Go to biliplus
  3. // @namespace https://liu233w.github.io
  4. // @version 1.0.2
  5. // @description 给tucao.one的某些页面的视频条目添加一个链接,一键跳转到对应的biliplus地址
  6. // @author Liu233w
  7. // @match https://www.tucao.in/*
  8. // @icon https://www.google.com/s2/favicons?domain=tucao.one
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14.  
  15. if (window.location.href.indexOf("www.tucao.in/index.php?m=search&") > -1) {
  16. $('.list .info').each(function () {
  17. const href = $(this).find('a.blue').attr('href')
  18. const vid = href.match(/(h\d+)/)[0]
  19. $(this).append(`<a href="https://www.biliplus.com/play/${vid}/">BiliPlus</a>`)
  20. })
  21.  
  22. } else if (window.location.href.indexOf("www.tucao.in/list/") > -1) {
  23. $('li .box').each(function () {
  24. const href = $(this).find('a.title').attr('href')
  25. const vid = href.match(/(h\d+)/)[0]
  26. $(this).find('.info').append(`<a href="https://www.biliplus.com/play/${vid}/">BiliPlus</a>`)
  27. })
  28.  
  29. } else if (window.location.href.indexOf("www.tucao.in/play/") > -1) {
  30. const vid = window.location.href.match(/(h\d+)/)[0]
  31. $('.new_tool ul').prepend(`<a href="https://www.biliplus.com/play/${vid}/">BiliPlus</a>`)
  32. }
  33.  
  34. })();

QingJ © 2025

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