Skip to content

Commit

Permalink
add getUIConfig to userscript library
Browse files Browse the repository at this point in the history
  • Loading branch information
7dJx1qP committed Feb 12, 2024
1 parent 4d6b8a2 commit 4b75d43
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,18 @@
};
return this.callGQL(reqData);
}
async getUIConfig() {
const reqData = {
"operationName": "Configuration",
"variables": {},
"query": `query Configuration {
configuration {
ui
}
}`
};
return this.callGQL(reqData);
}
matchUrl(location, fragment) {
const regexp = concatRegexp(new RegExp(location.origin), fragment);
this.log.debug(regexp, location.href.match(regexp));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 7dJx1qP's Stash Userscript Library
description: Exports utility functions and a Stash class that emits events whenever a GQL response is received and whenenever a page navigation change is detected
version: 0.39.0
version: 0.40.0
url: https://github.com/7dJx1qP/stash-plugins
ui:
javascript:
Expand Down

0 comments on commit 4b75d43

Please sign in to comment.