Skip to content

Instantly share code, notes, and snippets.

@xgqfrms
Created September 19, 2021 16:30
Show Gist options
  • Save xgqfrms/69146978fd191862c427725ee4522b19 to your computer and use it in GitHub Desktop.
Save xgqfrms/69146978fd191862c427725ee4522b19 to your computer and use it in GitHub Desktop.
Twitter 分享 API All In One
@xgqfrms
Copy link
Author

xgqfrms commented Sep 19, 2021

github secret!

.github repo

profile/README.md

You found a secret! web-fullstack/.github is a ✨special ✨ repository that you can use to add a README.md to your organization's GitHub profile. Make sure it’s public and initialize it with a README in the profile directory to get started.

image

@xgqfrms
Copy link
Author

xgqfrms commented May 22, 2022

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