Skip to content

Commit 2676357

Browse files
committed
fix lints
1 parent 8a07142 commit 2676357

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ switch (location.host) {
2323
case "guidestar.org":
2424
case "npmjs.com":
2525
case "reddit.com":
26+
// biome-ignore lint/suspicious/noFallthroughSwitchClause: intentional
2627
case "youtube.com":
27-
// biome-ignore lint/suspicious/noFallthroughSwitchClause: intentional
2828
target = domain;
2929
default: {
3030
if (/(ggpht|googleusercontent).com$/.test(domain)) {

reddit.com/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function run_it(node = document) {
126126
element.style.backgroundImage =
127127
"url(http://slippyd.com/assets/70/logo.facebook.favicon.s16.png)";
128128
} else if (/http:\/\/(?:www\.)?en\.wikipedia\.org\//.test(href)) {
129-
if (/\/wiki\/([^\/]+)/.test(element.pathname)) {
129+
if (/\/wiki\/([^/]+)/.test(element.pathname)) {
130130
if (element.textContent === href) {
131131
element.innerHTML = "";
132132
}

util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const sleep = (ms) => new Promise((res, rej) => setTimeout(res, ms));
1+
export const sleep = (ms) => new Promise((res) => setTimeout(res, ms));
22

33
/**
44
*

x.com/trends.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const doIt = async () => {
1919
* @param {Function} callback
2020
* @returns {MutationCallback}
2121
*/
22-
const createObserver = (callback) => {
22+
const createObserver = (_callback) => {
2323
/**
2424
*
2525
* @param {MutationRecord[]} list

0 commit comments

Comments
 (0)