Ta i bruk Netthatfilteret

Netthatfilteret skal få flere til å tenke seg grundig om før de publiserer og deler hatefulle kommentarer på nettet. Målet er færre lovbrudd og mindre netthat.
Netthatfilteret kan ikke brukes på kommentarfelt som f.eks. Facebook og Instagram.
Netthatfilteret ligger på GitHub.
Installasjonsveiledning på engelsk:
Basic installation instructions
1. Find the id / selector of your comment field.
- Open up your site and navigate to a page with comments.
- Right click on the comment field and click ‘Inspect’.
- Right click the element in the inspector window, and click Copy > Copy selector.
2. Copy the code below, and modify the settings to fit your needs.
3. Paste the code right before the bottom of the <body> tag on the template page(s) that has comments.
Plugin options
All settings are optional - default are specified below.
field
selector for the textfield you want to targetdefault: ‘#comment’language
the language file to usedefault: ‘no’ // Norwegian
googleAnalytics
google analytics UAexample: “UA-000000-2”
default: N/Acustom
custom wordsexample: [“giraffe”, “cantaloupe”]
default: N/Averbose
enable verbose loggingdefault: false
Typical plugin configuration
<!-- NoHate Plugin -->
<script src="https://cdn.jsdelivr.net/gh/no-hate/no-hate/nohate.min.js"></script>
<script>
NoHate.init({
field: "#comment"
});
</script>
Including the plugin on your site
Paste the code right before the bottom of the <body> tag on the template page(s) that has comments.
Verify that the plugin is working
To verify that the plugin is working, visit your website and enter NoHateVerify
into the targeted textarea and click submit.