/**
 * StopFlash
 *
 * https://github.com/JWhile/StopFlash
 *
 * stopflash.js
 */

// class StopFlashUI extends Builder
function StopFlashUI(elements)
{
    this.super('div');

    this.tabs = new StopFlashTabs();

    this.append(new Builder('div')
            .className('head')
            .text('StopFlash'))
        .append(new Builder('div')
            .className('menu')
            .append(new Builder('a')
                .text('Home'))
            .append(new Builder('a')
                .text('Whitelist'))
            .append(new Builder('a')
                .text('Options')))
        .append(this.tabs)
        .append(new Builder('div')
            .className('foot')
            .html('<a href="https://github.com/JWhile/StopFlash">https://github.com/JWhile/StopFlash</a>'))
}
fus.extend(StopFlashUI, Builder);

// class StopFlashTabs extends Builder
function StopFlashTabs()
{
    this.super('div');
}
fus.extend(StopFlashTabs, Builder);

// main
var main = function(elements)
{
    new StopFlashUI(elements)
        .insert(document.body);
};

chrome.tabs.query({'highlighted': true, 'currentWindow': true}, function(tabs)
{
    chrome.tabs.sendMessage(tabs[0].id, {'getElements': 'stopflash'}, main);
});

@@ -183,410 +183,1116 @@
 his.
-tabs = new StopFlashTabs();%0A%0A    this.append(new Builder('div')%0A            .className('head')%0A            .text('StopFlash'))%0A        .append(new Builder('div')%0A            .className('menu')%0A            .append(new Builder('a')%0A                .text('Home'))%0A            .append(new Builder('a')%0A                .text('Whitelist'))%0A            .append(new Builder('a')%0A                .text('Options'
+content = new Builder('div')%0A        .append(new Builder('div')%0A            .className('tab')%0A            .text('Home tab'))%0A        .append(new Builder('div')%0A            .className('tab')%0A            .text('Whitelist tab'))%0A        .append(new Builder('div')%0A            .className('tab')%0A            .text('Options tab'));%0A%0A    this.append(new Builder('div')%0A            .className('head')%0A            .text('StopFlash'))%0A        .append(new Builder('div')%0A            .className('menu')%0A            .append(new Builder('a')%0A                .text('Home')%0A                .event('click', function()%0A                %7B%0A                    self.content.css('left', '-300px');%0A                %7D))%0A            .append(new Builder('a')%0A                .text('Whitelist')%0A                .event('click', function()%0A                %7B%0A                    self.content.css('left', '-600px');%0A                %7D))%0A            .append(new Builder('a')%0A                .text('Options')%0A                .event('click', function()%0A                %7B%0A                    self.content.css('left', '-900px');%0A                %7D
 )))%0A
@@ -1312,20 +1312,23 @@
 nd(this.
-tabs
+content
 )%0A      
@@ -1536,136 +1536,8 @@
 );%0A%0A
-// class StopFlashTabs extends Builder%0Afunction StopFlashTabs()%0A%7B%0A    this.super('div');%0A%7D%0Afus.extend(StopFlashTabs, Builder);%0A%0A
 // m

Remove StopFlashTabs class & build tabs system