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

Commit

Permalink
23.10.6
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmaxik committed Oct 6, 2023
1 parent 8b679d3 commit a0389e5
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 38 deletions.
47 changes: 33 additions & 14 deletions README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

> **More Boosty** is a browser extention which improves interface and functions of crowdfunding platform [Boosty](https://boosty.to)
## [--> Support the project on Boosty (RU) <--](https://boosty.to/cjmaxik)
## [--> Support the project on VK.com <--](https://vk.com/donut/iamcjmaxik?ref=more_boosty)

[README на Русском](./README.md)

# Features

* Widescreen page layout
* Force video quality *(for Boosty player)*
* Picture-in-picture *(for Boosty player)*
Expand All @@ -16,23 +18,28 @@
> Screenshots - *see Installation page*
# Installation

**Click [here][1], then click "Add to Chrome"**

[![Chrome Web Store](https://img.shields.io/chrome-web-store/v/kpcbalinpdhnlgonfoflhflnfgcbffbl?color=red&label=Latest+version&logo=google-chrome&logoColor=red&style=for-the-badge)][1]

> - Developed and tested for **Google Chrome**
> - Can be installed on any Chromium browser - Opera (GX), Vivaldi, etc.
> - In Microsoft Edge, click "Allow extensions from other stores" fisrt (is asked)
> * Developed and tested for **Google Chrome**
> * Can be installed on any Chromium browser - Opera (GX), Vivaldi, etc.
> * In Microsoft Edge, click "Allow extensions from other stores" fisrt (is asked)
### Firefox version when?

There are currently no plans to support Firefox.

1. Firefox does not support some crucial functions *(PiP API and background service workers)*.
2. Partial support will require an extensive tooling changes.
3. There is no demand for the Firefox version.

## Honorable mentions
- [fregante](https://github.com/fregante)
- Boosty chat for [StopGame.ru](https://boosty.to/stopgame)

* [fregante](https://github.com/fregante)

* Boosty chat for [StopGame.ru](https://boosty.to/stopgame)

---

Expand All @@ -41,39 +48,51 @@ There are currently no plans to support Firefox.
[![Latest release](https://img.shields.io/github/v/release/cjmaxik/more-boosty?label=Latest+release&logo=github&style=for-the-badge)][2]

## Notes for official releases
- Extension is built and published via [Github Actions](./.github/workflows/release.yml)
- Extension version - build date formatted as `YEAR.MONTH.DAY`

* Extension is built and published via [Github Actions](./.github/workflows/release.yml)

* Extension version - build date formatted as `YEAR.MONTH.DAY`

## Manual build

1. Download [latest release][2] or the whole repository
2. Install Node.js (required version in [package.json](./package.json))
3. Install all dependencies

```js
npm install
```

4. Build the extension

```js
npm run build
```

5. Extension files are in `distribution` folder

> Extension version will be `0.0.0`
## Hot-reload for development (HMR)

1. Start the development server

```js
npm run watch
```

2. *(first time)* [Load](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#load-unpacked) the unpacked extension from `distribution` folder
3. *(if not)* [Reload](https://developer.chrome.com/docs/extensions/mv3/getstarted/development-basics/#reload) the extension manually
4. Open Boosty website in a new tab

### Please note:
- [Background service worker](./source/background/background.js) hot-reloads as usual
- Might require a page reload for content script
- [Content script](./source/content/content.js) requires a page reload
- [Options page](./source/options/options.html) requires a page or extension reload
- Assets (changelog icons) require an extension reload
### Please note

* [Background service worker](./source/background/background.js) hot-reloads as usual
* Might require a page reload for content script

* [Content script](./source/content/content.js) requires a page reload
* [Options page](./source/options/options.html) requires a page or extension reload
* Assets (changelog icons) require an extension reload

[1]: https://chrome.google.com/webstore/detail/more-boosty/kpcbalinpdhnlgonfoflhflnfgcbffbl
[2]: https://github.com/cjmaxik/more-boosty/releases
2 changes: 1 addition & 1 deletion privacy-policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ No data or personal information is collected by More Boosty.

##### Contact

If you have any questions or suggestions regarding this privacy policy, do not hesitate to [contact me](https://boosty.to/cjmaxik).
If you have any questions or suggestions regarding this privacy policy, do not hesitate to [contact me](https://vk.me/iamcjmaxik?ref=more_boosty).
5 changes: 2 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# ![logo](source/assets/icon24.png)ore Boosty

# Бусти заблокировал мой аккаунт без объяснения причин. Обновлений расширения временно не будет

> **More Boosty** - это браузерное расширение, улучшающее интерфейс и функции краудфандинговой платформы [Boosty](https://boosty.to) (Бусти)
~~## [--> Поддержать проект на Бусти <--](https://boosty.to/cjmaxik)~~
## [--> Поддержать проект через VK Donut <--](https://vk.com/donut/iamcjmaxik?ref=more_boosty)

[README in English](./README-EN.md)

# Возможности
Expand Down
7 changes: 5 additions & 2 deletions source/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@
"options_saved": {
"message": "Changes are saved automatically"
},
"options_boosty_link": {
"message": "Support this project on Boosty!"
"options_donut_link": {
"message": "Donate!"
},
"options_support": {
"message": "News and support"
},
"options_github_link": {
"message": "Source code"
Expand Down
7 changes: 5 additions & 2 deletions source/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@
"options_saved": {
"message": "Изменения сохраняются автоматически"
},
"options_boosty_link": {
"message": "Поддержи проект на Бусти!"
"options_donut_link": {
"message": "Задонатить!"
},
"options_support": {
"message": "Новости и поддержка"
},
"options_github_link": {
"message": "Исходный код"
Expand Down
16 changes: 7 additions & 9 deletions source/assets/changelog.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,33 @@
{
"latest": {
"ru": [
"Изменение скорости воспроизведения аудио/видео. Огромное спасибо AnKh99 за идею и первоначальную реализацию!"
"Новые ссылки для донатов и поддержки."
],
"en": [
"Variable audio/video playback rate. Huge thanks to AnKh99 for the idea and initial implementation!"
"New donation and support links."
]
},
"previous": {
"ru": [
"Изменение скорости воспроизведения аудио/видео.",
"Поддержка новой версии сайта.",
"Добавлена поддержка видео на вкладке Медиа.",
"Добавлено уведомление о необходимости перезагрузить браузер при установке расширения."
],
"en": [
"Variable audio/video playback rate.",
"New website version support.",
"Added support for videos on Media tab.",
"Added \"Browser restart required\" notification on extension's install."
]
},
"track": {
"producer": "Kre8r",
"name": "Lost In The Music",
"producer": "музыка Г.Фиртич, слова Е. Чеповецкий",
"name": "Мы бандито, гангстерито",
"links": [
{
"name": "YouTube",
"link": "https://youtu.be/sq4Ywk9pTJY?ref=more_boosty"
},
{
"name": "Spotify",
"link": "https://open.spotify.com/track/27AOEU4YFXsNtL5bOoD1Cj?si=0a2f91e840364bf9&ref=more_boosty"
"link": "https://www.youtube.com/watch?v=rEPvkhgx_Ik?ref=more_boosty"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion source/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ chrome.runtime.onInstalled.addListener((details) => {
chrome.notifications.onButtonClicked.addListener(function (notifId, btnIdx) {
if (notifId === notificationID) {
if (btnIdx === 0) {
chrome.tabs.create({ url: 'https://boosty.to/cjmaxik#mb_update' })
chrome.tabs.create({ url: 'https://boosty.to/#mb_update' })
}
}

Expand Down
15 changes: 13 additions & 2 deletions source/content/templates.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ export const changelogModal = () => `
</div>
<div class="PopupContent_content_A2EA3">
<div>
<h2>⚠️ ВАЖНАЯ ИНФОРМАЦИЯ ⚠️</h2>
<p>
6 октября 2023 года сайт Boosty заблокировал мой блог "в связи с нарушением условий пользования". <strong>Если в донатили мне после 20 сентября, обратитесь к поддержке Бусти за возвратом</strong> - я эти деньги не получил. Если вы хотите продолжать поддерживать проект, оформите донат через VK Donut (кнопка снизу). Новости расширения также будут публиковаться там!
</p>
</div>
<div>
<h2>🎉 ${t('changelog_latest_version')}</h2>
${generateChangelogText('latest', uiLang)}
Expand All @@ -69,8 +76,12 @@ export const changelogModal = () => `
</div>
<div class="ChangePhone_buttons_vP_uE Buttons_root_X0BDd">
<a href="https://boosty.to/cjmaxik?ref=more_boosty" rel="noreferref noopener nofollow" target="_blank" class="BaseButton_button_yO8r5 ContainedButton_button_mJG1l ContainedButton_colorDefault_fJta6">
${t('options_boosty_link')}
<a href="https://vk.com/donut/iamcjmaxik?ref=more_boosty" rel="noreferref noopener nofollow" target="_blank" class="BaseButton_button_yO8r5 ContainedButton_button_mJG1l ContainedButton_colorDefault_fJta6">
${t('options_donut_link')}
</a>
<a href="https://vk.com/iamcjmaxik?ref=more_boosty" rel="noreferref noopener nofollow" target="_blank" class="BaseButton_button_yO8r5 OutlinedButton_button_gVLJD">
${t('options_support')}
</a>
<a href="#" id="MB_optionsButton" class="BaseButton_button_yO8r5 OutlinedButton_button_gVLJD">
Expand Down
2 changes: 1 addition & 1 deletion source/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "More Boosty",
"version": "0.0.0",
"description": "__MSG_description__",
"homepage_url": "https://boosty.to/cjmaxik?ref=more_boosty",
"homepage_url": "https://vk.com/iamcjmaxik?ref=more_boosty",
"manifest_version": 3,
"minimum_chrome_version": "100",
"default_locale": "en",
Expand Down
6 changes: 3 additions & 3 deletions source/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@
<footer class="ms-footer ms-small">
<div class="container">
<p>
<a class="openURL" href="https://boosty.to/cjmaxik#mb_update" data-locale="changelog">
<a class="openURL" href="https://boosty.to/#mb_update" data-locale="changelog">
Changelog
</a> | <a class="openURL ms-text-orange" href="https://boosty.to/cjmaxik?ref=more_boosty" data-locale="options_boosty_link">
Support this project on Boosty!
</a> | <a class="openURL ms-text-orange" href="https://vk.com/donut/iamcjmaxik?ref=more_boosty" data-locale="options_donut_link">
Support this project on VK!
</a> | <a class="openURL ms-text-light" href="https://github.com/cjmaxik/more-boosty?ref=more_boosty" data-locale="options_github_link">
Source code
</a>
Expand Down

0 comments on commit a0389e5

Please sign in to comment.