Rescribir enlaces webp creados por KN3 en Taringa!

Previene que la imagenes de fuentes externas sean mostradas como webp

// ==UserScript==
// @name           Rescribir enlaces webp creados por KN3 en Taringa!
// @namespace      kapodamy
// @author         kapodamy
// @description    Previene que la imagenes de fuentes externas sean mostradas como webp
// @include        http://www.taringa.net/*
// @include        https://www.taringa.net/*
// @version        1.2
// @run-at         document-end
// @granT          none
// ==/UserScript==

(function() {
	var rx = /https?:\/\/ugc.kn3.net\/i\/(?:origin|760x)\//;
	main();
	window.$(document).bind('ajaxComplete', main);
	
	function main() {
		var imgs = document.querySelectorAll("img");
		var i = 0;
		
		for (i=0 ; i<imgs.length ; i++) {
			if (rx.test(imgs[i].src)) { imgs[i].src = imgs[i].src.replace(rx,''); }
		}
	}
})();
长期地址
遇到问题?请前往 GitHub 提 Issues,或加Q群1031348184

赞助商

Fishcpy

广告

Rainyun

一年攒够 12 元

云驰互联

云驰互联