Skip to content

lyxal/WatchScribe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WatchScribe

Direct Install


A handy dandy tool to generate regexes for smokey to watch.

Requires FIRE to operate.

How to Use

When viewing a report with FIRE, the WatchScribe widget will be at the bottom of the report:

image

For a comprehensive list of the different types of commands WatchScribe can generate, you can go to the Generation Heuristics page.

Normal Text Regexes

You can select text and click "Generate Regex" to add a watch command for that text to the regex list:

image image

Link Regexes

You can also select any part of a link and it will create commands for the link URL and the link text (if it isn't a URL itself):

image image

Further, if it looks like a link ends with an ID (like a t.co link), a case-insensitive regex will be generated with a comment containing the parent domain

image

Selecting any part of the end of a link will also generate a case-insensitive regex.

Freeform Regexes

Additionally, you can type any keyword you want and click "Add to list":

image image

Sending Regexes to Chat

You can send any individual regex to chat by clicking the "Send to chat" button next to each regex. Alternatively, you can click "send all to chat" to send each one individually. This may lead to chat timeouts.

Phone Number Watching

Furthermore, you can select a phone number to get corresponding number watching/blacklisting commands:

image image

Switching Between Watch and Blacklist

You can also make commands generate as their blacklist counterparts by switching to blacklist mode:

image

Toggle Whether - is Appended to Commands

You can also silence or unsilence commands with the silent switch:

image

Case Insensitive Regexes

Hold shift when clicking the "Generate Regex" button to make plain text commands wrap in (?i-:):

image

On mobile, holding down the generate regex button will toggle case insensitivity mode until next tap.

Deleting Regexes

You can remove individual regexes from the list by clicking the red delete button:

image

Anchor Regex Button

The anchor button wraps a regex in ^$:

image

Keyboard Shortcuts

You can press ] to enter regex sending mode:

image

Pressing the key shown at the beginning of the regex will send that regex to chat. Pressing enter will send the top of the list, and then remove that regex from the list. Pressing Tab in regex sending mode will send all regexes.

Additionally:

  • w Enter watch mode
  • b Enter blacklist mode
  • / Toggle current command mode
  • - Toggle silent mode
  • Tab Generate regex for selected text
  • Enter (when inside custom text box) Generate from input box
  • ] Enable/Disable keyboard shortcut regex sending
  • ` Toggle the last generated regex(es) between watch and blacklist mode
  • c Clear the regex list

Positive Lookbehinds

If you select text from a report or enter text in the input box that matches the hostname of an already generated URL, the system will create a variant of the text regex that includes a positive lookbehind for that URL.

About

A handy dandy tool to generate regexes for smokey to watch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors