作者:xgqfrms
链接:https://www.cnblogs.com/xgqfrms/p/13694067.html
来源:https://www.cnblogs.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
©xgqfrms 2012-2021
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究
Created
September 19, 2021 16:30
-
-
Save xgqfrms/69146978fd191862c427725ee4522b19 to your computer and use it in GitHub Desktop.
Twitter 分享 API All In One
cnblogs shareToTwitter
// <a href="javascript:void(0);" id="green_channel_digg" onclick="shareToTwitter()" title="分享到 Twitter">分享到 Twitter</a>
const shareBox = document.querySelector("#green_channel");
if(shareBox) {
shareBox.insertAdjacentHTML('afterbegin', `
<a href="javascript:void(0);" id="green_channel_digg" onclick="shareToTwitter()" title="分享到 Twitter">分享到 Twitter</a>`)
}
#green_channel {
width: 460px !important;
}
#green_channel #green_channel_digg {
background-color: #1dda03 !important;
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/microsoft/.github/blob/main/profile/README.md
https://github.com/xgqfrms/.github/blob/main/profile/README.md