You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Any hints or beginner guide about how to get more information? #363
There's a very old general overview of how to write a plugin. It's obsolete in some places, for example there's now cheerio input variable instead of $selector. But it does provide a general idea. It is best to take a look at /plugins folder to see the other plugins as an example.
Basically, for your purpose, you'd need to create a domain plugin in /domains folder and with re node that contains a regex to URLs you'd want to support. Add method getMeta as node of your plugin. The method should return an object with properties description, site, author and date. As in return {description: ..., site: ..., author: ..., date: ...}.
Keep your custom plugins in the folder that you specify as CUSTOM_PLUGINS_PATH in your local config files. See here. And also keep /domains subfolder in that plugins directory.
Activity
iparamonau commentedon Mar 28, 2022
There's a very old general overview of how to write a plugin. It's obsolete in some places, for example there's now
cheerioinput variable instead of$selector. But it does provide a general idea. It is best to take a look at/pluginsfolder to see the other plugins as an example.Basically, for your purpose, you'd need to create a domain plugin in
/domainsfolder and withrenode that contains a regex to URLs you'd want to support. Add methodgetMetaas node of your plugin. The method should return an object with propertiesdescription,site,authoranddate. As inreturn {description: ..., site: ..., author: ..., date: ...}.Keep your custom plugins in the folder that you specify as
CUSTOM_PLUGINS_PATHin your local config files. See here. And also keep/domainssubfolder in that plugins directory.