-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add 2021, 2022 license notices to files
- Loading branch information
Showing
72 changed files
with
1,438 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/* eslint-env node */ | ||
module.exports = { | ||
env: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
declare module 'tippy.js/dist/tippy.css'; // Not sure if it's the best way to go about suppressing that error. | ||
|
||
declare module 'webextension-polyfill' { | ||
|
20 changes: 20 additions & 0 deletions
20
src/entry-points/background/migrations/migrateFrom1_16_7.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import type { Settings } from '@/settings'; | ||
import browser from '@/webextensions-api'; | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
src/entry-points/background/migrations/migrateFrom1_18_2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import { defaultSettings, Settings } from '@/settings'; | ||
import browser from '@/webextensions-api'; | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
src/entry-points/background/migrations/migrateFrom1_18_3.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import browser from '@/webextensions-api'; | ||
import { defaultSettings, Settings } from '@/settings'; | ||
|
||
|
20 changes: 20 additions & 0 deletions
20
src/entry-points/background/migrations/migrateFrom1_22_1.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import type { Settings } from '@/settings'; | ||
import browser from '@/webextensions-api'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
// Technically we can replace `audioContext.currentTime` with `performance.now() / 1000`. | ||
import { audioContext } from '@/entry-points/content/audioContext'; | ||
import { | ||
|
20 changes: 20 additions & 0 deletions
20
src/entry-points/content/CloningController/CloningController.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import browser from '@/webextensions-api'; | ||
import Lookahead, { TimeRange } from './Lookahead'; | ||
import { assertDev, AudioContextTime, SpeedName } from '@/helpers'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import browser from '@/webextensions-api'; | ||
import type { Settings as ExtensionSettings } from '@/settings'; | ||
import { assertDev, getGeckoLikelyMaxNonMutedPlaybackRate, MediaTime } from '@/helpers'; | ||
|
20 changes: 20 additions & 0 deletions
20
src/entry-points/content/SilenceDetector/SilenceDetectorMessage.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import type { AudioContextTime } from "@/helpers"; | ||
|
||
export const enum SilenceDetectorEventType { | ||
|
20 changes: 20 additions & 0 deletions
20
src/entry-points/content/SilenceDetector/SilenceDetectorNode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
export * from './SilenceDetectorMessage'; | ||
|
||
export default class SilenceDetectorNode extends AudioWorkletNode { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import { Settings, MyStorageChanges, settingsChanges2NewValues } from "@/settings"; | ||
import { addPlaybackStopListener, addPlaybackResumeListener, isPlaybackActive, closestNonNormalSpeed } from './helpers'; | ||
import type { TimeDelta } from "@/helpers"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import type { TimeDelta } from "@/helpers" | ||
|
||
export default class VolumeFilterNode extends AudioWorkletNode { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
/** | ||
* Browsers (at least at the time of writing, at least Gecko and Chromium) use different audio data pipelines for normal | ||
* (1.0) and non-normal speeds, and switching between them causes an audio glitch: | ||
|
20 changes: 20 additions & 0 deletions
20
src/entry-points/content/helpers/destroyAudioWorkletNode.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
export function destroyAudioWorkletNode(node: AudioWorkletNode): void { | ||
node.port.postMessage('destroy'); | ||
node.port.close(); | ||
|
20 changes: 20 additions & 0 deletions
20
src/entry-points/content/helpers/extensionSettings2ControllerSettings.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
/** | ||
* @license | ||
* Copyright (C) 2021, 2022 WofWca <[email protected]> | ||
* | ||
* This file is part of Jump Cutter Browser Extension. | ||
* | ||
* Jump Cutter Browser Extension is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Jump Cutter Browser Extension is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with Jump Cutter Browser Extension. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
import type { Settings as ExtensionSettings } from '@/settings'; | ||
import type { ControllerSettings } from '../StretchingController/StretchingController'; | ||
import { getAbsoluteClampedSilenceSpeed } from '@/settings'; | ||
|
Oops, something went wrong.