Skip to content

Instantly share code, notes, and snippets.

@yurenju
Created October 12, 2012 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurenju/3877117 to your computer and use it in GitHub Desktop.
Save yurenju/3877117 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head><title></title></head>
<body>
<button>click me</button>
<script type="text/javascript">
document.querySelector('button').addEventListener('click', function() {
new MozActivity({
name: 'save-bookmark',
data: {
type: 'url',
url: 'http://twitter.com/',
name: 'Twitter'
}});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment