Allows you to view full-sized images of thumbnails on a new tab with one click
当前为
// ==UserScript==
// @name Gotceleb Direct Full-Size Images
// @name:tr Gotceleb Direkt Büyük Resim Açıcı
// @namespace https://gf.qytechs.cn/en/users/68133-nevertheless
// @description Allows you to view full-sized images of thumbnails on a new tab with one click
// @description:tr Küçük resimlere tek tıklama ile büyük boy resimleri görüntülemenizi sağlar
// @author Nevertheless
// @match *://*.gotceleb.com/*
// @version 1.02
// @license MIT
// @require https://code.jquery.com/jquery-3.1.0.min.js
// @grant none
// @run-at document-end
// ==/UserScript==
function qstring(name, url) {
if (!url) {
url = window.location.href;
}
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(url);
if (!results) {
return undefined;
}
return results[1] || undefined;
}
(function() {
'use strict';
$('.gallery-icon').each(function() {
var childLink = $(this).children('a').first();
var childImage = childLink.children('img').first();
var thumbWidth = childImage.attr('width');
var thumbHeight = childImage.attr('height');
var strRemove = '-' + thumbWidth + 'x' + thumbHeight;
var imageLinkClean = childImage.attr('src').replace(strRemove,'');
childLink.attr('href', imageLinkClean);
childLink.attr('target','_blank');
});
// Support for old albums
$("a[title^='Pics of:']").each(function(){
var oldChildImage = $(this).children('img').first();
var oldImageLink = oldChildImage.attr('src');
var oldImageLinkClean = qstring('src',oldImageLink);
$(this).attr('href', oldImageLinkClean);
$(this).attr('target','_blank');
});
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址