Greasy Fork

来自缓存

Replace webp image on Fandom with png

Really quick script that adds "&format=original" to each image opened in a new tab on fandom so that they do not save as a .webp.

// ==UserScript==
// @name        Replace webp image on Fandom with png
// @description Really quick script that adds "&format=original" to each image opened in a new tab on fandom so that they do not save as a .webp.
// @version     1.0
// @match       *://*static.wikia.nocookie.net/*
// @run-at      document-start
// @grant       none
// @license     MIT
// @namespace https://greasyfork.org/users/922450
// ==/UserScript==

var url = window.location.href;

if (url.indexOf("&format=original") == -1){
    url +="&format=original";
    window.location.replace(url)
}