-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
59 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,57 @@ via telegram personal https://t.me/whatisclown | |
|
||
## Development | ||
|
||
`npm run dev` | ||
1. one terminal session for `npm run server` | ||
1. one terminal session for `npm run dev` | ||
1. add new script in tempermonkey with | ||
```js | ||
// ==UserScript== | ||
// @name Better etoro UI for Developer | ||
// @description 提供你更好的 etoro 新台幣介面增強懶人包 | ||
// @version 0.1.0 | ||
// @author hilezir | ||
// @grant GM_xmlhttpRequest | ||
// @grant GM_addStyle | ||
// @grant unsafeWindow | ||
// @match https://*.etoro.com/* | ||
// @match https://etoro.com/* | ||
// @run-at document-idle | ||
// @noframes | ||
// @namespace http://tampermonkey.net/ | ||
|
||
// Xrequire https://www.googletagmanager.com/gtag/js?id=UA-60395189-2 | ||
// Xconnect www.googletagmanager.com | ||
// Xconnect www.google-analytics.com | ||
|
||
///////////////////** 開源程式碼庫 */ | ||
// @connect cdn.jsdelivr.net | ||
// @connect cdnjs.cloudflare.com | ||
|
||
///////////////////** 台灣臺灣銀行 */ | ||
// @connect bot.com.tw | ||
|
||
///////////////////** 馬國大眾銀行 */ | ||
// @connect www.pbebank.com | ||
|
||
///////////////////** 本地開發專用 */ | ||
// @connect 127.0.0.1 | ||
// ==/UserScript== | ||
|
||
console.info('loading... etoro-better-ui') | ||
|
||
window.GM_xmlhttpRequest({ | ||
url: 'http://127.0.0.1:8087/etoro.bundle.js?' + new Date().getTime(), // 開發模式 | ||
// url: 'https://cdn.jsdelivr.net/gh/hilezir/[email protected]/src_dist/etoro.bundle.js', | ||
onload: event => { | ||
eval(event.responseText) | ||
}, | ||
}) | ||
``` | ||
1. make sure be enabled it script | ||
|
||
## Deploy & Release | ||
|
||
1. change version string in package.json | ||
1. bump version string in package.json | ||
2. `npm run build` | ||
3. `git release v1.0.0` | ||
4. [release](https://github.com/hilezir/etoro-better-ui/releases) on github | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.