📅  最后修改于: 2022-03-11 15:02:52.477000             🧑  作者: Mango
var anchors = document.getElementsByTagName("a");
for (var i = 0; i < anchors.length; i++) {
anchors[i].href = "http://www.mysite.com/?redirect=" + anchors[i].href
}