Pixiv - No link warnings

No link warnings

目前为 2019-09-01 提交的版本。查看 最新版本

// ==UserScript==
// @name          Pixiv - No link warnings
// @namespace     Pixiv
// @version       1.0
// @description   No link warnings
// @author        Owyn
// @match         https://www.pixiv.net/member_illust.php?mode=medium&illust_id=*
// @run-at        document-end
// @grant		  none
// ==/UserScript==

var links_removed = 0;
function removeWarning()
{
	var links = document.querySelectorAll('a[href*="/jump.php?"]');
	for(var i = 0; i < links.length; i++)
	{
		links[i].href = decodeURIComponent(links[i].href.replace('https://www.pixiv.net/jump.php?', ''));
		links[i].target = "_self";
	}
	if(links_removed !== 0 && links.length === 0 )
	{
		console.log("removed warning from " + links_removed + " links");
	}
	else
	{
		links_removed = links.length;
		setTimeout(function() { removeWarning(); }, 1000);
	}
}

removeWarning();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址