gelbooru click image to view in same tab

click image to view in same tab on most popular boorus

As of 2021-06-18. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         gelbooru click image to view in same tab
// @namespace    wololo
// @version      0.1
// @description  click image to view in same tab on most popular boorus
// @author       sanitysama
// @include      *://gelbooru.com/index.php?page=post*
// @include      *://danbooru.donmai.us/posts/*
// @include      *://e621.net/posts/*
// @include      *://chan.sankakucomplex.com/post/show/*
// @include      *://safebooru.org/index.php?page=post*
// @include      *://rule34.xxx/index.php?page=post*
// @include      *://safebooru.donmai.us/posts/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @require      https://code.jquery.com/jquery-3.6.0.min.js
// @run-at       document-end
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var a = $('#image:nth-of-type(1)').attr('src');
    $('#image:nth-of-type(1)').wrap('<a href="' + a +'"></a>');
})();