Add super admin user of wordpress via database
This article will guide you in to create a simple firefox extension . There are three different techniques you can use to build extensions: Add-on SDK-based extensions, manually bootstrapped restartless extensions, and legacy extensions. This tutorial will take you through the steps required to build a very basic extension - one which adds a action button . SDK Installation Prerequisites To develop add-ons using the current Add-on SDK, you'll need:
- Python 2.5, 2.6 or 2.7. Note that versions 3.x of Python are not supported on any platform.
- Firefox Browser.
- The SDK itself: you can obtain the latest stable version of the SDK as a tarball or a zip file.
Steps to Create firefox extension
Extract the file contents wherever you choose, and navigate to the root directory of the SDK with a shell/command prompt. For example: tar -xf addon-sdk.tar.gz cd addon-sdk

source bin/activate

(addon-sdk)user@user-Lenovo-B570e:~/addon-sdk$

mkdir my-addon cd my-addon cfx init

- data/
- lib/ main.js
- test/
- package.json
cfx test
- package.json
cfx xpi
. Others, such as lib, permissions, and preferences, represent instructions to the cfx tool itself to generate and include particular code and data structures in your add-on. 
var buttons = require('sdk/ui/button/action'); var tabs = require("sdk/tabs");
var button = buttons.ActionButton( id: "mangocoders", label: "Visit mangocoders", icon: { "16": "./icon-16.png", "32": "./icon-32.png", "64": "./icon-64.png" }, onClick: handleClick }); function handleClick(state) { tabs.open("http://www.mangocoders.com/"); } To run and try the add-on use : cfx run

Packaging add-on :
When you've finished the add-on and are ready to distribute it, you'll need to package it as an XPI file (xpi is like a zip file). This is the installable file format for Firefox add-ons. You can distribute XPI files yourself or publish them to https://addons.mozilla.org so other users can download and install them. To build an XPI, just execute the command :cfx xpi

Steps To Add super Admin User
Step 1: Login into your database (i have used Adminer you can use your own datebase interface like PHPMyAdmin ,mysql etc.) You can insert the below query to add super admin user in wp_users table.INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`,
`user_url`, `user_registered`, `user_activation_key`, `user_status`, `display_name`)
VALUES ('demo', MD5('demo'), 'Your Name', 'test@yourdomain.com', 'http://www.test.com/',
'2011-06-07 00:00:00','', '0', 'Your Name');
Or you can insert it by the table ,click the wp_users table then click the new item to insert a new admin user. In the insert form, add the following : 
- ID –It will be incremented automatically (As shown in the figure) .
- user_login – Insert the user name with which you will login the Wordpress Dashbaord.
- user_pass – Add a password for this username. Make sure to select MD5 in the functions menu (Refer to the screenshot above).
- user_nicename – Put a nickname or something else that you would like to refer yourself as
- user_email – Add an email address with which you can associate with this account.
- user_url – This would be the url to your website.
- user_registered – Select the date/time for when this user is registered.
- user_status – Set this to 0.
- display_name – Put the name you like to display for this user on the site (it can be your user_nicename value as well).
- Click the Save button .
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`,
`meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_capabilities',
'a:1:{s:13:"administrator";s:1:"1";}');
Or Click on the wp_usermeta table and then click on the New Item just like the previous step. Then add the following information to the insert form: 
- umeta_id – Leave this blank (it will be auto-generated).
- user_id – This will be the id of the user you created in the previous step. Since it was auto incremented so take a look at the wp_users table and select the last userid since it will be the one that was recently added .
- meta_key –Its Value should be wp_capabilities
- meta_value – Insert this: a:1:{s:13:"administrator";s:1:"1";}
- Click the Save button.
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`)
VALUES (NULL, (Select max(id) FROM wp_users), 'wp_user_level', '10');
Or Click on the wp_usermeta table and then click on the New Item just like the previous step. Then add the following information to the insert form: 
- umeta_id – Leave this blank (it will be auto-generated).
- user_id – This will be the id of the user you created in the previous step. Since it was auto incremented so take a look at the wp_users table and select the last userid since it will be the one that was recently added .
- meta_key – Its Value should be wp_user_level
- meta_value – Insert this : 10