Ta i bruk Netthatfilteret

Mockup

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.

  1. Open up your site and navigate to a page with comments.
  2. Right click on the comment field and click ‘Inspect’.
  3. 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 use

    default: ‘no’ // Norwegian

  • googleAnalytics
    google analytics UA

    example: “UA-000000-2”
    default: N/A

  • custom
    custom words

    example: [“giraffe”, “cantaloupe”]
    default: N/A

  • verbose
    enable verbose logging

    default: 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.