// ==UserScript== // @name Remove All Classes from Infobox // @namespace https://jirehlov.com // @description 展开“更多制作人员+” // @version 0.1 // @include /^https?://(bangumi|bgm|chii).(tv|in)/subject/.*$/ // ==/UserScript== (function () { 'use strict'; const infoboxContainer = document.querySelector('div.infobox_container'); if (infoboxContainer) { const expandElements = infoboxContainer.querySelectorAll('div.infobox_expand'); expandElements.forEach(element => { element.remove(); }); const infobox = infoboxContainer.querySelector('#infobox'); if (infobox) { const children = infobox.children; for (let i = 0; i < children.length; i++) { children[i].removeAttribute('class'); } } } }());