tzrj / Molun Script

// ==UserScript==
// @name         Molun Script
// @namespace    http://molun.today
// @version      1.0
// @description  TSRC新编辑器
// @license MIT
// @copyright 2023, tzrj (https://openuserjs.org/users/tzrj)
// @match        https://security.tencent.com/index.php/report/add
// @icon         https://www.google.com/s2/favicons?sz=64&domain=security.tencent.com
// @run-at document-start
// ==/UserScript==
new MutationObserver(function(mutations) {
		if (document.querySelector("body > script:nth-child(18)")) {
			var configjs = document.querySelector("body > script:nth-child(18)");
			if (configjs) {
				configjs.src="https://test-1311962251.cos.ap-shanghai.myqcloud.com/config.js?t=20230426hookbymolun";
				this.disconnect(); // disconnect the observer
			}
		}
	})
	.observe(document, {
		childList: true,
		subtree: true
	});