Stylish Quick Edit

2 replies [Last post]
รูปภาพของ rawny
Joined: 08/08/2008
Posts: 250
User offline. Last seen 4 สัปดาห์ 5 วัน 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.

รุ่น

Редакция Операции
05/09/2009 - 05:34 от rawny

Initial release.

текуща редакция

รหัส

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');

คู่มือการใช้งาน

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.

รายละเอียด

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: 4
User offline. Last seen 6 วัน 8 ชั่วโมง 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 3 สัปดาห์ 1 วัน 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