I made a new script to add links for MangaDex searches to pages.

This is basically what it does. And here's the code if anyone wants to use it:
// ==UserScript==    
// @name         Dynasty: MangaDex Search    
// @namespace    Alice    
// @version      4    
// @description  try to take over the world!    
// @author       Alice    
// @include      https://dynasty-scans.com/chapters/*    
// @include      https://dynasty-scans.com/series/*    
// @include      https://dynasty-scans.com/issues/*    
// @include      https://dynasty-scans.com/anthologies/*    
// @grant        none    
// ==/UserScript==    
let dstitle;    
if (document.location.href.match(/chapters/)) {    
    dstitle = document.querySelector("#chapter-title");    
} else {    
    dstitle = document.querySelector("h2.tag-title");    
}    
let title,    
    author, x0 = document.createElement("span"),    
    x1 = document.createElement("a"),    
    x2 = document.createElement("a");    
if (!dstitle.querySelector("b a")) {    
    title = dstitle.querySelector("b").innerText;    
} else {    
    title = dstitle.querySelector("b a").innerText;    
}    
x0.innerText = "MangaDex Search:";    
x0.style.paddingLeft = "4px";    
x1.href = "https://mangadex.org/search?title=" + title;    
x1.innerText = "Title";    
x1.style.margin = "0 4px";    
x0.appendChild(x1);    
if (document.location.href.match(/chapters/) || document.location.href.match(/series/)) {    
    if (!dstitle.querySelector("b a")) {    
        author = dstitle.querySelector("a").innerText;    
    } else {    
        author = dstitle.querySelectorAll("a")[1].innerText;    
    }    
    x2.href = "https://mangadex.org/search?author=" + author;    
    x2. innerText = "Author";    
    x0.appendChild(x2);    
}    
dstitle.appendChild(x0);    
last edited at Aug 20, 2020  5:09AM