Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
893 commits
Select commit Hold shift + click to select a range
cf1973f
4.9.48
alexanderby Apr 18, 2022
0d9dbeb
Fix for endeavouros.com (#8693)
Apr 20, 2022
b4b77bd
Fix for gameranx.com (#8694)
Apr 20, 2022
1458b34
Fix for aldi.us (#8695)
Apr 20, 2022
4c04eed
Fix for thriftbooks.com (#8696)
Apr 20, 2022
2f0b582
Fix for food4less.com (#8697)
Apr 20, 2022
c28313f
Fix for shaneco.com (#8698)
Apr 20, 2022
cd46076
Fix for picknsave.com (#8699)
Apr 20, 2022
3c1ce3d
Fix for fredmeyerjewelers.com (#8700)
Apr 20, 2022
1498c49
Fix for myfood4less.com (#8701)
Apr 20, 2022
171a7bf
Fix for thesaurus.com (#8702)
Apr 20, 2022
beecf36
Fix for steamdeck.com (#8704)
Apr 20, 2022
acb9f40
Fix for www.songsterr.com (#8705)
Apr 20, 2022
93e6982
Fix for nxos.org (#8706)
Apr 20, 2022
b6bb810
Fix for banki.ru (#8670)
jtraub Apr 20, 2022
caa2f14
Fix for tizen.org (#8707)
Apr 20, 2022
aa3e958
Fix for rockylinux.org (#8708)
Apr 20, 2022
38430fb
Fix for fosshost.org (#8709)
Apr 20, 2022
8afc718
Fix for elementary.io (#8710)
Apr 20, 2022
2262960
Fix for ubuntubudgie.org (#8711)
Apr 20, 2022
d14cd07
Fix for bugs.mojang.com (#8712)
Apr 20, 2022
8b26844
Fix for raspberrypi.com (#8713)
Apr 20, 2022
797e5ea
Fix for helzberg.com (#8714)
Apr 20, 2022
962120c
Fix for lambdalabs.com (#8715)
Apr 20, 2022
2987411
Fix for shells.com (#8716)
Apr 20, 2022
39ddc89
Fix for ge.globo.com (#8717)
Apr 20, 2022
fad4dbf
Added dark site(#8691)
Bobakanoosh Apr 20, 2022
34feb16
Update fixes (#8718)
zayadur Apr 20, 2022
b068edb
Update fixes (#8686)
Elaborendum Apr 21, 2022
5b5a520
Fix for level.co (#8720)
zayadur Apr 22, 2022
ae146f4
Fix for google.*/maps (#8735)
Apr 22, 2022
acdfb50
Fix for sugaroutfitters.com (#8736)
Apr 22, 2022
980e9d9
Fix for drive.google.com (#8737)
Apr 22, 2022
e996829
Fix for central.proxyvote.com (#8726)
pardinn Apr 22, 2022
8d8cebb
Update PT-BR translation (#8732)
Tiagoquix Apr 22, 2022
6c63eb7
Added dark sites (#8731)
jendib Apr 22, 2022
edc3015
Fix for tasks.google.com (#8739)
Elaborendum Apr 22, 2022
4caf5e2
Fix for google.*/maps (#8740)
Apr 22, 2022
e8e5bbe
Fix several sites (#8768)
Apr 25, 2022
81136ae
Fix for ubuntu.com (#8764)
pnaf Apr 25, 2022
917902f
Added dark sites (#8766)
Apr 25, 2022
98d68b4
Fix for google.*/maps (#8741)
Elaborendum Apr 25, 2022
c058935
Fix for panthema.net (#8769)
Apr 25, 2022
25df7d2
Fix for eletimes.com (#8775)
Gitoffthelawn Apr 27, 2022
c070943
Fix for docs.expo.dev (#8792)
Apr 30, 2022
bbf3df4
Update PT-BR translation (#8785)
Tiagoquix Apr 30, 2022
3dec2eb
Fix for kubuntu.org (#8790)
pnaf Apr 30, 2022
4ff1c5a
Fix for tiktok.com (#8794)
Apr 30, 2022
e337194
Fix for spc.noaa.gov (#8793)
Apr 30, 2022
6ad1a2a
Fix for g1.globo.com (#8795)
Apr 30, 2022
879fdaa
Fix for docs.google.com (#8788)
pipipear May 1, 2022
be8a65c
Fix for notion.so (#8799)
dimateos May 1, 2022
ae5065e
Allow exception to happen in adoptedStyleSheets code (#8801)
May 1, 2022
ab12322
Fix for boringcompany.com (#8803)
May 1, 2022
8147feb
4.9.49
alexanderby May 1, 2022
b865103
4.9.50
alexanderby May 1, 2022
df4f1ae
Add Telugu translation (#8798)
vivekkoya May 1, 2022
5c5d0df
Fix for alphacoders.com (#8805)
May 1, 2022
3e47e06
Add some dark sites (#8796)
Tiagoquix May 1, 2022
c893042
Fix for leagueoflegends.com (#8806)
May 1, 2022
0cd7d98
Fix for patuscada.bar (#8807)
May 1, 2022
707ba83
Fix for bing.com (#8781)
ChriZ0529 May 1, 2022
8546f3e
Fix for overleaf.com (#8809)
c-nagy May 2, 2022
c34018d
Added dark site (#8808)
kidsonfilms-python-rules May 2, 2022
f87409e
Add dark site (#8810)
Tiagoquix May 2, 2022
a551a1e
Fix for iconify.design (#8811)
Snazzah May 2, 2022
48f947a
Fix for drive.google.com (#8815)
May 2, 2022
73b7ac9
Fix for igurublog.wordpress.com (#8816)
May 2, 2022
7b5dd82
Fix for vk.com (#8817)
rakleed May 3, 2022
a4cac88
Fix sciencebasedmedicine.org (Dynamic) (#8819)
Gitoffthelawn May 3, 2022
466821e
Fix for developers.google.com (#8823)
May 3, 2022
ecb466d
Add dark site (#8822)
Tiagoquix May 3, 2022
6789ea0
Fix for ario-player.sourceforge.net (#8824)
May 3, 2022
753b745
Fix for zendesk.com (#8826)
Joshlha May 4, 2022
1804f3a
Fix for omgubuntu.co.uk (#8830)
awebeer256 May 4, 2022
06e5602
Fix for getpocket.com (#8831)
rakleed May 5, 2022
1058afa
Fix for caddyserver.com (#8834)
c-nagy May 6, 2022
b9a2425
Fix for vanguard.com (#8835)
c-nagy May 6, 2022
429ef1f
Fix for ind.ie (#8633)
BANOnotIT May 6, 2022
5dadcac
Fix for raspberrypi.org (#8836)
May 6, 2022
2ef0665
Fix for liveuamap.com (#8839)
c-nagy May 6, 2022
3309e7d
Fix for dnd.su (#8579)
BANOnotIT May 8, 2022
dd45b1a
Add dark site (#8840)
Tiagoquix May 8, 2022
baa78f2
Fix for tails.boum.org (#8841)
pnaf May 8, 2022
e22332e
New Theme: Tokyo Night (#8844)
MrKai77 May 8, 2022
ee4bbbf
Remove fastpath. (#8852)
May 9, 2022
dbe6122
Hide long logs (#8853)
May 9, 2022
3f80b6f
Specify frameId for CS_FETCH_RESPONSE (#8855)
May 9, 2022
08b594a
Fix for bloomberg.com (#8857)
c-nagy May 10, 2022
e574ff8
Add dark site (#8860)
Tiagoquix May 11, 2022
d697a7c
Add dark site (#8861)
subatomic-honda-civic May 11, 2022
4901ce8
Add dark sites (#8863)
subatomic-honda-civic May 11, 2022
62e86f2
Fix for fz-juelich.de (#8868)
May 11, 2022
1035f98
Fix for studip.uni-passau.de (#8866)
ThexXTURBOXx May 11, 2022
a5c31e1
Add dark site (#8869)
Overimagine1 May 12, 2022
80820ce
Fix for www.w3schools.com (#8873)
May 12, 2022
0394ba9
Fix for tweakers.net (#8874)
May 12, 2022
599e4bd
Fix for allrecipes.com (#8875)
c-nagy May 12, 2022
4b532cc
Add dark site (#8870)
subatomic-honda-civic May 13, 2022
b109e1b
Fix for getpocket.com (#8881)
rakleed May 13, 2022
99378ab
Add dark site (#8883)
May 14, 2022
d37f414
Fix for juwai.com (#8884)
felixonmars May 14, 2022
e218b88
Fix for porkbun.com (#8885)
wzxu May 14, 2022
5c0f5f1
Fix for acorn.utoronto.ca (#8888)
navn-r May 14, 2022
5f932b0
Remove non-dark site (#8889)
va1entin May 14, 2022
34acea2
Fix for icrc.org (#8886)
pnaf May 14, 2022
5150941
Trim CSSURL before using `^ $`-regex. (#8892)
May 15, 2022
9a40276
Fix doc.qt.io (#8891)
linsui May 15, 2022
4afd5e0
Fix for startech.com.bd (#8882)
May 15, 2022
738e68c
Add changelog (#8893)
May 15, 2022
a57fc1e
Add dark site (#8895)
Jeusto May 21, 2022
497081c
Remove cast for crypto. (#8925)
May 21, 2022
9ffb007
Fix for merriam-webster.com (#8897)
Gitoffthelawn May 21, 2022
ae1610a
Fix for simepar.br (#8926)
May 21, 2022
8907064
Add dark site (#8898)
Tiagoquix May 21, 2022
9f9e0f7
Add dark sites (#8902)
May 21, 2022
6f2f6e2
Fix for webmd.com (#8905)
Gitoffthelawn May 21, 2022
2207337
Fix for frame.work (#8918)
c-nagy May 21, 2022
1d4dc5c
Fix for containertoolbx.org (#8927)
May 21, 2022
d8466a0
Fix for bulldogjob.pl (#8909)
pawl0wski May 21, 2022
f66c489
Fix for rostov.tele2.ru (#8928)
May 21, 2022
abf9257
Fix for edukacja.olsztyn.eu (#8910)
pawl0wski May 21, 2022
2d3b3f4
Use Shunting-Yard algorithm for lowering calc. (#8929)
May 21, 2022
0da9588
Fix for gamepress.gg(#8924)
Nazunawa May 22, 2022
f64bf14
Display news icon when available (#8941)
alexanderby May 23, 2022
3c829b9
Fix for kali.org (#8942)
c-nagy May 25, 2022
c1d93e4
Fix for understandingwar.org (#8887)
c-nagy May 25, 2022
7a8d143
Add dark site (#8949)
May 25, 2022
eed3b55
Fix for music.apple.com (#8956)
May 25, 2022
786b065
Remove non-dark sites (#8950)
May 25, 2022
4dd2fb9
Add dark site (#8940)
HISEROD May 25, 2022
6adfb06
Add dark sites (#8934)
c-nagy May 25, 2022
f409072
Fix for atlassian.net (#8914)
terminalmage May 25, 2022
5ce80f6
v5 News section (#8953)
alexanderby May 26, 2022
e977814
Toucan extension fixes (#8963)
alexanderby May 26, 2022
da63b6d
Malay translation (#8962)
aaronangxz May 26, 2022
58ab11b
Use correct file name for Telugu (#8964)
alexanderby May 26, 2022
3492240
4.9.51
alexanderby May 26, 2022
ea5cbe8
Fix for proton.me (#8968)
May 27, 2022
521ba2f
Fix for bitwarden.com (#8969)
May 27, 2022
ad98afe
Fix for bible.optina.ru (#8970)
May 27, 2022
615df51
Fix for student.ladok.se (#8919)
rappos May 27, 2022
bc278c5
Add dark site (#8947)
plasticuproject May 27, 2022
a5e6782
Fix for urpredditodicittadinanza.lavoro.gov.it & drive.google.com (#8…
CarloHD May 27, 2022
40d9dff
Remove mail.protonmail.com (#8972)
May 28, 2022
cd14742
Fix for wikipedia.org (#9012)
Jun 4, 2022
cd9d70a
Fix mulitple sites (#9013)
Jun 4, 2022
ee9199d
daddyanity.com is dark (#8976)
Committing Jun 4, 2022
e2ce37e
Fix for fairtradeoriginal.* (#9014)
Jun 4, 2022
c387e70
Fix for artsy.net (#9015)
Jun 4, 2022
1efbb3e
Fix spelling errors in color-schemes document (#8997)
Jun 4, 2022
9cb420f
Fix for databricks.com (#9001)
mordavidj Jun 4, 2022
5e9ef97
Fix for cbsnews.com (#9017)
Jun 4, 2022
7bc1f43
Fix more scribe instances (#9007)
linsui Jun 4, 2022
ccff621
Fix for readme.io (#9011)
Minemobs Jun 4, 2022
d9f7507
Fix multiple sites (#9018)
Jun 4, 2022
c4a1659
Add dark site (#8973)
ztc0611 Jun 4, 2022
d586a0c
astronvim.github.io is dark (#9019)
jemsurfer Jun 5, 2022
d13125a
Fix for forms.reform.app (#9006)
bussec Jun 5, 2022
5cb3f41
Fix for e.foundation (#9026)
Jun 6, 2022
fa9c88d
Fix for iett.istanbul (#8990)
erkinalp Jun 6, 2022
88d4cff
Fix for hacdias.com (#9027)
Jun 6, 2022
4c634a6
Fix for fontawesome.com (#8298)
Sebastian-Dolfen Jun 6, 2022
1eb4330
Fix for behance.net & dribbble.com (#9028)
wzxu Jun 8, 2022
58d4ed2
Remove non darksites (#9040)
Jun 8, 2022
584ebd0
Add dark site (#9038)
Jun 8, 2022
081b6a8
Fix for chase.com & brilliant.org (#9041)
dereklyonheart Jun 8, 2022
de4d52c
Fix for overleaf.com (#9039)
abpaudel Jun 8, 2022
facdd64
Fix multiple sites (#9042)
Jun 8, 2022
e376dfe
Added dark site (#9035)
jebediah47 Jun 8, 2022
8bd4e29
Fix for hmong.* (#8275)
crissthiandi Jun 8, 2022
826b6ed
Fix for grammarly.com (#9029)
Jun 8, 2022
ec11a8d
Fix for comenius.susqu.edu (#9043)
Jun 8, 2022
b859f45
Fix for mlb.com (#9044)
Jun 8, 2022
b72217b
Fix for stackexchange (#9045)
Jun 8, 2022
72551b5
Fix for willthompson.co.uk (#9046)
Jun 8, 2022
0eb9e28
Fix for strava.com (#9051)
Myshor Jun 9, 2022
384c905
Fix for ipko.pl (#9055)
Myshor Jun 9, 2022
c4e56e9
fix for onet.pl (#9056)
Myshor Jun 9, 2022
02d1cc9
Fix for strava.com (#9062)
Myshor Jun 10, 2022
076d90a
Description according to policies + Translate tool (#9063)
alexanderby Jun 10, 2022
ebad82b
Fix for caf.fr (#9031)
CaseOf Jun 11, 2022
0aa92f0
Add dark site (#9048)
colecrouter Jun 11, 2022
b6721c0
Fix for superbuy.com (#9052)
felixonmars Jun 11, 2022
6043ed3
Fix for nbi.ku.dk (#9066)
Jun 11, 2022
4571734
Add dark sites (#9060)
ernl Jun 11, 2022
1b14786
Fix for sf-express.com (#9064)
felixonmars Jun 11, 2022
9c63f29
Fix for retracmirrors.com (#9004)
lefte Jun 11, 2022
1addb9e
Fix for community.progress.com (#9068)
Jun 11, 2022
1804c42
Fix for superbuy.com (#9070)
felixonmars Jun 12, 2022
cd460e0
Fix for linustechtips.com (#9076)
Jun 13, 2022
8ae40f8
Fix for magister.net (#9077)
Jun 13, 2022
00764c5
Fix for shopping.google.com (#9094)
Jun 17, 2022
d72856a
Fix for postani-student.hr (#9095)
Jun 17, 2022
1bb6175
Added dark sites (#9078)
NyakoFox Jun 17, 2022
9f6e13f
Fix for wikipedia.org (#9096)
Jun 17, 2022
2579e39
Fix for simply-v.de (#9097)
Jun 17, 2022
450e8cb
Added dark site (#9089)
ZSPFX Jun 17, 2022
761a067
Fix for a11ywithlindsey.com (#9098)
Jun 17, 2022
2a0e0cf
Fix for 10minutemail.com (#9099)
Jun 17, 2022
c3724f6
Fix for mailbox.org (#9103)
Jun 18, 2022
426f935
Fix for protonvpn.com (#9105)
Jun 18, 2022
62725e4
Fix for minecraft.net (#8945)
awebeer256 Jun 18, 2022
a8a651a
Add dark site (#9100)
Jun 18, 2022
24410a8
Fix for bitcoinprice.com (#9106)
Jun 18, 2022
8ae774f
Correctly handle escaped values in CSS URL's (#9107)
Jun 18, 2022
7bfd90f
Removed obsolete editor (#9115)
redtrillix Jun 21, 2022
f9ab0ff
Fix for pixaful.com (#9119)
Jun 22, 2022
774f514
Fix for www.scien.cx (#9120)
Jun 22, 2022
c9b03a9
Add dark site (#9114)
kidsonfilms-python-rules Jun 22, 2022
a70445a
Fix for pulumi.com (#9121)
Jun 22, 2022
bcdbf74
Fix for Finn.no (#9117)
taraldb Jun 22, 2022
81531f2
Fix for churchofjesuschrist.org (#9086)
mordavidj Jun 22, 2022
7182b62
Fix Thunderbird's header tables (#9122)
seanthegeek Jun 22, 2022
a41ff94
Fix several sites (#9123)
Jun 22, 2022
abf9bea
Fix CodeQL Failures (#9049)
donfiguerres Jun 24, 2022
ec5731e
Fix for signulous.com (#9128)
lunaynx Jun 24, 2022
85169ed
Cleanup Manjaro website fixes (#9131)
Jun 24, 2022
9bcf53d
Fix for manjaro.org (#9135)
Jun 24, 2022
4a4a9f4
Fix for cdn77.com (#9136)
Jun 24, 2022
9ce662d
Use a safe check around checking google fonts (#9138)
Jun 25, 2022
c8a9515
Fix for wiki.facepunch.com (#9124)
dankmolot Jun 25, 2022
c328599
Fix for irishtimes.com (#9139)
ericm Jun 26, 2022
ee3c7c1
Fix for fotw.info (#9140)
erkinalp Jun 26, 2022
7961d7e
Add dark site (#9141)
meWho3000 Jun 26, 2022
c017b38
Fix for app.betrybe.com (#9116)
gralmeidan Jun 27, 2022
d17faa5
4.9.52
alexanderby Jun 28, 2022
6203ec4
Use XSS-safe method of injecting stylesheet proxy script with MV3 (#9…
bershanskiy Jun 29, 2022
5515f6e
Don't manage styles that have a empty `href` attribute (#9150)
Jun 29, 2022
a44c711
Add dark site (#9147)
ar1ja Jun 30, 2022
e796511
Fix for calendar.google.com (#9159)
Jun 30, 2022
bdc9d32
Add dark site (#9160)
tomergan Jun 30, 2022
af9e68a
Fix for ikea.ee (Issue #9080) (#9148)
tony1661 Jun 30, 2022
3b64419
Use `navigator.UserAgentData` when possible (#9161)
Jun 30, 2022
270b3a7
Fix tests for stable & beta (#9162)
Jun 30, 2022
0a0baa3
Add runtothefinish.com (#9156)
Jul 1, 2022
7422333
Refactor: make makeChromiumHappy() consistent (#9164)
bershanskiy Jul 1, 2022
eec3dee
Fix: use chrome.tabs.onRemoved to clear TabManager data (#9166)
bershanskiy Jul 2, 2022
7603f61
Remove unused import (#9173)
Jul 2, 2022
ea59afe
In MV3 builds, use promise-based message passing in CS (#9174)
bershanskiy Jul 2, 2022
d79724d
Add dark site (#9175)
ForumPlayer Jul 2, 2022
4ea533e
Fix codeberg.org (#9176)
Jul 2, 2022
8e74e97
Fix for thomann.de (#9170)
Cannedfood Jul 3, 2022
2953e41
Refactor: Use proper MessageType enum (#9178)
bershanskiy Jul 3, 2022
b8b7d49
Refactor: avoid objects with only one attribute (#9179)
bershanskiy Jul 3, 2022
fe929d5
Add darkreader-lock meta (#9181)
Jul 3, 2022
6fb67a9
Fix for metrobyt-mobile.com (#9182)
Jul 3, 2022
e654636
Fix for curseforge.com (#9184)
Jul 4, 2022
5e287e5
MV3: 'system' Automation (#9180)
bershanskiy Jul 4, 2022
12caab0
Refactor: use consistent style in switch statements (#9188)
bershanskiy Jul 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 66 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module.exports = {
/** @type {import('eslint').Linter.Config} */
const config = {overrides: []};

// Source code (TS, JSX, JS)
config.overrides.push({
files: ['{src,tasks,tests}/**/*.{ts,tsx,js,jsx}', '.*.js', 'index.d.ts'],
excludedFiles: ['darkreader.js'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'local'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:import/recommended', 'plugin:import/typescript'],
Expand Down Expand Up @@ -163,4 +169,62 @@ module.exports = {
}
},
],
};
});

// Bundled JS

config.overrides.push({
files: ['darkreader.js', 'build/debug/chrome/**/*.js'],
env: {browser: true},
extends: ['plugin:compat/recommended'],
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module'
},
settings: {
polyfills: [
'navigator.deviceMemory',
'navigator.userAgentData',
],
},
overrides: [

// API (modern clients)
{
files: ['darkreader.js'],
rules: {

// Compatibility check
'compat/compat': ['error', [
'>0.5% and supports es5 and supports promises and supports url',
'not Explorer > 0',
].join(', ')]
},
},

// Extension (non-mobile browsers based on Firefox or Chromium)
{
files: ['build/debug/chrome/**/*.js'],
rules: {

// Compatibility check
'compat/compat': ['error', [
'> 0.5% and supports es5',
'Firefox ESR',
'last 2 FirefoxAndroid versions',
'not Explorer > 0',
'not Safari > 0',
'not iOS > 0',
'not ChromeAndroid > 0',
'not OperaMini all',
].join(', ')]
},
},
],
});

// Ignore temporarily since it's taking forever.
// It seems to be importing typescript or something.
config.ignorePatterns = ['tests/project/tsconf.tests.ts'];

module.exports = config;
28 changes: 9 additions & 19 deletions .github/ISSUE_TEMPLATE/broken-website.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,15 @@ assignees: ''
---

<!--
⚠⚠ Do not delete this issue template! ⚠⚠
Reported issues must use this template and have all the necessary information provided.
Incomplete reports are likely to be ignored and closed.
-->

<!--
Thank you for taking the time to create a report about a website issue.
Ensure that there are no other existing reports for this website issue.
Please check if the issue is resolved after a restart of the browser.
Additionally, you should check if the issue persists in a new browser profile.
Remember to fill out every section on this report and remove any that are not needed.
⚠⚠ Do not delete this issue template or your issue will be ignored! ⚠⚠
Thank you for taking the time to report a bug.
First, please check:
- Can the issue be reproduced in a fresh browser profile?
- Is there an existing issue about this?
Please fill out every section of this report, removing any that are not needed.
Finally, place a brief description in the title of this report.
-->


# Broken Website Report

## Website Address
Expand All @@ -33,14 +27,10 @@ assignees: ''
Here is an example:
- Go to example.com.
- Hover over the example button.
- Notice that when hovering over the example button, it does not change color.
-->

## Expected Behavior
<!-- Provide a clear and concise description of what you expected to happen. -->

## Actual Behavior
<!-- Provide a clear and concise description of what happened. -->
## Problematic Observation
<!-- Provide a clear and concise description of the malfunction. -->

## Screenshots
<!-- If applicable, add screenshots to help explain this website issue. -->
Expand All @@ -56,4 +46,4 @@ Here is an example:
- Dark Reader Version: <!-- e.g. 4.9.34 -->

## Additional Context
<!-- Provide any additional information about this website issue. -->
<!-- Provide any additional information about this website issue. -->
36 changes: 13 additions & 23 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,29 @@ assignees: ''
---

<!--
⚠⚠ Do not delete this issue template! ⚠⚠
Reported issues must use this template and have all the necessary information provided.
Incomplete reports are likely to be ignored and closed.
-->

<!--
Thank you for taking the time to create a report about a bug.
Ensure that there are no other existing reports for this bug.
Please check if the issue is resolved after a restart of the browser.
Additionally, you should check if the issue persists in a new browser profile.
Remember to fill out every section on this report and remove any that are not needed.
⚠⚠ Do not delete this issue template or your issue will be ignored! ⚠⚠
Thank you for taking the time to report a bug.
First, please check:
- Can the issue be reproduced in a fresh browser profile?
- Is there an existing issue about this?
Please fill out every section of this report, removing any that are not needed.
Finally, place a brief description in the title of this report.
-->


# Bug Report

## Website Address
<!-- Please use the "Broken Website" template to report bugs confined to a specific website. -->

## Bug Description
<!-- Provide a clear and concise description, which will allow us to troubleshoot this bug. -->

## Website Address
<!--
If you can provide a website address, you probably have a bug with a specific website.
Please use the broken website template for this.
-->

## Steps To Reproduce
<!-- Provide steps to reproduce the problem. -->
<!--
Here is an example:
<!-- Provide steps to reproduce the problem:
- Go to example.com.
- Hover over the example button.
- Notice that when hovering over the example button, it does not change color.
- Hover over the third button in the bottom right.
- Observe its color.
-->

## Expected Behavior
Expand All @@ -62,4 +52,4 @@ Here is an example:
- Dark Reader Version: <!-- e.g. 4.9.34 -->

## Additional Context
<!-- Provide any additional information about this bug. -->
<!-- Provide any additional information about this bug. -->
85 changes: 85 additions & 0 deletions .github/workflows/test-browser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Run browser tests in Karma
on:

# Runs for pushes and pull requests,
# but don't run these when only some config is changed.
push:
branches:
- master
paths-ignore:
- 'src/config/*'
pull_request:
branches:
- master
types:
- opened
- synchronize
- reopened
- ready_for_review
paths-ignore:
- 'src/config/**'

workflow_dispatch:
jobs:
test-browser:
name: Run browser tests
strategy:
matrix:
include:

# Extended support releases
- channel: esr
firefox: latest-esr

# Stable releases
- channel: stable
chrome: stable
firefox: latest
coverage: true

# Beta releases
- channel: beta
chrome: beta
firefox: latest-beta

runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Install Chrome
if: ${{ matrix.chrome }}
uses: browser-actions/setup-chrome@latest
with:
chrome-version: ${{ matrix.chrome }}
- name: Configure Karma with path to Chrome executable
if: ${{ matrix.chrome }}
run: |
chrome --version
{ echo CHROME_BIN="$(which chrome)"; echo CHROME_TEST=1; } | tee -a "$GITHUB_ENV"

- name: Install Firefox
if: ${{ matrix.firefox }}
uses: browser-actions/setup-firefox@latest
with:
firefox-version: ${{ matrix.firefox }}
- name: Configure Karma with path to Firefox executable
if: ${{ matrix.firefox }}
run: |
firefox --version
{ echo FIREFOX_BIN="$(which firefox)"; echo FIREFOX_TEST=1; } | tee -a "$GITHUB_ENV"

- name: Node.js setup
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm
- name: Track Node and NPM version
run: node --version && npm --version

- name: Install application dependencies
run: npm ci

- name: Run tests
run: npm run test:inject -- --ci
55 changes: 55 additions & 0 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Run code tests on Pull Request or Push
on:

# Runs for pushes and pull requests,
# but don't run these when only some config is changed.
push:
branches:
- master
paths-ignore:
- 'src/config/*'
pull_request:
branches:
- master
types:
- opened
- synchronize
- reopened
- ready_for_review
paths-ignore:
- 'src/config/**'

workflow_dispatch:
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 15.x

- name: Verify NPM version
run: npm --version

- name: Set up npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.OS }}-${{ hashFiles('package-lock.json') }}
${{ runner.OS }}

- name: Install npm dependencies
run: npm ci

- name: Lint code for code-style errors
run: npm run lint

- name: Check for compatibility issues
run: npm run lint:bundle
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run tests on Pull Request or Push
name: Run config tests on Pull Request or Push
on:
push:
branches:
Expand All @@ -23,8 +23,11 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 14.x

node-version: 15.x

- name: Verify NPM version
run: npm --version

- name: Set up npm cache
uses: actions/cache@v2
with:
Expand All @@ -39,6 +42,3 @@ jobs:

- name: Run test against code
run: npm run test:ci

- name: Lint code for code-style errors
run: npm run lint
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ tests/inject/coverage/
#-----------------------------------
.idea/
.vscode/
.log/
*.code-workspace

# Cache files
#-----------------------------------
.eslintcache

# V8 Profiler logs
#-----------------------------------
isolate-*-v8.log
Loading