Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for 'Like Plugin URL Broken/Changed'

  • Loading branch information...
commit bc9d2821651f08bf4dfe673fc047dbaa46493a3a 1 parent 93c9256
@mackers mackers authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 chrome/content/toolbar.js
View
6 chrome/content/toolbar.js
@@ -374,7 +374,7 @@ var facebook = {
var curUrl = lif.contentWindow.location;
var loadFlags = (curUrl == url) ? Ci.nsIWebNavigation.LOAD_FLAGS_BYPASS_CACHE : Ci.nsIWebNavigation.LOAD_FLAGS_NONE;
lif.webNavigation.loadURI(
- 'https://www.facebook.com/plugins/like.php?action=like&colorscheme=white&href='+url+'&layout=button_count&src=fftb',
+ 'https://www.facebook.com/plugins/like.php?action=like&colorscheme=white&href='+url+'&layout=button_count&src=fftb&skin=light',
loadFlags,
null, null, null);
}
@@ -538,10 +538,12 @@ var facebook = {
if (event.originalTarget.location.hostname == "www.facebook.com" &&
event.originalTarget.location.href.indexOf("plugins/like.php") > 0)
{
+ fbLib.debug("like iframe loaded with location = " + event.originalTarget.location.toString());
var x = document.getElementById("facebook-like-iframe");
var y = x.contentDocument;
- var iframewidth = y.getElementsByClassName('connect_widget_interactive_area')[0].offsetWidth;
+ //var iframewidth = y.getElementsByClassName('connect_widget_interactive_area')[0].offsetWidth;
+ var iframewidth = y.getElementsByTagName('table')[0].offsetWidth;
if (iframewidth == 0)
return;
Please sign in to comment.
Something went wrong with that request. Please try again.