Giter Site home page Giter Site logo

zendesk-incident-protector's Introduction

zendesk-incident-protector

GitHub version CircleCI MIT License

Description

Userscript which is useful for prevent replying to customer with specific NG keywords on Zendesk.

Before to install

Install Tampermonkey to your browser

TamperMonkey is required for this userscript.

Set up JSON file for configuration

zendesk-incident-protector.user.js fetches configuration from JSON to define NG keywords.

So you must set up JSON file to configure your protection settings. Here is an example.

{
    "hosts": [
        "aaa.zendesk.com",
        "bbb.zendesk.com"
    ],
    "targetWords": {
        "common": ["hoge", "huga"],
        "aaa.zendesk.com": ["piyo", "huga-\\d+"],
        "bbb.zendesk.com": ["moge"]
    }
}

zendesk-incident-protector.user.js requires configuration with two attributes.

  • hosts : target hosts to protect.
  • targetWords : target words to trigger alert. Words will be selected from common attribute and matched Zendesk host. You can also set regexp pattern. (In example, huga-123 will trigger alert.)

Be sure to minify JSON before uploading.

Install

Just click here.

Then confirmation window of tampermonkey will be displayed on your browser.

Usage

At first, you must define configuration URL with confirm prompt.

Then, zendesk-incident-protector.user.js set NG keyword validator based on configuration.

When you attempt to send reply to customer, validator will check contents and show alert if contents include NG keyword.

FAQ

How to redefine configuration URL?

Configuration URL is stored on localStorage of your browser. So you can reset URL by clear cache on browser, or type below on developer console.

localStorage.removeItem("zendeskIncidentProtectorConfigURL");

Author

XFLAG Studio CRE Team

zendesk-incident-protector's People

Contributors

hashijun avatar dependabot[bot] avatar namijin avatar upscent avatar

Stargazers

Yuto Kondo avatar py0n avatar

Watchers

py0n avatar Mutsutoshi Yoshimoto avatar Tatsuma Murase avatar James Cloos avatar Junpei YOSHINO avatar YuukiARIA avatar sudix avatar Yosuke Tamura avatar  avatar  avatar  avatar Fumihiro Ito avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.