Remove Snaglist
How-to
Snaglist keeps everything in one file, one element and one saved setting, so removing it leaves nothing behind.
Steps
- Delete the
<script>tag that loadssnaglist.jsfrom your pages, and anySnaglist.start()call. - Delete any other Snaglist code: your users' switch (Add a switch for your users)
and any
Snaglist.calls. - Delete
snaglist.jsandsnaglist-start.js(if you made one with the set-up tool) from your site's files. - Remove the
data-snag-privateattributes. Keep thedata-componentattributes if they help your tests; they do nothing on their own. - Search your project for
snaglistandsnag-to check nothing is left. With Git, this command lists any file that still mentions it:
git grep -n -i -e snaglist -e "snag-"
- Publish your site and check that Send feedback has gone.
Things to note
- Each browser that used it keeps one small setting,
snaglist:off, only if the person deactivated the button. To clear it while Snaglist is still installed, runSnaglist.destroy({ forget: true })on the page first. - Reports already sent stay where they went: GitHub issues, emails or your server.
- To stop it for a while without removing it, read Activate or deactivate Snaglist for everyone.