logo logo-text
menu_button
menu_button
close_button
[Á¤º¸] [ÆÁ] À¯Æ©ºê ±¤°í Â÷´Ü
rankÀ¯¶ûõÇÏ 2023-12-08 21:09 Á¶È¸ 1,679 Ãßõ 13 ´ñ±Û 3

Youtube ±¤°í°¡ ¹ÌÃÆ´ÂÁö Á» ±ä ¿µ»óº¸´Ùº¸¸é 10ºÐ¸¶´Ù Çѹø¾¿ ¶ß´Â °æ¿ì°¡ ÀÖ´õ±º¿ä.. 

30ºÐ¿¡ Çѹø¾¿ ¶ã¶§±îÁö¸¸ Çصµ ±×³É ±¤°í º¸À̸é 5Ãʵڿ¡ °Ç³Ê¶ç±â ´­·¯¼­ º¸°í ±×·¨¾ú´Âµ¥ ... 

10ºÐ¸¸´Ù ¶ß´Ï Â¥ÁõÀÌ ³ª´õ±º¿ä...   ¾î¿¼ö ¾øÀÌ ±¤°í °Ç³Ê¶ç´Â ¹æ¹ýÀ» ã¾Æ º¾´Ï´Ù. 

 

 

¾Æ·¡ ¼Ò½º¸¦ Áñ°Üã±â¿¡ ³Ö¾îµÎ½Ã°í À¯Æ©ºê µé¾î°¡¼­ Çѹø¾¿ ´­·¯ÁÖ¸é µË´Ï´Ù.   ÁÖ¼Òâ¿¡ º¹»çÇؼ­ ºÙ¿©³Ö°í ¸Ç¾Õ¿¡ javascript:¸¦ ³ÖÀºÈÄ Áñ°Üã±â·Î ²ø¾î ¿À½Ã¸é Áñ°Üã±â Ãß°¡ÇÑÈÄ ¾Ë¾Æº¸±â ½±°Ô À̸§ ¹Ù²ãÁÖ¸é À¯Æ©ºê Á¢¼ÓÈÄ ÇØ´ç Áñ°Üã±â¸¦ Çѹø ´­·¯ÁÖ¸é µË´Ï´Ù.      

ȤÀº À¯Æ©ºê Á¢¼ÓÈÄ F12 ´­·¯ ÄܼÖÅÇ¿¡¼­ ÇØ´ç ¼Ò½º¸¦ ºÙ¿©³õ°í ½ÇÇà½ÃÅ°´Â ¹æ¹ýµµ ÀÖ½À´Ï´Ù.

 

 

(function()


 {


    const adblocker = true;


    const removePopup = true;


    const debug = true;


 


    const domainsToRemove = [


        '*.youtube-nocookie.com/*'


    ];


    const jsonPathsToRemove = [


        'playerResponse.adPlacements',


        'playerResponse.playerAds',


        'adPlacements',


        'playerAds',


        'playerConfig',


        'auxiliaryUi.messageRenderers.enforcementMessageViewModel'


    ];


 


    const observerConfig = {


        childList: true,


        subtree: true


    };


 


    const keyEvent = new KeyboardEvent("keydown", {


      key: "k",


      code: "KeyK",


      keyCode: 75,


      which: 75,


      bubbles: true,


      cancelable: true,


      view: window


    });


 


    let mouseEvent = new MouseEvent("click", {


      bubbles: true,


      cancelable: true,


      view: window,


    });


 


    let unpausedAfterSkip = 0;


 


    if (debug) console.log("Remove Adblock Thing: Remove Adblock Thing: script started");


    window.__ytplayer_adblockDetected = false;


 


    if(adblocker) addblocker();


    if(removePopup) popupRemover();


    if(removePopup) observer.observe(document.body, observerConfig);


 


    function popupRemover() {


        removeJsonPaths(domainsToRemove, jsonPathsToRemove);


        setInterval(() => {


 


            const fullScreenButton = document.querySelector(".ytp-fullscreen-button");


            const modalOverlay = document.querySelector("tp-yt-iron-overlay-backdrop");


            const popup = document.querySelector(".style-scope ytd-enforcement-message-view-model");


            const popupButton = document.getElementById("dismiss-button");


 


            const video1 = document.querySelector("#movie_player > video.html5-main-video");


            const video2 = document.querySelector("#movie_player > .html5-video-container > video");


 


            const bodyStyle = document.body.style;


 


            bodyStyle.setProperty('overflow-y', 'auto', 'important');


 


            if (modalOverlay) {


                modalOverlay.removeAttribute("opened");


                modalOverlay.remove();


            }


 


            if (popup) {


                if (debug) console.log("Remove Adblock Thing: Popup detected, removing...");


 


                if(popupButton) popupButton.click();


                popup.remove();


                unpausedAfterSkip = 2;


 


                fullScreenButton.dispatchEvent(mouseEvent);


              


                setTimeout(() => {


                  fullScreenButton.dispatchEvent(mouseEvent);


                }, 500);


 


                if (debug) console.log("Remove Adblock Thing: Popup removed");


            }


 


            if (!unpausedAfterSkip > 0) return;


 


            unPauseVideo(video1);


            unPauseVideo(video2);


 


        }, 1000);


    }


 


    function addblocker()


    {


        setInterval(() =>


                    {


            const skipBtn = document.querySelector('.videoAdUiSkipButton,.ytp-ad-skip-button');


            const ad = [...document.querySelectorAll('.ad-showing')][0];


            const sidAd = document.querySelector('ytd-action-companion-ad-renderer');


            const displayAd = document.querySelector('div#root.style-scope.ytd-display-ad-renderer.yt-simple-endpoint');


            const sparklesContainer = document.querySelector('div#sparkles-container.style-scope.ytd-promoted-sparkles-web-renderer');


            const mainContainer = document.querySelector('div#main-container.style-scope.ytd-promoted-video-renderer');


            const feedAd = document.querySelector('ytd-in-feed-ad-layout-renderer');


            const mastheadAd = document.querySelector('.ytd-video-masthead-ad-v3-renderer');


            const sponsor = document.querySelectorAll("div#player-ads.style-scope.ytd-watch-flexy, div#panels.style-scope.ytd-watch-flexy");


            const nonVid = document.querySelector(".ytp-ad-skip-button-modern");


 


            if (ad)


            {


                const video = document.querySelector('video');


                video.playbackRate = 10;


                video.volume = 0;


                video.currentTime = video.duration;


                skipBtn?.click();


            }


 


            sidAd?.remove();


            displayAd?.remove();


            sparklesContainer?.remove();


            mainContainer?.remove();


            feedAd?.remove();


            mastheadAd?.remove();


            sponsor?.forEach((element) => {


                 if (element.getAttribute("id") === "panels") {


                    element.childNodes?.forEach((childElement) => {


                      if (childElement.data.targetId && childElement.data.targetId !=="engagement-panel-macro-markers-description-chapters")


                            childElement.remove();


                          });


                       } else {


                           element.remove();


                       }


             });


            nonVid?.click();


        }, 50)


    }


 


    function unPauseVideo(video)


    {


        if (!video) return;


        if (video.paused) {


 


            document.dispatchEvent(keyEvent);


            unpausedAfterSkip = 0;


            if (debug) console.log("Remove Adblock Thing: Unpaused video using 'k' key");


        } else if (unpausedAfterSkip > 0) unpausedAfterSkip--;


    }


    function removeJsonPaths(domains, jsonPaths)


    {


        const currentDomain = window.location.hostname;


        if (!domains.includes(currentDomain)) return;


 


        jsonPaths.forEach(jsonPath => {


            const pathParts = jsonPath.split('.');


            let obj = window;


            let previousObj = null;


            let partToSetUndefined = null;


        


            for (const part of pathParts) {


                if (obj.hasOwnProperty(part)) {


                    previousObj = obj;


                    partToSetUndefined = part;


                    obj = obj[part];


                } else {


                    break;


                }


            }


        


            if (previousObj && partToSetUndefined !== null) {


                previousObj[partToSetUndefined] = undefined;


            }


        });


    }


 


    const observer = new MutationObserver(() =>


    {


        removeJsonPaths(domainsToRemove, jsonPathsToRemove);


    });


})();

 

 

