Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hiperdex : url as setting #5463

Merged
merged 4 commits into from
Feb 17, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion src/web/mjs/connectors/Hiperdex.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,29 @@ export default class Hiperdex extends WordPressMadara {
super.id = 'hiperdex';
super.label = 'Hiperdex';
this.tags = [ 'hentai', 'webtoon', 'english' ];
this.url = 'https://hiperdex.com';
this.config = {
MikeZeDev marked this conversation as resolved.
Show resolved Hide resolved
url: {
label: 'URL',
description: 'This website changes their URL regularly.\nThis is the last known URL which can also be manually set by the user.',
input: 'text',
value: 'https://1sthiperdex.com'
}
};
}

get url() {
return this.config.url.value;
}

set url(value) {
MikeZeDev marked this conversation as resolved.
Show resolved Hide resolved
if (this.config && value) {
this.config.url.value = value;
Engine.Settings.save();
}
}

canHandleURI(uri) {
return this.url.includes(uri.hostname);
}

}