검사기 탭을 가리킬 때이 스타일을 얻을 수 있음을 보여줍니다 //browser/skin/browser.css 라인 2504
사본이 트릭을 수행 스크래치 패드에이 붙여 넣기를
Cu.import('resource://gre/modules/Services.jsm');
var sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService);
var css = '';
css += '.tab-background:not([selected=true]) {';
css += 'background-image: url(chrome://browser/skin/tabbrowser/tab-background-start.png),';
css += 'url(chrome://browser/skin/tabbrowser/tab-background-middle.png),';
css += 'url(chrome://browser/skin/tabbrowser/tab-background-end.png);';
css += 'background-position: left bottom, 30px bottom, right bottom;';
css += 'background-repeat: no-repeat;';
css += 'background-size: 30px 100%, calc(100% - (2 * 30px)) 100%, 30px 100%;';
css += '}';
var cssEncoded = encodeURIComponent(css);
var cssEncodedWithDataURL = 'data:text/css,' + cssEncoded;
var cssUri = Services.io.newURI(cssEncodedWithDataURL, null, null);
sss.loadAndRegisterSheet(cssUri, sss.USER_SHEET);
//sss.unregisterSheet(cssUri, sss.USER_SHEET); //do this when you want to remove it