Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Derpibooru Downvote Links
- // @namespace N/A
- // @author Background Pony
- // @description Adds downvote links to the thumbnails on derpibooru.
- // @version 1
- // @include https://derpiboo.ru/*
- // @include https://derpibooru.org/*
- // @include https://trixiebooru.org/*
- // @include https://derpy-hoov.es/*
- // @include http://derpiboo.ru/*
- // @include http://derpibooru.org/*
- // @include http://trixiebooru.org/*
- // @include http://derpy-hoov.es/*
- // @grant none
- // ==/UserScript==
- // This software is public domain.
- // Do whatever you like with it, as long as you have fun.
- // Life is too short for worry, anger or bitterness.
- function AddDownvoteLinks ()
- {
- var link_start = ' • <a class="vote_down_link" data-image-id="';
- var link_end = '" href="#" rel="nofollow"><span class="downvote-span-downvoted">neigh</span><span class="downvote-span">neigh</span></a>';
- function addLink( index )
- {
- var imgid = $(this).attr("data-image-id");
- $(this).children("span").append(link_start + imgid + link_end);
- }
- function addAllLinks()
- {
- $("div.imageinfo").each( addLink );
- }
- addAllLinks();
- window.booru.interactions.setupLinks1();
- }
- (function () {
- 'use strict';
- var script = document.createElement('script');
- script.textContent = '(' + AddDownvoteLinks.toString() + ')();';
- document.body.appendChild(script);
- }());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement