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

Commit

Permalink
Uploader link insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
Seedmanc committed Feb 27, 2016
1 parent 6b23be1 commit 4ae0ee8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions booru.mass.uploader.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
// @include http://*.booru.org/index.php*
// @include http://gelbooru.com/index.php*
// @include http://safebooru.org/index.php*
// @include http://rule34.xxx/index.php*
// @include https://moe.dev.myconan.net/*
// @include http://behoimi.org/*
// @include https://chan.sankakucomplex.com/*
// @include http://atfbooru.ninja/*
// @include http://danbooru.donmai.us/*

// you can add any boorus of your choice by following the pattern

// @grant none
Expand Down Expand Up @@ -48,7 +49,10 @@ if (~document.location.href.indexOf('s=mass_upload')) {
xhr.send();

} else {
var navbar = document.getElementById('navbar') || document.getElementsByClassName('flat-list2')[0] || document.querySelector('#main-menu > ul');
var navbar = document.getElementById('navbar') ||
document.getElementsByClassName('flat-list2')[0] ||
document.querySelector('#main-menu > ul') ||
document.querySelector('nav > menu');
var li = document.createElement("li");
var a = document.createElement("a");
var token = document.querySelector('meta[name="csrf-token"]');
Expand Down

0 comments on commit 4ae0ee8

Please sign in to comment.