ShikiLink

Adds buttons to search for anime on Anime365 and AnimeGo

当前为 2023-04-22 提交的版本,查看 最新版本

// ==UserScript==
// @name         ShikiLink
// @version      0.1
// @description  Adds buttons to search for anime on Anime365 and AnimeGo
// @author       vuchaev2015
// @match        https://shikimori.me/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=shikimori.me
// @grant        none
// @namespace https://gf.qytechs.cn/users/997663
// ==/UserScript==

if (document.querySelector("#animes_show > section > div > header > meta")) {
  const bDbEntryDivs = document.querySelectorAll(".b-db_entry");
  bDbEntryDivs.forEach((div) => {
    const cImageDiv = div.querySelector(".c-image");
    const animename = document.querySelector("#animes_show > section > div > header > meta").getAttribute("content");
    const newDiv = document.createElement("div");
    newDiv.innerHTML = `
      <div id="answer_is_forty_two">
        <a target="_blank" class="b-link_button" title="Anime365" href="https://smotret-anime.com/catalog/search?q=${encodeURIComponent(animename)}" rel="nofollow noopener noreferrer">Anime365</a>
        <a target="_blank" class="b-link_button" title="AnimeGo.org" href="https://animego.org/search/anime?q=${encodeURIComponent(animename)}" rel="nofollow noopener noreferrer">AnimeGo.org</a>
      </div>`;
    cImageDiv.appendChild(newDiv);
  });
}

QingJ © 2025

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