getman九桃小说解析油猴脚本

// ==UserScript==
// @name         getman九桃小说解析
// @icon         https://getman.cn/img/icon.png
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        *://getman.cn/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    $(document).ajaxSuccess(function(a,b,c,d) {
        let url = $("#request-url").val();
        if (url.startsWith("https://www.9txs.com/book/")) {
            let html = d.data.body;
            let title = $(html).find(".area h1").html();
            title = '<h1>' + title + "</h1>";
            let content = $(html).find("#content").html();
            $("#response-content-body .response-content").html(title + '<br/>' + content);
        }
    });
})();
原文地址:https://www.cnblogs.com/nihaorz/p/13100880.html