Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
mkdocs-ko-fi-button-plugin
Advanced tools
Ko-fi button is a simple plugin that let's you add a Ko-fi button with markdown.
An MkDocs plugin that let's you easily add a Ko-fi buttons with markdown
The plugin looks for Jinja style tags like {{ko-fi}}
and replaces it with a Ko-fi button. It is possible to configure the text and color of the button.
Install the plugin using pip:
pip install mkdocs-ko-fi-button-plugin
Activate the plugin in mkdocs.yml
:
plugins:
- search
- ko-fi-button
id
- Your Ko-fi ID. Can be found on your Ko-fi profile.type
- The type of button. Valid values are "widget" or "image". Default: widgetcolor
- The color of the button.
type == 'widget'
: In hex format. Default: #29abe0type == 'image'
: Either "blue", "bluegray", "red", "green" or "black". Default: bluegraytext
- The text on the Ko-fi button.
type == 'widget'
: Default: "Support Me on Ko-fi"type == 'image'
: Whatever text they have in the image.For example:
plugins:
- search
- ko-fi-button:
id: "my_id"
text: "My cool text"
color: "#547884"
Note: Some MkDocs theme CSS conflicts with the widget styling. If that is the case and you cannot or will not update the CSS, the type
config is useful. Set that to "image" and it should render properly. There will be no wiggly coffe mug though.
In case the Ko-fi javascript is changed on the server side it is possible to configure the path and function calls. This will make it possible to still be able to get a working Ko-fi button widget until this plugin has been updated.
javascript_path
- The relative path to the javascript from https://ko-fi.com/. Default: "widgets/widget_2.js"javascript_f1
- The init function. Default: "kofiwidget2.init"javascript_f2
- The draw function. Default: "kofiwidget2.draw"Note: These config options are only valid if type
is set to "widget". They are ignored otherwise.
FAQs
Ko-fi button is a simple plugin that let's you add a Ko-fi button with markdown.
We found that mkdocs-ko-fi-button-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.