-
Notifications
You must be signed in to change notification settings - Fork 0
/
banner.js
31 lines (27 loc) · 1021 Bytes
/
banner.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const getPackageJson = require('./scripts/getPackageJson');
const {
version,
name,
repository,
description,
author,
main,
} = getPackageJson('version', 'name', 'description', 'main', 'repository', 'author');
// const mainUrl = 'https://raw.githubusercontent.com/' + repository.url.replace('https://github.com/', '') + '/master/' + main;
const mainUrl = 'https://bigbrowser.santeacademie.com';
const banner = `
// ==UserScript==
// @name ${name}
// @namespace http://tampermonkey.net/
// @version ${version}
// @description ${description}
// @source ${repository.url}
// @author ${author.replace(/ *<[^)]*> */g, " ")}
// @downloadURL ${mainUrl}
// @updateURL ${mainUrl}
// @match https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo/related?hl=fr
// @icon https://assets.website-files.com/5fa997afa489c5171404c70c/60f7e0104650f1a66201de1d_favicon-32.png
// @include http*://*
// ==/UserScript==
`;
module.exports = banner;