Skip to main content
deleted 70 characters in body
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

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     *://chatdata.stackoverflowstackexchange.com/*
// @exclude     *://dataelections.stackexchange.com/*
// @exclude     *://electionsopenid.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.

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.

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.*.com/*
// @exclude     *://chat.*.com/*
// @exclude     *://data.stackexchange.com/*
// @exclude     *://elections.stackexchange.com/*
// @exclude     *://openid.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.

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

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 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.

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.

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.

replaced http://discuss.area51.stackexchange.com/ with https://area51.meta.stackexchange.com/
Source Link

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.onstartups no longer needs to be supported.

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

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.

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.

added 100 characters in body
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
Loading
added 55 characters in body
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
Loading
added 918 characters in body
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
Loading
onstartups no longer needs to be supported.
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
Loading
Add support for https
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
Loading
Added more spacing - this way, when added into a `// ==UserScript==` block, the columns line up correctly, given an `@description` - also moved `mathoverflow.net` so that the list is in alphabetical order
Source Link
Loading
added 2 characters in body
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
Loading
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
Loading