您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
CSDN博客文章转载插件 可以实现CSDN上的文章一键转载
当前为
// ==UserScript== // @name CSDN博客文章转载插件 // @version 0.3 // @description CSDN博客文章转载插件 可以实现CSDN上的文章一键转载 // @author By Jackie http://csdn.admans.cn/ // @match *://blog.csdn.net/*/article/details/* // @match *://mp.csdn.net/postedit* // @grant GM_addStyle // @namespace https://gf.qytechs.cn/users/164689 // ==/UserScript== GM_addStyle("#ReproduceBtn{position: absolute;float: right;right: 80px;width: auto;background: #0f962191;z-index: 99;color: white;text-align: center;margin: 5px;padding: 5px;border-radius: 5px;cursor: pointer;}"); document.domain="csdn.net"; (function(){ 'use strict'; document.domain="csdn.net"; if(location.href.indexOf("article/details") > -1) { var divBtn = document.createElement("div"); divBtn.setAttribute("id", "ReproduceBtn"); divBtn.innerHTML ='转载'; var article=document.getElementsByClassName('article_content')[0]; article.insertBefore(divBtn,article.childNodes[0]); var posteditUrl="https://mp.csdn.net/postedit"; divBtn.onclick=function() { window.open(posteditUrl); } } else { document.onreadystatechange = function(e){ if(document.readyState == 'complete') { setTimeout(function(){ var blogContent= window.opener.document.getElementById('content_views').innerHTML +"<br>---------------------" +"<br>作者:"+window.opener.document.getElementsByClassName('follow-nickName')[0].innerHTML +"<br>来源:CSDN" +"<br>原文:"+window.opener.location.href +"<br>版权声明:本文为博主原创文章,转载请附上博文链接!" document.getElementById('txtTitle').value=window.opener.document.getElementsByClassName('title-article')[0].innerHTML; document.getElementsByTagName("iframe")[0].contentDocument.body.innerHTML=blogContent; },1000); } } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址