Post by SubDevo on Jan 29, 2011 22:41:18 GMT -8
Remove All Social Network Linking by SubDevo
Tested in IE, FF, Opera, Safari and Chrome.
This code removes all traces of social network sharing/linking.
Removes the "Social Networks" link in your profile.
Removes the "Register quickly using your social network" text and icons on the register page.
Removes the "Login with your social network" section and icons on the login table and also on the new PB rectangle ad login box (if using).
Optionally remove the "Share" button in all posts and search results/recent page.
Enjoy!!!
SubDevo
Variables:
var nHide=1; // Hide Share Button in Posts? 1=Yes, 0=No
Enter "1" to hide the Share button in posts. "0" to keep it.
Location: Global Footer
<script type="text/javascript">
/* Remove All Social Network Linking by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.com or lsdp.proboards.com */
var nHide=1; // Hide Share Button in Posts? 1=Yes, 0=No
function rShare(a,b){a.style.display="none";a.parentNode.removeChild(b);}
function gID(a){return document.getElementById(a);}
var g=gID("rectangle_login_box"),b,e,x=-1;
if(g){g=g.parentNode;
if(g.nodeName=="TD"){g=g.firstChild;} g=g.childNodes;
while(g[++x]){b=g[x];
if(b.data){b.data=b.data.replace("Login using your social network or forum account:","");}
}} g=gID("componentDivx");
if(pb_action=="register"&&g){ b=g.parentNode;
if(b.nodeName!="FONT"){ g.previousSibling.style.display="none";
}else{b.childNodes[0].data="";} b.removeChild(g);
} g=new RegExp("=viewprofile(&user="+pb_username+")?$","i"); x=0;
while(gID("componentDiv"+x)){
gID("componentDiv"+x).parentNode.style.display="none";x++;
} e=(/^(display|search2)$/.test(pb_action))?1:0;
if(g.test(location.href)||e){ b=document.links;x=-1;
while(b[++x]){g=b[x];
if(nHide&&e&&/showshareui/i.test(g.onclick)){ rShare(g,g.nextSibling);}
else if(/=linkaccount/i.test(g.href)){ rShare(g,g.previousSibling);}
}}
</script>
Tested in IE, FF, Opera, Safari and Chrome.
This code removes all traces of social network sharing/linking.
Removes the "Social Networks" link in your profile.
Removes the "Register quickly using your social network" text and icons on the register page.
Removes the "Login with your social network" section and icons on the login table and also on the new PB rectangle ad login box (if using).
Optionally remove the "Share" button in all posts and search results/recent page.
Enjoy!!!
SubDevo
Variables:
var nHide=1; // Hide Share Button in Posts? 1=Yes, 0=No
Enter "1" to hide the Share button in posts. "0" to keep it.
Location: Global Footer
<script type="text/javascript">
/* Remove All Social Network Linking by SubDevo */
/* Global Footer - Please leave this header intact. Do not repost. */
/* interoceandesigns.com or lsdp.proboards.com */
var nHide=1; // Hide Share Button in Posts? 1=Yes, 0=No
function rShare(a,b){a.style.display="none";a.parentNode.removeChild(b);}
function gID(a){return document.getElementById(a);}
var g=gID("rectangle_login_box"),b,e,x=-1;
if(g){g=g.parentNode;
if(g.nodeName=="TD"){g=g.firstChild;} g=g.childNodes;
while(g[++x]){b=g[x];
if(b.data){b.data=b.data.replace("Login using your social network or forum account:","");}
}} g=gID("componentDivx");
if(pb_action=="register"&&g){ b=g.parentNode;
if(b.nodeName!="FONT"){ g.previousSibling.style.display="none";
}else{b.childNodes[0].data="";} b.removeChild(g);
} g=new RegExp("=viewprofile(&user="+pb_username+")?$","i"); x=0;
while(gID("componentDiv"+x)){
gID("componentDiv"+x).parentNode.style.display="none";x++;
} e=(/^(display|search2)$/.test(pb_action))?1:0;
if(g.test(location.href)||e){ b=document.links;x=-1;
while(b[++x]){g=b[x];
if(nHide&&e&&/showshareui/i.test(g.onclick)){ rShare(g,g.nextSibling);}
else if(/=linkaccount/i.test(g.href)){ rShare(g,g.previousSibling);}
}}
</script>