GithubHelp home page GithubHelp logo

k-plus-plus's Introduction

K++

A userscript that adds some tweaks to Kongregate's chat

Features

1. Toggles chat width (enlarge/restore):

  • automatically - at script execution (e.g. by clicking the bookmark if the script is run as a bookmarklet).
  • manually - with the corresponding cog wheel menu entry

2. Adds a search bar (above chat) to search chat messages:

  • matching messages get a pink background to facilitate recognition
  • new messages that match the search criteria automatically get the pink background
  • filter the user list by clicking the user button next to the search bar.
  • Shortcuts when the cursor is inside the search bar:
    • Escape key - clears the search key and restores the list
    • TAB key - toggles between user filtering and search bar mode
  • 'Room' chat has its own search bar

3. URLs in chat messages are automatically converted into interactive hyperlinks:

  • click to open in a new tab

4. Optionally hides chat messages' timestamps or makes them visible when the mouse cursor hovers over chat messages:

  • change mode via the corresponding cog wheel menu entry
  • the mode is memorized in localStorage

5. Optionally saves 'Game' chat to localStorage every 8 messages and autosaves chat (if changed) after a configurable amount of chat inactivity time

6. Additional cog wheel menu entries:

  • "Timestamps"
    • Set: Fixed (default)
    • Set: Dynamic
    • Set: Off
  • "Toggle chat width"

Installation

Recommended way:

  1. Install a userscript manager
  1. Install the script from github

Other ways (choose one):

โš ๏ธ If you are not installing the script in the Recommended way, remove the UserScript comments (first 10 lines).
The script should start with:
javascript: (function() {

  • Run the script from a bookmark. To do so, create a new bookmark in your browser with the js code as the "URL"
  • Copy and Paste the whole script in the browser's Console and press "Enter"
  • (Chrome) Run the script from the Snippets within the Sources panel of Chrome DevTools. To do so, follow the instructions available at: https://developers.google.com/web/tools/chrome-devtools/snippets
  • (Chrome) Run the script from a folder. To do so, follow the instructions available at: http://stackoverflow.com/a/10612311

See also

See Contributing for additional information on building and contributing to K++.

k-plus-plus's People

Contributors

adored0ne 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.