Stylish Quick Edit

4 replies [Last post]
rawny's picture
Joined: 08/08/2008
Posts: 249
User offline. Last seen 21 weeks 17 hours ago.

Buttons

This button is designed to save some clicks, when you want to create new Stylish styles. It opens the Stylish editor for writing...

  • Left click: ...a new blank style
  • Middle click: ...a new style for the current domain root (e.g. "custombuttons2.com", "userstyles.org")
  • Right click: ...a new style for the current URL

Stylish Quick Edit
Compatibility: 

Minefield Firefox 3.0.* Firefox 2.0.* Firefox 1.5.* Flock Thunderbird 3.* Thunderbird 2.*

Author(s): 
rawny
Description & info:

Requires Extension(s): 
Stylish

Behavior

Action Behavior

Left

Opens the Stylish editor for writing a new blank style.

Middle

Opens the Stylish editor for writing a new style for the current domain root (e.g. "custombuttons2.com", "userstyles.org").

Right

Opens the Stylish editor for writing a new style for the current URL.

Right+Shift

Custom Buttons² Context Menu.

Revisions

修订版本 操作
rawny 在 05/09/2009 - 05:34

Initial release.

当前修订版本

Code

javascript: Copy To Clipboard
/*
 
  This button is designed to save some clicks, at the request of Barbiegirl.
  L: New blank style
  M: New style for the current domain root (e.g. "custombuttons2.com", "userstyles.org")
  R: New style for the current URL
 
  Rawny ^^
 
*/

Init

javascript: Copy To Clipboard
function GetRoot()
{
  var domains = [];
  stylishOverlay.getDomainList(content.document.domain, domains);
  var domain = domains[domains.length-1];
  stylishOverlay.STRINGS.getFormattedString("writefordomain", [domain]);
  return domain;
}
 
this.leftclick = function(evt)
{
  stylishOverlay.addCode('');
};
 
this.midclick = function(evt)
{
  if (content.document.domain) {
    stylishOverlay.addDomain(GetRoot());
  }
};
 
this.rightclick = function(evt)
{
  stylishOverlay.addSite();
};
 
this.Reload = function()
{
  this.tooltipText = "L: New blank style"+"\n"+"M: New style for "+GetRoot()+"\n"+"R: New style for this URL";
}
 
 
this.setAttribute('onclick', 'custombuttons.gQuot.mHandler(event, this)'); // Calls the Global MouseClick handler gQuot
this.setAttribute('ondblclick', 'custombuttons.gQuot.mHandler(event, this)');
this.setAttribute("onmouseover", "this.Reload();");
 
 
// ***** ATTRIBUTES ***** //
 
this.setAttribute('author','rawny');
this.setAttribute('version','1 (2009-05-07)');
this.setAttribute('dependency','FF3.0*, CB2 3.0.*');
this.setAttribute('status','Complete');
this.setAttribute('public',true);this.setAttribute('homepage', 'http://custombuttons2.com/forum/buttons/buttons-database/stylish-quick-edit.html');

Help

This button opens the Stylish editor for writing...
Left click: ...a new blank style.
Middle click: ...a new style for the current domain root (e.g. "custombuttons2.com", "userstyles.org").
Right click: ...a new style for the current URL.

Details

Button Categories: 
Depends on (and Compliments) Extension(s): 

Custom Buttons² v.3.0.1rc1

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10 (.NET CLR 3.5.30729) Pict Firefox Plugin v. 1.0

Posted with the theme AD Lemon Twist

Top
Joined: 01/26/2009
Posts: 12
User offline. Last seen 3 days 6 hours ago.

Thankyou for this extremely helpful button !
The stylish extension button that opens the stylish editor is only for blank styles, and you can only access it when your sidebar is open. This "Stylish Quick Edit" button is SO FABULOUS ! It reduces the number of clicks, and it opens the stylish editor instantly. I use this button many times a day, and must have it.
Thankyou SOOOOOO MUCH rawny for creating this great button !

Custom Buttons² was not found: find out why...

Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)

Posted with the theme Pluralism

Top
Joined: 12/23/2009
Posts: 3
User offline. Last seen 11 weeks 1 day ago.

Great!
By mistake I installed 2 of it, and that annoys me! How do I remove it?

EDIT: I found out myself. For other noobs who may wonder: "Shift+Right-Click" on it and the context menu will appear.

Custom Buttons² was not found: find out why...

Mozilla/5.0 (Windows; U; Windows NT 5.1; sv-SE; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)

Posted with the theme Pluralism

Top
Joined: 06/24/2010
Posts: 1
User offline. Last seen 9 weeks 6 days ago.

Your buttons is very useful and they are so great. test

Custom Buttons² was not found: find out why...

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7 GTB7.0

Posted with the theme Pluralism

Top
Joined: 08/11/2010
Posts: 3
User offline. Last seen 2 weeks 4 days ago.

Is there a way I can single out a specific style and turn it on or off?

Custom Buttons² v.3.1.0

Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 (.NET CLR 3.5.30729)

Posted with the theme Pluralism

Top