Remove tag on Komica.
目前為
// ==UserScript==
// @name Komica: Remove Tag
// @version 1.0.0
// @description Remove tag on Komica.
// @author Hayao-Gai
// @namespace https://github.com/HayaoGai
// @icon https://i.imgur.com/ltLDPGc.jpg
// @include http://*.komica.org/*/*
// @include https://*.komica.org/*/*
// @grant none
// ==/UserScript==
(function() {
"use strict";
const $ = window.jQuery;
$(document).ready(() => {
setObserver();
removeTag();
});
function removeTag() {
$(".category").remove();
}
// 展開監聽
const MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
function setObserver() {
const observer = new MutationObserver(removeTag);
const config = { attributes: true, childList: true, characterData: true };
$(".thread").each(function() {
observer.observe(this, config);
});
}
})();