Skip to content

Instantly share code, notes, and snippets.

@davidlwatsonjr
Created August 5, 2015 22:28
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 davidlwatsonjr/84a49b11c183bee7983a to your computer and use it in GitHub Desktop.
Save davidlwatsonjr/84a49b11c183bee7983a to your computer and use it in GitHub Desktop.
javascript: (function() {
var plusOneWrapper = document.createElement('div');
plusOneWrapper.style.left = '67px';
plusOneWrapper.style.top = '10px';
plusOneWrapper.style.position = 'fixed';
plusOneWrapper.style.zIndex = 2147483647;
document.body.appendChild(plusOneWrapper);
var plusOne = document.createElement('div');
plusOne.setAttribute('class', 'g-plusone');
plusOne.setAttribute('data-size', 'tall');
plusOneWrapper.appendChild(plusOne);
var platformJs = document.createElement('script');
platformJs.setAttribute('src', 'https://apis.google.com/js/platform.js');
document.body.appendChild(platformJs);
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment