Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

[pull request]: console error messages

About: Auto Close YouTube Ads

Hi,
I was seeing a console error message, which was kind of annoying as i was also watching that console for other messages...

So i changed the function waitAndClick on line 190, adding a conditional:

    waitAndClick('a.close-button', function(btn) {
        if(Util.q('div.recall-button')){
            Util.q('div.recall-button').remove();
        }
    })

Can you commit back into Master? or How do i make a pull request?

Error message:

userscript.html?id=fb325494-3fb0-4181-9762-f2ce3259db8f:191 Uncaught TypeError: Cannot read property 'remove' of null
    at eval (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=fb325494-3fb0-4181-9762-f2ce3259db8f:191:40)
    at Window.eval (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?id=fb325494-3fb0-4181-9762-f2ce3259db8f:233:9)
    at <anonymous>:2:120
    at T.e.string.f.function.c.(anonymous function) (eval at exec_fn (:1:108), <anonymous>:51:390)
Sign In or Register to comment.