将以下代码添加页脚的 </body> 前面即可:
- <script type=“text/javascript”>
- function addLink() {
- var selection = window.getSelection();
- pagelink = “. 原文出自[国外主机测评] 转载请保留原文链接: “ + document.location.href;
- copytext = selection + pagelink;
- newdiv = document.createElement(‘div’);
- newdiv.style.position = ‘absolute’;
- newdiv.style.left = ‘-99999px’;
- document.body.appendChild(newdiv);
- newdiv.innerHTML = copytext;
- selection.selectAllChildren(newdiv);
- window.setTimeout(function () {
- document.body.removeChild(newdiv);
- }, 100);
- }
- document.oncopy = addLink;
- </script>
对于DUX主题,可以添加在主题设置中:
以上代码适用于 WordPress 或 zblog 等站点,如果是 zblog 站点,记得在后台点击[清空缓存并重新编译模板]才行哦。

国外主机测评





















![搬瓦工:新上线的加拿大温哥华CN2 GIA[CABC_6]机房怎么样?性能、网络、流媒体及游戏区域限制等数据分享-国外主机测评](https://www.veidc.com/wp-content/uploads/2023/02/20230226182312.png)


