You currently have Javascript disabled, to use some of the features (such as the login) you must enable it for this site
disabled bookmark button | Custom Buttons²

disabled bookmark button

This is for any buttons you would like to post, but are incomplete or still being worked on. The buttons in this forum can be dangerous. Please install with discretion.
Forum rules
--
:warn: Caution when installing buttons from this forum! :warn:

Buttons are untested and many are incomplete. Installing buttons from this subforum could be dangerous or problematic.

If you choose to install a button from this subforum and your browser gets hosed, do not complain. You took this risk at your discretion.

Authors: Once a button has been completed please pm an admin/moderator to have it moved to the Button Database.

Postby MetalHellsAngel on Fri Jun 20, 2008 6:17 pm

The following code is in a bookmark button that becomes disabled.

this.quot = function(evt) {
if(evt.shiftKey) {
this.showPopup(this);
return;
}

var link="https://www.google.com/accounts/ServiceLogin?service=cl&passive=true&nui=1&continue=http://www.google.com/calendar/render?hl=en&tab=wc&followup=http://www.google.com/calendar/render?hl=en&tab=wc";
var label="Google Calendar";
var head =(document.getElementById('sidebar-title').getAttribute('value') == label);

switch(evt.button) {

case 0:
gBrowser.selectedTab = gBrowser.addTab(link);
break;

case 1:
gBrowser.addTab(link);
break;

case 2:

if (!head) {
openWebPanel();
var sbLoc = document.getElementById('sidebar').contentDocument.location;
sbLoc.href = link;
document.getElementById('sidebar-box').hidden = false;
document.getElementById('sidebar-title').value = label;
document.getElementById('sidebar-box').collapsed = false;
document.getElementById('sidebar-splitter').hidden = false;
return;
}

if (head) {
toggleSidebar();
}

break;

}
}
this.showPopup = function(node) {
var popup = document.getElementById('custombuttons-contextpopup');
var x = node.boxObject.x;
var y = node.boxObject.y + node.boxObject.height;
document.popupNode = node;
popup.showPopup(node, x, y, 'popup', null, null);
}

this.setAttribute('onclick', 'this.quot(event);');
this.setAttribute('context', '');
this.tooltipText = 'Google Calendar';

}
User avatar
MetalHellsAngel
Registered User
Registered User
 
Posts: 7
Joined: Wed Feb 20, 2008 9:50 pm
Location: Seattle, Washington

Return to The Graveyard

Who is online

Users browsing this forum: • Registered: 0 and 0 guests