Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question aims to serve as a reference list of all current Stack Exchange sites for use in scripts.

share|improve this question
    
Possible duplicate of Stack Exchange userscript template / boilerplate. It's basically the same thing but that one has other helpful answers around the topic – ᔕᖺᘎᕊ Mar 6 at 12:21
up vote 5 down vote accepted

You don't need to support alias domains. They redirect to *.stackexchange.com domains, anyway.

This will match all current Stack Exchange sites. It uses @match for smarter domain and path wildcards. @match also works better for Chrome:

// @match       *://*.askubuntu.com/*
// @match       *://*.mathoverflow.net/*
// @match       *://*.serverfault.com/*
// @match       *://*.stackapps.com/*
// @match       *://*.stackexchange.com/*
// @match       *://*.stackoverflow.com/*
// @match       *://*.superuser.com/*

Although, for slightly better speed and to help avoid unexpected results, you should also exclude some sites (Namely: The API, the main blogs1, SEDE, and the "all sites" pages) unless you are specifically coding for them. Their structure and purpose is markedly different.

So use:

// @match       *://*.askubuntu.com/*
// @match       *://*.mathoverflow.net/*
// @match       *://*.serverfault.com/*
// @match       *://*.stackapps.com/*
// @match       *://*.stackexchange.com/*
// @match       *://*.stackoverflow.com/*
// @match       *://*.superuser.com/*
// @exclude     *://api.stackexchange.com/*
// @exclude     *://blog.stackexchange.com/*
// @exclude     *://blog.stackoverflow.com/*
// @exclude     *://chat.stackexchange.com/*
// @exclude     *://chat.stackoverflow.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://elections.stackexchange.com/*
// @exclude     *://stackexchange.com/*

As a practical start for most scripts.


Note that onstartups no longer needs to be supported.

1 The "not so main" blogs are all/mostly on a separate domain: blogoverflow.com.

share|improve this answer
1  
The fix has now made it into TM's released version. – Brock Adams Jul 4 '13 at 16:02
    
Oops. We maybe should've left two of those comments in (too late now) to reduce head-scratching later and for those that are slow to update. ;-) – Brock Adams Jul 4 '13 at 16:14
    
Oh well, too late now :p – Danny Beckett Jul 4 '13 at 16:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .