24 lines
594 B
JavaScript
24 lines
594 B
JavaScript
function template() {
|
|
if (window.location.href.contains(/[]/)) {
|
|
const $$ = $('.content-wrapper');
|
|
const opt = {
|
|
characterData: true,
|
|
attributes: true,
|
|
subtree: true,
|
|
childList: true
|
|
};
|
|
const OB = new MutationObserver(() => {
|
|
OB.disconnect();
|
|
titleTrans();
|
|
contentTitleLinksTrans();
|
|
trans();
|
|
OB.observe($$.get(0), opt);
|
|
});
|
|
const trans = () => {
|
|
};
|
|
trans();
|
|
OB.observe($$.get(0), opt);
|
|
return;
|
|
}
|
|
}
|