Bilibili Opensearch

找回被移除的 哔哩哔哩 Opensearch

  1. // ==UserScript==
  2. // @name Bilibili Opensearch
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2_fin
  5. // @description 找回被移除的 哔哩哔哩 Opensearch
  6. // @author Lcandy
  7. // @run-at document-start
  8. // @match *://bilibili.com/*
  9. // @match *://www.bilibili.com/*
  10. // @match *://search.bilibili.com/*
  11. // @homepageURL https://github.com/Lcandy2
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. (function() {
  16. var head=document.getElementsByTagName('head')[0];
  17. var link=document.createElement('link');
  18. link.rel="search";
  19. link.type="application/opensearchdescription+xml";
  20. if (window.location.hostname.indexOf("bilibili.com") >= 0){
  21. link.href="//osearch.vercel.app/opensearch/bilibili.com/opensearch.xml";
  22. link.title="哔哩哔哩";}
  23. head.appendChild(link)
  24. }())

QingJ © 2025

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