Skip to content

Commit

Permalink
codefactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Oein committed Jun 7, 2024
1 parent 53ed8f2 commit 4e275f0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions extension/src/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import log from "@log";
12__ => recblock(not working), bannerblock
13__ => sidebarblock
*/
let enableRules: string[] = [];
let disableRules: string[] = [];
const enableRules: string[] = [];
const disableRules: string[] = [];
const clearRule = () => {
enableRules.length = 0;
};
Expand Down
9 changes: 7 additions & 2 deletions extension/src/options.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,18 @@ const Options = () => {
ikey="adblock"
iname="광고 차단"
askBefore={(newV) => {
const shuffle = (array: any[]) => {
const shuffle = (
array: {
label: string;
onClick: () => void;
}[]
) => {
let currentIndex = array.length;

// While there remain elements to shuffle...
while (currentIndex != 0) {
// Pick a remaining element...
let randomIndex = Math.floor(Math.random() * currentIndex);
const randomIndex = Math.floor(Math.random() * currentIndex);
currentIndex--;

// And swap it with the current element.
Expand Down
2 changes: 1 addition & 1 deletion extension/src/static/chatFix.static.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
}

div[class*="live_information_details"] {
padding: 12px 18px 12px;
padding: 12px 18px;
}

div[class*="video_information_row"]:last-child {
Expand Down

0 comments on commit 4e275f0

Please sign in to comment.