Skip to content

Commit 2c4868d

Browse files
committed
only keep Markdown source in this repo
1 parent a10d4f6 commit 2c4868d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+14
-15257
lines changed

.browserslistrc

-2
This file was deleted.

.eslintignore

-2
This file was deleted.

.eslintrc.js

-21
This file was deleted.

.github/workflows/deploy.yml

-29
This file was deleted.

.github/workflows/preview.yml

-43
This file was deleted.

.npmrc

-1
This file was deleted.

README.md

+3-13
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,7 @@ This is the website of Violentmonkey.
55
## Structure
66

77
```
8-
├── content
9-
│ ├── api
10-
│ ├── faq
11-
│ ├── ...
12-
│ └── posts # blog posts about Violentmonkey
13-
└── src # theme
14-
```
15-
16-
## Development
17-
18-
```bash
19-
$ yarn
20-
$ yarn dev
8+
└── content
9+
├── pages
10+
└── posts # blog posts about Violentmonkey
2111
```

babel.config.js

-13
This file was deleted.

content/api/gm.md renamed to content/pages/api/gm.mdx

-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
11
---
22
title: Privileged APIs
33
date: 2018-04-25 15:15:15
4-
path: "/api/gm/"
5-
redirect_from:
6-
- /api/
74
sidebar:
8-
match: /api/
95
order: 0
106
---
117

