Skip to content

Commit 196814a

Browse files
committed
doc: add warning for mv2 deprecation
1 parent 4ad2eb1 commit 196814a

File tree

6 files changed

+30
-28
lines changed

6 files changed

+30
-28
lines changed

content/pages/api/gm.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,9 @@ Returns the command's `caption` since VM2.12.5 or `id` since VM2.15.9.
386386
* <Field name="autoClose?" type="boolean" defaultValue="true" />
387387
Whether to auto-close the popup after the user invoked the command.
388388

389-
<InfoBox>
390-
If you want to add a shortcut, please refer to [keyboard shortcut](/guide/keyboard-shortcuts/#shortcut-for-menu-command).
391-
</InfoBox>
389+
> [!TIP]
390+
>
391+
> If you want to add a shortcut, please refer to [keyboard shortcut](/guide/keyboard-shortcuts/#shortcut-for-menu-command).
392392
393393
Here's how you can change the command in-place, thus preserving its relative position in the list of multiple commands:
394394
```js
@@ -604,7 +604,7 @@ let control = GM_xmlhttpRequest(details)
604604

605605
Each event handler is a *function* that accepts one argument `responseObject`
606606

607-
> Note:
607+
> [!NOTE]
608608
>
609609
> - `synchronous` is not supported.
610610

content/pages/guide/keyboard-shortcuts/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ It is a common case to provide a keyboard shortcut for a function in a userscrip
99

1010
We provided an easy way to achieve this by introducing [@violentmonkey/shortcut][vm-shortcut].
1111

12-
<InfoBox>
13-
Note: [@violentmonkey/shortcut][vm-shortcut] is a library provided by the Violentmonkey team, but it is just JavaScript and can be used with other script managers as well. You can find the API reference in its README page.
14-
</InfoBox>
12+
> [!TIP]
13+
>
14+
> [@violentmonkey/shortcut][vm-shortcut] is a library provided by the Violentmonkey team, but it is just JavaScript and can be used with other script managers as well. You can find the API reference in its README page.
1515
1616
## Preparation
1717

content/pages/guide/observing-dom/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ You can stop reading this now if you are familiar with `MutationObserver` and pr
1919

2020
If you are looking for an easy and friendly way to observe elements, [@violentmonkey/dom][vm-dom] might be what you want.
2121

22-
<InfoBox>
23-
[@violentmonkey/dom][vm-dom] is a library provided by the Violentmonkey team. Nevertheless, it is just pure JavaScript and can be used with other script managers.
24-
</InfoBox>
22+
> [!TIP]
23+
>
24+
> [@violentmonkey/dom][vm-dom] is a library provided by the Violentmonkey team. Nevertheless, it is just pure JavaScript and can be used with other script managers.
2525
2626
Once the library is required, we can use its methods under the `VM` namespace. See [the documentation](https://www.jsdocs.io/package/@violentmonkey/dom) for more details.
2727

content/pages/index.mdx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ Violentmonkey provides userscripts support for browsers.
2323

2424
</div>
2525

26-
<div class="px-4 pt-6 pb-4 bg-gray-100 text-gray-600">
27-
28-
**Note:** This extension does not contain any ads and does not modify web pages automatically.
29-
Any changes and modifications on the sites are done by installed scripts.
30-
Therefore, please install only scripts that you trust.
31-
32-
</div>
26+
> [!NOTE]
27+
> This extension does not contain any ads and does not modify web pages automatically.
28+
> Any changes and modifications on the sites are done by installed scripts.
29+
> Therefore, please install only scripts that you trust.
30+
31+
> [!WARNING]
32+
> This extension is **no longer supported on Chrome** due to its Manifest V2 architecture. While a Manifest V3 rewrite might be considered in the future, it is not planned for the foreseeable future due to the considerable effort involved and the potential for losing existing features.
33+
>
34+
> As an alternative, consider using [Brave](https://brave.com/) browser which is also open source, where you can install it from the Chrome Web Store.
3335
3436
## Installation
3537

content/pages/localization/index.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Localization
33
date: 2017-03-13 20:07:10
44
---
55

6-
import { InfoBox } from '@/components/box';
7-
86
It is highly recommended to update the translations on [Transifex](https://www.transifex.com/), to utilize the powerful features provided by the platform and for better maintenance.
97

108
We have automated weekly synchronization from Transifex, so the translations will be updated to the code soon.
@@ -16,16 +14,16 @@ We have automated weekly synchronization from Transifex, so the translations wil
1614

1715
## Pull Requests
1816

19-
*Please consider using Transifex first.*
17+
_Please consider using Transifex first._
2018

2119
1. Fork Violentmonkey from [GitHub](https://github.com/violentmonkey/violentmonkey).
2220
1. Copy `src/_locales/en/messages.yml` into `src/_locales/<your_locale>/messages.yml`.
2321
1. Translate messages in the created `messages.yml` or the one you'd like to modify.
2422

25-
<InfoBox>
26-
**Make sure the modified `messages.yml` is valid yaml.**
27-
28-
If you are not sure how to do this, please use Transifex instead.
29-
</InfoBox>
23+
> [!IMPORTANT]
24+
>
25+
> **Make sure the modified `messages.yml` is valid yaml.**
26+
>
27+
> If you are not sure how to do this, please use Transifex instead.
3028
3129
1. Commit changes and create a pull request.

content/posts/features-in-userscript-generator.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ path: /posts/features-in-userscript-generator/
66

77
[Userscript Generator](https://github.com/violentmonkey/generator-userscript) is a Yeoman generator to quickly initiate a new project for a userscript.
88

9-
<InfoBox>
10-
See [Using modern syntax](/guide/using-modern-syntax/) for the usage.
11-
</InfoBox>
9+
> [!TIP]
10+
>
11+
> See [Using modern syntax](/guide/using-modern-syntax/) for the usage.
1212
1313
In this post we will dive into each feature and see why and how we use it, and whether we have different choices.
1414

@@ -46,10 +46,12 @@ However, SolidJS doesn't have an official UMD or IIFE package. In other words, t
4646
We have several options here:
4747

4848
- Option 1: import it and bundle it in the userscript.
49+
4950
- Pros: Simple to go.
5051
- Cons: **Bloated userscript size and worse readability**.
5152

5253
- Option 2: import it using dynamic import at runtime.
54+
5355
- Pros: Better readability, smaller file size.
5456
- Cons: **An obvious delay before the UI appears**.
5557
- Suggestion: If the delay is acceptable, this might be a good choice.

0 commit comments

Comments
 (0)