From cfcecfdc4541614bfe77e0c41e2d5807e2f38921 Mon Sep 17 00:00:00 2001 From: Emerick Rogul Date: Tue, 27 Aug 2024 13:58:11 -0400 Subject: [PATCH] Remove Brave Talk one-on-one meetings script and entry --- Greaselion.json | 13 ------------- scripts/brave_talk/confabs/oneOnOneMeetings.ts | 13 ------------- webpack.config.js | 4 +--- 3 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 scripts/brave_talk/confabs/oneOnOneMeetings.ts diff --git a/Greaselion.json b/Greaselion.json index 4feef63..a69e94b 100644 --- a/Greaselion.json +++ b/Greaselion.json @@ -153,18 +153,5 @@ "auto-contribution-enabled": true }, "minimum_brave_version": "1.19" - }, - { - "urls": [ - "https://talk.brave.com/*", - "https://beta.talk.brave.com/*", - "https://together.brave.com/*" - ], - "scripts": [ - "scripts/brave_talk/confabs/oneOnOneMeetings.bundle.js" - ], - "preconditions": { - "ads-enabled": true - } } ] diff --git a/scripts/brave_talk/confabs/oneOnOneMeetings.ts b/scripts/brave_talk/confabs/oneOnOneMeetings.ts deleted file mode 100644 index a747cd0..0000000 --- a/scripts/brave_talk/confabs/oneOnOneMeetings.ts +++ /dev/null @@ -1,13 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this file, - * You can obtain one at http://mozilla.org/MPL/2.0/. */ - -const initScript = () => { -// ads are enabled, so add the "Start a one-to-one video call" button! - - const element = document.getElementById('enter_1on1_button') - - if (element) element.style.display = 'inline-block' -} - -initScript() diff --git a/webpack.config.js b/webpack.config.js index 6c587b1..12da77a 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -8,7 +8,6 @@ const { CleanWebpackPlugin } = require('clean-webpack-plugin') const CopyPlugin = require('copy-webpack-plugin') const rewardsDir = 'scripts/brave_rewards' -const togetherDir = 'scripts/brave_talk' const allEntries = [ `${rewardsDir}/publisher/github/githubBase`, @@ -22,8 +21,7 @@ const allEntries = [ `${rewardsDir}/publisher/vimeo/vimeoBase`, `${rewardsDir}/publisher/vimeo/vimeoAutoContribution`, `${rewardsDir}/publisher/youtube/youtubeBase`, - `${rewardsDir}/publisher/youtube/youtubeAutoContribution`, - `${togetherDir}/confabs/oneOnOneMeetings` + `${rewardsDir}/publisher/youtube/youtubeAutoContribution` ] // We use a bundler (webpack) since the browser does