12-
import { Field } from '@/components/field';
13-
import { InfoBox } from '@/components/box';
14-
158
Violentmonkey APIs are derived from those in Greasemonkey v3, and most of them work the same way, `GM.*` [Greasemonkey v4-compatible](https://wiki.greasespot.net/Greasemonkey_Manual:API) aliases were added in VM2.12.0.
169

1710
## unsafeWindow
File renamed without changes.

content/api/matching.md renamed to content/pages/api/matching.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
---
22
title: Matching
33
date: 2017-12-2 22:32:50
4-
path: "/api/matching/"
54
sidebar:
6-
match: /api/
75
order: 2
86
---
97

content/api/metadata-block.md renamed to content/pages/api/metadata-block.mdx

-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
---
22
title: Metadata Block
33
date: 2017-12-02 21:20:04
4-
path: "/api/metadata-block/"
54
sidebar:
6-
match: /api/
75
order: 1
86
---
97

10-
import { Label, LabelGroup } from '@/components/label';
11-
128
The metadata must follow the format:
139
```js
1410
// ==UserScript==
File renamed without changes.

content/get-it/index.md renamed to content/pages/get-it/index.mdx

-16
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ title: Get Violentmonkey
33
date: 2017-03-13 18:16:24
44
---
55

6-
import InstallStable from '@/components/install-stable.mdx';
7-
import InstallBeta from '@/components/install-beta.mdx';
8-
96
Violentmonkey is built with WebExtension APIs. It supports a lot of browsers.
107

118
You can either install it from web stores or build from source code.
@@ -31,19 +28,6 @@ However it may have bugs and lead to data loss. Please **back up your data** and
3128

3229
---
3330

34-
## Maxthon
35-
36-
Maxthon 4 and 5.
37-
38-
<div className="button-list" data-ga-category="maxthon">
39-
40-
- [![Maxthon](../../src/assets/browsers/maxthon.png) Maxthon extensions](http://extension.maxthon.com/detail/index.php?view_id=1680)
41-
- [![GitHub](../../src/assets/github.png) GitHub Releases](https://github.com/violentmonkey/violentmonkey-mx/releases)
42-
43-
</div>
44-
45-
---
46-
4731
## Not above?
4832

4933
Unfortunately your browser may be unable to support such extensions.

content/guide/creating-a-userscript/index.md renamed to content/pages/guide/creating-a-userscript/index.md

-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
---
22
title: Creating a userscript
33
date: 2020-03-08 18:33:51+0800
4-
redirect_from:
5-
- /guide/
64
sidebar:
7-
match: /guide/
85
order: 0
96
---
107

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

-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
title: Keyboard Shortcuts
33
date: 2022-07-29 01:03:04+0800
44
sidebar:
5-
match: /guide/
65
order: 3
76
---
87

9-
import { InfoBox } from '@/components/box';
10-
118
It is a common case to provide a keyboard shortcut for a function in a userscript.
129

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

content/guide/observing-dom/index.md renamed to content/pages/guide/observing-dom/index.md

-3
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
title: Observing DOM
33
date: 2021-02-17 23:16:49+0800
44
sidebar:
5-
match: /guide/
65
order: 2
76
---
87

9-
import { InfoBox } from '@/components/box';
10-
118
## Background
129

1310
It is a common case to operate on elements that are created dynamically, which may not be ready even on `document-end`.

content/index.md renamed to content/pages/index.mdx

+5-13
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
1-
---
2-
title: Violentmonkey
3-
date: 2017-03-13 18:15:24
4-
---
5-
6-
import ProjectInfo from '../src/components/project-info';
7-
import InstallStable from '@/components/install-stable.mdx';
8-
91
<ProjectInfo title="Violentmonkey" subtitle="An open source userscript manager." />
102

11-
<div className="home-buttons" data-ga-category="home-buttons">
12-
<a href="/get-it/" className="button-primary" data-ga-label="get-started">Get Started</a>
13-
<a href="https://github.com/violentmonkey/violentmonkey" className="button-gray" target="_blank" rel="noopener noreferrer" data-ga-label="github">GitHub</a>
3+
<div class="home-buttons" data-ga-category="home-buttons">
4+
<a href="get-it/" class="button-primary" data-ga-label="get-started">Get Started</a>
5+
<a href="https://github.com/violentmonkey/violentmonkey" class="button-gray" target="_blank" rel="noopener noreferrer" data-ga-label="github">GitHub</a>
146
</div>
157

168
Violentmonkey provides userscripts support for browsers.
179

1810
## Features
1911

20-
<div className="home-features">
12+
<div class="home-features">
2113

2214
- Powerful
2315
- Customize web pages.
@@ -31,7 +23,7 @@ Violentmonkey provides userscripts support for browsers.
3123

3224
</div>
3325

34-
<div className="px-4 pt-6 pb-4 bg-gray-100 text-gray-600">
26+
<div class="px-4 pt-6 pb-4 bg-gray-100 text-gray-600">
3527

3628
**Note:** This extension does not contain any ads and does not modify web pages automatically.
3729
Any changes and modifications on the sites are done by installed scripts.

content/localization/index.md renamed to content/pages/localization/index.md

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

6+
import { InfoBox } from '@/components/box';
7+
68
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.
79

810
We have automated weekly synchronization from Transifex, so the translations will be updated to the code soon.
@@ -20,8 +22,10 @@ We have automated weekly synchronization from Transifex, so the translations wil
2022
1. Copy `src/_locales/en/messages.yml` into `src/_locales/<your_locale>/messages.yml`.
2123
1. Translate messages in the created `messages.yml` or the one you'd like to modify.
2224

23-
**Make sure the modified `messages.yml` is valid yaml.**
25+
<InfoBox>
26+
**Make sure the modified `messages.yml` is valid yaml.**
2427

25-
If you are not sure how to do this, please use Transifex instead.
28+
If you are not sure how to do this, please use Transifex instead.
29+
</InfoBox>
2630

2731
1. Commit changes and create a pull request.
File renamed without changes.

content/posts/how-to-edit-scripts-with-your-favorite-editor/index.md

-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ title: How to edit scripts with your favorite editor?
33
date: 2017-03-14 14:37:09
44
tags:
55
- editor
6-
- crx
7-
- nex
8-
- oex
9-
- mx
10-
path: /posts/how-to-edit-scripts-with-your-favorite-editor/
11-
redirect_from:
12-
- /2017/03/14/How-to-edit-scripts-with-your-favorite-editor/
136
---
147

158
Since Violentmonkey is a lightweight script manager by design, its editor is simple and offers just a few options. It doesn't try to replicate a full-featured editor or IDE, which is problematic anyway due to browser's hardcoded hotkeys and other restrictions.

gatsby-browser.js

-71
This file was deleted.

0 commit comments

Comments
 (0)