Skip to content

Commit 0047009

Browse files
Fenn3c401github-actions[bot]
authored andcommitted
build: auto-generate meta, dist, docs, megascript and readme
1 parent 16eb32f commit 0047009

61 files changed

Lines changed: 4545 additions & 725 deletions

Some content is hidden

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

README.md

Lines changed: 16 additions & 14 deletions
Large diffs are not rendered by default.

userscripts/dist/2dz6ub1t.min.user.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

userscripts/dist/2dz6ub1t.user.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
2-
// @name Trakt.tv | Custom Profile Image
3-
// @description A custom profile image for free users. Like the vip feature, except this one only works locally. Uses the native set/reset buttons and changes the dashboard + settings background as well.
4-
// @version 1.1.4
2+
// @name Trakt.tv | Custom Profile Header Image
3+
// @description A custom profile image for free users. Like the vip feature, except this one only works locally. Uses the native set/reset buttons and changes the dashboard + settings background as well. See README for details.
4+
// @version 1.1.8
55
// @namespace https://github.com/Fenn3c401
66
// @author Fenn3c401
77
// @license GPL-3.0-or-later
@@ -21,13 +21,15 @@
2121
// ==/UserScript==
2222

2323

24+
/* global moduleName */
25+
2426
'use strict';
2527

26-
let $, toastr;
28+
let $;
2729

2830
const logger = {
2931
_defaults: {
30-
title: GM_info.script.name.replace('Trakt.tv', 'Userscript'),
32+
title: (typeof moduleName !== 'undefined' ? moduleName : GM_info.script.name).replace('Trakt.tv', 'Userscript'),
3133
toast: true,
3234
toastrOpt: { positionClass: 'toast-top-right', timeOut: 10000, progressBar: true },
3335
toastrStyles: '#toast-container#toast-container a { color: #fff !important; border-bottom: dotted 1px #fff; }',
@@ -36,7 +38,7 @@ const logger = {
3638
const { title = this._defaults.title, toast = this._defaults.toast, toastrOpt, toastrStyles = '', consoleStyles = '', data } = opt,
3739
fullToastrMsg = `${msg}${data !== undefined ? ' See console for details.' : ''}<style>${this._defaults.toastrStyles + toastrStyles}</style>`;
3840
console[fnConsole](`%c${title}: ${msg}`, consoleStyles, ...(data !== undefined ? [data] : []));
39-
if (toast) toastr[fnToastr](fullToastrMsg, title, { ...this._defaults.toastrOpt, ...toastrOpt });
41+
if (toast) unsafeWindow.toastr?.[fnToastr](fullToastrMsg, title, { ...this._defaults.toastrOpt, ...toastrOpt });
4042
},
4143
info(msg, opt) { this._print('info', 'info', msg, opt) },
4244
success(msg, opt) { this._print('info', 'success', msg, { consoleStyles: 'color:#00c853;', ...opt }) },
@@ -54,8 +56,7 @@ window.addEventListener('turbo:load', () => {
5456
if (!/^\/(shows|movies|users|dashboard|settings|oauth\/(authorized_)?applications)/.test(location.pathname)) return;
5557

5658
$ ??= unsafeWindow.jQuery;
57-
toastr ??= unsafeWindow.toastr;
58-
if (!$ || !toastr) return;
59+
if (!$) return;
5960

6061
const $coverWrapper = $('body.is-self #cover-wrapper'),
6162
$btnSetProfileImage = $('body.is-self #btn-set-profile-image'),

userscripts/dist/2hc6zfyy.min.user.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)