Skip to content

Commit ac01500

Browse files
authored
Renamed main branch (#9190)
1 parent 12caab0 commit ac01500

8 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/test-browser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
# but don't run these when only some config is changed.
66
push:
77
branches:
8-
- master
8+
- main
99
paths-ignore:
1010
- 'src/config/*'
1111
pull_request:
1212
branches:
13-
- master
13+
- main
1414
types:
1515
- opened
1616
- synchronize

.github/workflows/test-code.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
# but don't run these when only some config is changed.
66
push:
77
branches:
8-
- master
8+
- main
99
paths-ignore:
1010
- 'src/config/*'
1111
pull_request:
1212
branches:
13-
- master
13+
- main
1414
types:
1515
- opened
1616
- synchronize

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Run config tests on Pull Request or Push
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
pull_request:
77
branches:
8-
- master
8+
- main
99
types:
1010
- opened
1111
- synchronize

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Sponsor the development of Dark Reader
1010

1111
## Translation
1212

13-
[Improve or suggest](https://github.com/darkreader/darkreader/tree/master/src/_locales) a translation.
13+
[Improve or suggest](https://github.com/darkreader/darkreader/tree/main/src/_locales) a translation.
1414
See the list of [language codes](https://developer.chrome.com/webstore/i18n#localeTable) that we can support.
1515

1616
## Adding a website that is already dark
@@ -20,16 +20,16 @@ If a website is **already dark** and meets the following requirements:
2020
- The URL is the actual website address. (No CNAME or URL redirects)
2121
- The page isn't WIP, sites will change in this phase and could afterwards not meet the requirements.
2222

23-
Then, you can **add it to the [dark-sites.config](https://github.com/darkreader/darkreader/blob/master/src/config/dark-sites.config) file**
23+
Then, you can **add it to the [dark-sites.config](https://github.com/darkreader/darkreader/blob/main/src/config/dark-sites.config) file**
2424
*(please, preserve the alphabetical order)*.
2525

2626
## Fixing incorrect inversions
2727

2828
If certain **parts** of a web page are **incorrectly inverted or styled**,
2929
you can fix this by specifying the appropriate [**CSS selectors**](https://developer.mozilla.org/docs/Web/CSS/CSS_Selectors) in
30-
**[dynamic-theme-fixes.config](https://github.com/darkreader/darkreader/blob/master/src/config/dynamic-theme-fixes.config)**
30+
**[dynamic-theme-fixes.config](https://github.com/darkreader/darkreader/blob/main/src/config/dynamic-theme-fixes.config)**
3131
(for Dynamic Theme mode)
32-
or **[inversion-fixes.config](https://github.com/darkreader/darkreader/blob/master/src/config/inversion-fixes.config)**
32+
or **[inversion-fixes.config](https://github.com/darkreader/darkreader/blob/main/src/config/inversion-fixes.config)**
3333
(for Filter and Filter+ modes) *(__Please, preserve alphabetical order by URL, use short selectors, and preserve code style__)*.
3434

3535
Below you can learn how to make a fix for the appropriate mode.
@@ -51,8 +51,8 @@ For **Filter mode**, it is a common practice to invert parts of the page that ar
5151
- Click **Apply**.
5252
- Check how it looks both in **Light** and **Dark** mode.
5353
- If the **fix works** open
54-
**[dynamic-theme-fixes.config](https://github.com/darkreader/darkreader/blob/master/src/config/dynamic-theme-fixes.config) file**
55-
or **[inversion-fixes.config](https://github.com/darkreader/darkreader/blob/master/src/config/inversion-fixes.config) file**.
54+
**[dynamic-theme-fixes.config](https://github.com/darkreader/darkreader/blob/main/src/config/dynamic-theme-fixes.config) file**
55+
or **[inversion-fixes.config](https://github.com/darkreader/darkreader/blob/main/src/config/inversion-fixes.config) file**.
5656
- Click **Edit** (login to GitHub first).
5757
- **Insert your fix** there. Preserve **alphabetic order** by URL.
5858
- Provide a **short description** of what you have done.
@@ -99,7 +99,7 @@ If you think you can add a new _popular_ or _unique_ but useable pre-defined col
9999
Please follow the next steps to add a new color scheme:
100100

101101
- Open
102-
**[color-schemes.drconf](https://github.com/darkreader/darkreader/blob/master/src/config/color-schemes.drconf) file**.
102+
**[color-schemes.drconf](https://github.com/darkreader/darkreader/blob/main/src/config/color-schemes.drconf) file**.
103103
- Click **Edit** (login to GitHub first).
104104
- **Insert your fix** there. Preserve **alphabetic order** by Color scheme name.
105105
- Provide a **short description** of what you have done.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<p align="center"><a href="https://darkreader.org" target="_blank" rel="noreferrer noopener"><img width="250" alt="Dark Reader's mascot" src="https://raw.githubusercontent.com/darkreader/darkreader.github.io/master/images/darkreader-mascot.svg"></a></p>
1+
<p align="center"><a href="https://darkreader.org" target="_blank" rel="noreferrer noopener"><img width="250" alt="Dark Reader's mascot" src="https://raw.githubusercontent.com/darkreader/darkreader.github.io/main/images/darkreader-mascot.svg"></a></p>
22
<p align="center">Dark Reader <strong>analyzes</strong> web pages and aims to <strong>reduce eyestrain</strong> while browsing the web.</p>
33
<br/>
44
<p align="center"><a rel="noreferrer noopener" href="https://chrome.google.com/webstore/detail/dark-reader/eimadpbcbfnmbkopoojfekhnkhdbieeh/"><img alt="Chrome Web Store" src="https://img.shields.io/badge/Chrome-141e24.svg?&style=for-the-badge&logo=google-chrome&logoColor=white"></a> <a rel="noreferrer noopener" href="https://addons.mozilla.org/firefox/addon/darkreader/"><img alt="Firefox Add-ons" src="https://img.shields.io/badge/Firefox-141e24.svg?&style=for-the-badge&logo=firefox-browser&logoColor=white"></a> <a rel="noreferrer noopener" href="https://darkreader.org/safari/"><img alt="Apple App Store" src="https://img.shields.io/badge/Safari-141e24.svg?&style=for-the-badge&logo=safari&logoColor=white"></a> <a rel="noreferrer noopener" href="https://microsoftedge.microsoft.com/addons/detail/dark-reader/ifoakfbpdcdoeenechcleahebpibofpc/"><img alt="Edge Addons" src="https://img.shields.io/badge/Edge-141e24.svg?&style=for-the-badge&logo=microsoft-edge&logoColor=white"></a> <a el="noreferrer noopener" href="https://addons.thunderbird.net/thunderbird/addon/darkreader"><img alt="Thunderbird" src="https://img.shields.io/badge/Thunderbird-141e24.svg?&style=for-the-badge&logo=thunderbird&logoColor=white"></a>
@@ -16,7 +16,7 @@ If the help page doesn't answer your question, open up a new [discussion](https:
1616

1717
## How to contribute
1818

19-
Read more about contributing to Dark Reader in [CONTRIBUTING.md](https://github.com/darkreader/darkreader/blob/master/CONTRIBUTING.md).
19+
Read more about contributing to Dark Reader in [CONTRIBUTING.md](https://github.com/darkreader/darkreader/blob/main/CONTRIBUTING.md).
2020

2121
## Building for use
2222

src/background/config-manager.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ import {DEFAULT_COLORSCHEME} from '../defaults';
1111

1212
const CONFIG_URLs = {
1313
darkSites: {
14-
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/master/src/config/dark-sites.config',
14+
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/main/src/config/dark-sites.config',
1515
local: '../config/dark-sites.config',
1616
},
1717
dynamicThemeFixes: {
18-
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/master/src/config/dynamic-theme-fixes.config',
18+
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/main/src/config/dynamic-theme-fixes.config',
1919
local: '../config/dynamic-theme-fixes.config',
2020
},
2121
inversionFixes: {
22-
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/master/src/config/inversion-fixes.config',
22+
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/main/src/config/inversion-fixes.config',
2323
local: '../config/inversion-fixes.config',
2424
},
2525
staticThemes: {
26-
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/master/src/config/static-themes.config',
26+
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/main/src/config/static-themes.config',
2727
local: '../config/static-themes.config',
2828
},
2929
colorSchemes: {
30-
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/master/src/config/color-schemes.drconf',
30+
remote: 'https://raw.githubusercontent.com/darkreader/darkreader/main/src/config/color-schemes.drconf',
3131
local: '../config/color-schemes.drconf',
3232
},
3333
};

src/inject/dynamic-theme/css-collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ _______|_______/__/ ____ \\__\\__|___\\__\\__|___\\__\\____
3535
https://darkreader.org
3636
*/
3737
38-
/*! Dark reader generated CSS | Licensed under MIT https://github.com/darkreader/darkreader/blob/master/LICENSE */
38+
/*! Dark reader generated CSS | Licensed under MIT https://github.com/darkreader/darkreader/blob/main/LICENSE */
3939
`;
4040

4141
export async function collectCSS() {

src/utils/links.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {getUILanguage} from './locales';
22

33
export const BLOG_URL = 'https://darkreader.org/blog/';
4-
export const DEVTOOLS_DOCS_URL = 'https://github.com/darkreader/darkreader/blob/master/CONTRIBUTING.md';
4+
export const DEVTOOLS_DOCS_URL = 'https://github.com/darkreader/darkreader/blob/main/CONTRIBUTING.md';
55
export const DONATE_URL = 'https://opencollective.com/darkreader/donate';
66
export const GITHUB_URL = 'https://github.com/darkreader/darkreader';
77
export const PRIVACY_URL = 'https://darkreader.org/privacy/';

0 commit comments

Comments
 (0)