Skip to content

Commit

Permalink
refactor: add 2021, 2022 license notices to files
Browse files Browse the repository at this point in the history
  • Loading branch information
WofWca committed May 27, 2022
1 parent f4a128e commit f11a98e
Show file tree
Hide file tree
Showing 72 changed files with 1,438 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.js
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: {
Expand Down
20 changes: 20 additions & 0 deletions src/declarations.d.ts
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' {
Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/background/migrations/migrateFrom1_16_7.ts
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';

Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/background/migrations/migrateFrom1_18_2.ts
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';

Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/background/migrations/migrateFrom1_18_3.ts
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';

Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/background/migrations/migrateFrom1_22_1.ts
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';

Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/content/AlwaysSoundedController/index.ts
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 {
Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/content/CloningController/CloningController.ts
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';
Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/content/CloningController/Lookahead.ts
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';
Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/content/SilenceDetector/SilenceDetectorMessage.ts
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 {
Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/content/SilenceDetector/SilenceDetectorNode.ts
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 {
Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/content/TimeSavedTracker.ts
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";
Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/content/VolumeFilter/VolumeFilterNode.ts
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 {
Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/content/helpers/closestNonNormalSpeed.ts
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:
Expand Down
20 changes: 20 additions & 0 deletions src/entry-points/content/helpers/destroyAudioWorkletNode.ts
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();
Expand Down
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';
Expand Down
Loading

0 comments on commit f11a98e

Please sign in to comment.