您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
I am sick of their stupid magnifying glass so just wrote a horribly ugly fix to put the big images in by default.
当前为
- // ==UserScript==
- // @name Fix Games Workshop Image viewer
- // @namespace http://your.homepage/
- // @version 0.1
- // @description I am sick of their stupid magnifying glass so just wrote a horribly ugly fix to put the big images in by default.
- // @author You
- // @match http://www.games-workshop.com/*
- // @grant snone
- // ==/UserScript==
- $('#hero-slot').css(
- {
- width: $(document).width(),
- textAlign: 'center'
- }
- );
- $('.img-holder').css(
- {
- width: 920,
- textAlign: 'center'
- }
- );
- $('.als-wrapper').on('click', '.als-item', function(ev){
- var imgSrc = $(this).find('img').attr('src'),
- imgSizePos = imgSrc.indexOf('70x70'),
- imgNewSrc = imgSrc.replace('70x70', '920x950');
- $('.img-holder img').attr('src', imgNewSrc);
- ev.stopPropagation();
- return false;
- });