如何使用greasemonkey更改没有链接的网页?它甚至可能吗?对于例如,我在http://www.google.com/,如何在没有链接的情况下到达http://www.youtube.com?
答案 0 :(得分:4)
// ==UserScript==
// @name _Redirect foo.
// @include http://www.google.com/
// ==/UserScript==
//--- Do it this way to keep Google in history (back button).
window.location.href = 'http://www.youtube.com/';
//--- Or, do it this way to keep Google out of history.
window.location.replace ('http://www.youtube.com/');
答案 1 :(得分:0)
使用重定向:
将此HTML重定向代码放在HTML代码之间,并将其标记。
< meta HTTP-EQUIV =“REFRESH”content =“0; url = http://www.yourdomain.com/index.html”>
来源:http://www.web-source.net/html_redirect.htm
内容是秒数。
以下是重新填充网页的示例:http://www.adelazzam.com/as.html