YouTube Shorts URL 변환 버튼

YouTube Shorts URL을 일반 YouTube 비디오 URL로 변환합니다.

< YouTube Shorts URL 변환 버튼 피드백으로 돌아가기

질문/댓글

Coding改善建議

    const observer = new MutationObserver(function(mutationsList) {
        for (const mutation of mutationsList) {
            if (mutation.type === 'childList') {
                checkAndCreateButton();
            }
        }
    });

改成

    const observer = new MutationObserver(function(mutationsList) {
        for (const mutation of mutationsList) {
            if (mutation.type === 'childList') {
                checkAndCreateButton();
                break;
            }
        }
    });

最後的

observer.observe(document.documentElement, { childList: true, subtree: true });

改成

observer.observe(document.documentElement, { childList: true, subtree: true });
checkAndCreateButton();

createButtons生成了兩個,為什麼remove的部份只清除ConvertButton??

            convertButton.addEventListener('click', convertURL);
            convertButton.addEventListener('auxclick', function(event) {
                convertURL(event);
            });

改成

            convertButton.addEventListener('click', convertURL);
            convertButton.addEventListener('auxclick', convertURL);
const lang = navigator.language;

改成

const lang = document.documentElement.lang || navigator.language;

            if (data.match.includes(lang)) {

改成

            if (data.match.startsWith(lang)) {
鮪魚大師작성자
§
게시: 2025-02-26

感謝大佬指點 有人留言都沒有email通知

답글 게시

답글을 게시하려면 로그인하세요.

长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

注册一下就行

Rainyun

一年攒够 12 元