您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove Slideshows from Kinja Sites and show them inline instead
当前为
// ==UserScript== // @name Kinja Unslideshow // @namespace https://github.com/AndreasMattsson // @version 0.1 // @description Remove Slideshows from Kinja Sites and show them inline instead // @author Andreas Mattsson // @include /^https?\:\/\/(.*\/?)jalopnik\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)avclub\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)deadspin\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)gizmodo\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)jezebel\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)kotaku\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)kotaku\.com\.au\/.*$/ // @include /^https?\:\/\/(.*\/?)kotaku\.co\.uk\/.*$/ // @include /^https?\:\/\/(.*\/?)lifehacker\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)theonion\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)thetakeout\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)theinventory\.com\/.*$/ // @include /^https?\:\/\/(.*\/?)theroot\.com\/.*$/ // @grant none // ==/UserScript== (function() { 'use strict'; let head = document.getElementsByTagName('head')[0]; if (head) { let style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = ` .js_slide { display: block !important; } [id^="js_slideshow-"], #js_slideshow-navigation { display: none !important; } `; head.appendChild(style); } Array.from(document.querySelectorAll(".js_slide img")).filter((x) => x.getAttribute("data-srcset")).forEach((x) => x.setAttribute("srcset", x.getAttribute("data-srcset"))); })();