From 39749ab7289e985c793af2bb9e8d44d23bfcdc8c Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 19 Nov 2015 01:48:31 +0300 Subject: [PATCH] fix ad removal --- booru.mass.uploader.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/booru.mass.uploader.user.js b/booru.mass.uploader.user.js index ff0eb1e..9319828 100644 --- a/booru.mass.uploader.user.js +++ b/booru.mass.uploader.user.js @@ -34,11 +34,11 @@ if (~document.location.href.indexOf('s=mass_upload')) { try { var notice = document.getElementById('notice').previous() ; if (notice) notice.parentNode.removeChild(notice); - var longnotice = document.getElementById('long-notice'); - if (longnotice) longnotice.parentNode.removeChild(longnotice); var ad = document.querySelectorAll('center div[id*="adbox"]')[0].parentNode; ad.parentNode.removeChild(ad); - } catch(any){}; + var ad = document.querySelectorAll('#right-col div[id*="adbox"]')[0].parentNode; + ad.parentNode.removeChild(ad); + } catch(any){} var navbar = document.getElementById('navbar') || document.getElementsByClassName('flat-list2')[0]; var li = document.createElement("li");