gelbooru click image to view in same tab

click image to view in same tab on most popular boorus

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==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>');
})();