English Version
SimpCity Thumbnail Click-to-Big Image
Automatic Large Image Replacement for SimpCity Forum Posts
Description
This userscript enhances the browsing experience on SimpCity forum threads by replacing thumbnail images with their full-size versions. By default, thumbnails remain compact for faster page loading and low bandwidth usage. Users can click on any image to expand it to the original size, and click again to collapse it back. An optional setting allows automatic loading of all images as full-size on page load for those who prefer to see the large images immediately.
The script supports images in both JPG and WEBP formats, removes .md
from URLs, titles, and alt text, and maintains a clean and compact layout. It also automatically handles lazy-loaded content so that newly loaded images are processed the same way. Multi-language support is included for menu options, showing either English or Chinese depending on the browser language.
Key Features
Click-to-Expand Images:
Click on any thumbnail to replace it with the full-size image in-place. Click again to collapse.
Optional Default Big Image Loading:
Users can enable or disable automatic full-size image loading via the Tampermonkey menu. Defaults to off for bandwidth efficiency.
Supports JPG and WEBP:
Both .md.jpg
and .md.webp
thumbnails are automatically processed.
Removes .md in URLs, Titles, and Alt Text:
Original file names are preserved for easier saving and better readability.
Compact Layout Maintained:
Thumbnails are shown in a tight, horizontal layout. Expanded images appear full-width but do not break the page flow.
Lazy Loading Support:
Newly loaded images (e.g., when scrolling or paging) are automatically processed.
Multi-Language Menu:
Menu options adapt to the user's browser language (English or Chinese).
Usage
- Install a userscript manager such as Tampermonkey, Violentmonkey, or Greasemonkey.
- Install this script.
- Visit any SimpCity forum thread.
- Click on thumbnail images to expand them, or toggle the default full-image loading via the menu.
- Right-click to save the image: you will always save the original full-size image.
Credits
Developed by Kemcy BEST
Inspired by the need to improve image browsing efficiency on image-heavy forum posts.
Disclaimer
Use at your own discretion. This script only modifies the visual behavior of images on SimpCity forum threads and does not collect or transmit any personal data.
中文版
SimpCity 缩略图点击放大
SimpCity 论坛帖子大图自动替换脚本
描述
本脚本用于增强 SimpCity 论坛浏览体验,将缩略图自动替换为原始大图。默认情况下,缩略图保持紧凑显示,以保证页面加载速度和低带宽消耗。用户可以点击任意图片,将其展开为原图,再次点击可恢复缩略图。对于希望页面加载时即显示大图的用户,脚本提供可选设置,可在 Tampermonkey 菜单中开启默认加载全部大图。
脚本支持 JPG 与 WEBP 格式图片,自动去掉 .md
的 URL、title 和 alt 文本,同时保持页面紧凑布局。对懒加载的图片也能自动处理,保证动态加载的新图片同样适用。菜单选项支持中英文,根据浏览器语言自动切换显示。
主要功能
点击放大图片:
点击任意缩略图即可在原位替换为大图,再次点击可恢复缩略图。
可选默认加载全部大图:
用户可通过 Tampermonkey 菜单开启或关闭页面加载时自动加载大图,默认关闭以节省带宽。
支持 JPG 和 WEBP:
自动处理 .md.jpg
和 .md.webp
缩略图。
去掉 URL、Title 和 Alt 的 .md:
保留原始文件名,方便右键保存并提高可读性。
保持紧凑布局:
缩略图横向排列,展开的大图全宽显示但不破坏页面流。
懒加载支持:
滚动或翻页时新加载的图片会自动处理。
多语言菜单:
菜单根据用户浏览器语言自动显示中文或英文。
使用方法
- 安装 Tampermonkey、Violentmonkey 或 Greasemonkey 等用户脚本管理器。
- 安装本脚本。
- 打开任何 SimpCity 论坛帖子。
- 点击缩略图即可展开大图,也可通过菜单切换默认加载大图开关。
- 右键保存图片:保存的始终是原始大图。
致谢
开发者:Kemcy BEST
灵感来源于提升图片密集型论坛浏览效率的需求。
免责声明
请自行判断使用风险。本脚本仅修改 SimpCity 论坛帖子的图片显示行为,不会收集或传输任何个人数据。