Skip to content

Instantly share code, notes, and snippets.

@mreidsma
Created May 1, 2012 17:08
Show Gist options
  • Select an option

  • Save mreidsma/2569693 to your computer and use it in GitHub Desktop.

Select an option

Save mreidsma/2569693 to your computer and use it in GitHub Desktop.
Replace meebo chat in III's Encore with Libraryh3lp chat
// Replace the meebo widget with a nice graphic or something.
var newContent = '<img src="http://placekitten.com/180/77" alt="Kitteh" />';
document.getElementById('meeboWidget').innerHTML = newContent;
// Now change the Launch link to open a new window with our libraryh3lp chat instead of meebo.
// Substitute the URL in the link below with yours (URL encoded)
// Enjoy.
document.getElementById('meeboPopout').innerHTML = '<a href="javascript:(function%20()%20{window.open(%22http%3A%2F%2Flibraryh3lp.com%2Fchat%2Fmy-queue-name%40chat.libraryh3lp.com%3Fskin%3D11977%26sounds%3Dtrue%26title%3DAsk%2BUs%22%2C%22mywindow%22%2C%22location%3D0%2Cstatus%3D0%2Cscrollbars%3D0%2Cwidth%3D350%2Cheight%3D300%22)%3B})()" title="We just map this to a new function">Launch Chat Window</a>';
Copy link
Copy Markdown

ghost commented May 3, 2012

Very cool. Here's an easy way to show (page load-time) availability: https://gist.github.com/2586294

@mreidsma
Copy link
Copy Markdown
Author

mreidsma commented May 3, 2012 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment