User:Killr833/fbshare.js

$(function {    var x;    if (!(x = document.getElementById('ca-history') )) return;    var y = mw.util.addPortletLink('p-cactions', "http://www.facebook.com/sharer.php?u="+mw.config.get('wgServer')+mw.config.get('wgScript')+"?title="+encodeURIComponent(mw.config.get('wgPageName')), "share", 'ca-share-fb', 'Share this page on Facebook', 'f', x.nextSibling); });