À§ ¼Ò½º´Â ÇØ¿ÜÀ¯Àú°¡ github¿¡ °ø°³µÈ ¼Ò½º ÀÔ´Ï´Ù.

https://github.com/TheRealJoelmatic/RemoveAdblockThing/releases

 

¸Å¹ø À¯Æ©ºê µé¾î°¡¼­ Çѹø¾¿ ´­·¯ÁÖ´Â°Ô ±ÍÂú´Ù¸é

Run Javascript °°Àº º°µµÀÇ È®Àå ÇÁ·Î±×·¥ À̳ª Tampermonkey °°Àº È®ÀåÇÁ·Î±×·¥À» ÀÌ¿ëÇϽô ¹æ¹ýµµ ÀÖ½À´Ï´Ù.

ÀÚ±â¼Ò°³°¡ ¾ø½À´Ï´Ù.

🔥 ¿À´ÃÀÇ HIT 10 ÀÏ°£ ÁÖ°£
#ºñ¹Ð»óÁ¡
rankjhw6818 2023.12.09 02:14
ÇÁ¸®¹Ì¾ö »ç¿ë ¾ÈÇϽô ºÐµé¿¡°Ô´Â ÆÁÀÌ µÉ ¼öµµ Àְڳ׿ä.
̵̧ 0
rank¹éÆÑ 2023.12.09 15:31
10ºÐ¸¶´Ù Çѹø¾¿ ³ª¿À¸é ¿ÀÈ÷·Á ´ÙÇàÀÌÁÒ..

10ºÐÂ¥¸® ¿µ»ó¿¡ ½ºÅµ ¾ÈµÇ´Â 15ÃÊ~30ÃÊ ±¤°í°¡ 7°³³ª ³ª¿ÂÀûµµ ÀÖÀ½.
̵̧ 0
rank¶ß°Å¿î¸»¹ú 2023.12.12 15:12
Brave ¾²¼¼¿ä ÃÖ±Ù¿¡ Å©·Ò¿¡¼­ °¥¾ÆÅÀ´Âµ¥ ÆíÇÏ°í ÁÁ´õ¶ó°í¿ä
̵̧ 0
Àαâ
Á¶È¸
´ñ±Û

💬 ÃֽűÛ

Àüü À¯¸Ó ¿¬¿¹ ÀÚÀ¯ ½Ã»ç Ä¿¹Â ä³Î

❤️‍🔥 HIT

°øÀ¯Çϱâ

ȨÀ¸·Î | ·Î±×ÀÎ | PC¹öÀü | ´ÙÅ©¸ðµå | ¸ÇÀ§·Î
Ã⼮üũ | Æ÷ÀÎÆ®Á¤Ã¥ | Æ÷ÀÎÆ®¼øÀ§ |

ÀÌÅä·£µå ·Î°í

°èÁ¤ ã±â ȸ¿ø°¡ÀÔ
¼Ò¼È·Î±×ÀÎ