Benutzer:DeepSpace/Twitter.js: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „// ==UserScript== // @name Twitter ImgURL Modifier // @namespace https://www.pokewiki.de/Benutzer_Diskussion:DeepSpace // @version 1.2 // @description Modifies Twitter Img URLs // @author ChatGPT, DeepSpace // @match https://pbs.twimg.com/* // @grant none // ==/UserScript== (function() { 'use strict'; const url = window.location.href; if (url.includes("?format=jpg")) { const newURL = url.replace(…“) |
(kein Unterschied)
|
Aktuelle Version vom 15. April 2024, 13:23 Uhr
// ==UserScript==
// @name Twitter ImgURL Modifier
// @namespace https://www.pokewiki.de/Benutzer_Diskussion:DeepSpace
// @version 1.2
// @description Modifies Twitter Img URLs
// @author ChatGPT, DeepSpace
// @match https://pbs.twimg.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const url = window.location.href;
if (url.includes("?format=jpg")) {
const newURL = url.replace(/\?format=jpg(?:&.*)?/, "?format=png&name=4096x4096");
window.location.href = newURL;
}
})();