Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Opting to use stylesheets over javascript logic for the majority of t…
Browse files Browse the repository at this point in the history
…he hiding function
  • Loading branch information
probablyraging committed Jun 20, 2023
1 parent 01e0ac4 commit 00b3647
Show file tree
Hide file tree
Showing 68 changed files with 1,052 additions and 1,132 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Hide YouTube Shorts
[![Chrome Web Store Users](https://img.shields.io/chrome-web-store/users/aljlkinhomaaahfdojalfmimeidofpih?color=%233694ff&label=users&style=for-the-badge)](https://chrome.google.com/webstore/detail/hide-youtube-shorts/epgdblohfbmigelolmilnjhaoikmjdan)
[![Chrome Web Store Rating](https://img.shields.io/chrome-web-store/rating/aljlkinhomaaahfdojalfmimeidofpih?color=%239c61d4&style=for-the-badge)](https://chrome.google.com/webstore/detail/hide-youtube-shorts/epgdblohfbmigelolmilnjhaoikmjdan)
[![Chrome Web Store Rating](https://img.shields.io/github/v/release/probablyraging/hide-youtube-shorts?color=%23ed8c32&style=for-the-badge)](https://chrome.google.com/webstore/detail/hide-youtube-shorts/epgdblohfbmigelolmilnjhaoikmjdan)
[![Chrome Web Store Rating](https://img.shields.io/github/license/probablyraging/hide-youtube-shorts?color=%2337b855&style=for-the-badge)](https://chrome.google.com/webstore/detail/hide-youtube-shorts/epgdblohfbmigelolmilnjhaoikmjdan)

Hide YouTube Shorts videos effortlessly with this powerful browser extension

Expand Down
30 changes: 30 additions & 0 deletions build.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import fs from 'fs';

const sourceDir = './src/constants/stylesheets';
const destinationDir = './dist/assets';

const filesToCopy = [
'channel_shorts_tab.css',
'home_lives.css',
'home_premieres.css',
'home_shorts.css',
'home_tab_shorts.css',
'navigation_button.css',
'notification_shorts.css',
'recommended_shorts.css',
'search_shorts.css',
'subscriptions_feed_fix.css',
'subscriptions_lives.css',
'subscriptions_premieres.css',
'subscriptions_shorts.css',
'subscriptions_shorts_list.css',
'trending_shorts.css'
];

filesToCopy.forEach((file) => {
const sourceFile = `${sourceDir}/${file}`;
const destinationFile = `${destinationDir}/${file}`;

fs.copyFileSync(sourceFile, destinationFile);
console.log(`Copied ${sourceFile} to ${destinationFile}`);
});
2 changes: 1 addition & 1 deletion dist/assets/ModalDisplay.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 00b3647

Please sign in to comment.