Skip to content

Commit

Permalink
add GM_getValue
Browse files Browse the repository at this point in the history
  • Loading branch information
mchangrh committed Oct 5, 2022
1 parent 4423607 commit 4142feb
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 53 deletions.
5 changes: 3 additions & 2 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ function defaultMerge (minify = true) {

function userscript() {
const header = fs.readFileSync(headerFile, 'utf8')
const body = defaultMerge(false)
fs.writeFileSync("docs/sb.user.js", header + body)
const gmConfig = fs.readFileSync("src/gm_config.js", 'utf8')
const body = fs.readFileSync(bodyFile, 'utf8')
fs.writeFileSync("docs/sb.user.js", header + gmConfig + body)
console.log("userscript done")
}

Expand Down
5 changes: 3 additions & 2 deletions build/header.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
// @namespace mchang.name
// @homepage https://github.com/mchangrh/sb.js
// @icon https://mchangrh.github.io/sb.js/icon.png
// @version 1.2.3
// @version 1.2.4
// @license LGPL-3.0-or-later
// @match https://www.youtube.com/watch*
// @connect sponsor.ajay.app
// @grant none
// @grant GM_setValue
// @grant GM_getValue
// ==/UserScript==
2 changes: 1 addition & 1 deletion build/loader-header.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @namespace mchang.name
// @homepage https://github.com/mchangrh/sb.js
// @icon https://mchangrh.github.io/sb.js/icon.png
// @version 1.2.3
// @version 1.2.4
// @license LGPL-3.0-or-later
// @match https://www.youtube.com/watch*
// @connect sponsor.ajay.app
Expand Down
2 changes: 1 addition & 1 deletion docs/sb-loader.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// @namespace mchang.name
// @homepage https://github.com/mchangrh/sb.js
// @icon https://mchangrh.github.io/sb.js/icon.png
// @version 1.2.3
// @version 1.2.4
// @license LGPL-3.0-or-later
// @match https://www.youtube.com/watch*
// @connect sponsor.ajay.app
Expand Down
2 changes: 1 addition & 1 deletion docs/sb-nosettings.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/sb.bookmarklet.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/sb.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ https://github.com/mchangrh/sb.js
Uses SponsorBlock data licensed used under CC BY-NC-SA 4.0 from https://sponsor.ajay.app/
LICENCED UNDER LGPL-3.0-or-later */
const VERSION = "1.2.3" // version constant
const VERSION = "1.2.4" // version constant

// initial setup
let video, videoID, muteEndTime
Expand Down
Loading

0 comments on commit 4142feb

Please sign in to comment.