Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
fix ad removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Seedmanc committed Nov 18, 2015
1 parent 4b825ea commit 39749ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions booru.mass.uploader.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 39749ab

Please sign in to comment.