You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ==UserScript==// @name Redirect ksira.com to Simpread Pro// @namespace http://tampermonkey.net/// @version 0.1// @description Redirects traffic from ksria.com/simpread/xxx to simpread.pro/xxx// @author KnownRabbit// @match *://ksria.com/simpread/*// @grant none// ==/UserScript==(function(){'use strict';if(window.location.href.includes('ksria.com/simpread')){// Construct the new URL by replacing "ksria" with "simpread.pro"constnewURL=window.location.href.replace("ksria.com/simpread",'simpread.pro');console.log(`Redirecting to ${newURL}`);// Redirect to the new URLwindow.location.href=newURL;}})();
描述这个错误
https://ksria.com/simpread/ 及其所有子页面中,包含了一段错误的代码导致页面频繁刷新。
由于现代浏览器默认访问 HTTPS 而非 HTTP,所以下面这段代码没有正确替换域名,导致重复跳转到当前页面。
复现步骤
其他相关说明
No response
操作系统
Windows
浏览器
Microsoft Edge
发生问题的网址
https://ksria.com/simpread/
The text was updated successfully, but these errors were encountered: