rualark / Diff Highlighter

Published:

Version: 2.7+e1c4518 updated

License: MIT

Detects a diff format in a page and highlights word-level differences in it:

--- 1.txt	2020-03-16 12:23:25.572538663 +0300
+++ 2.txt	2020-03-16 12:23:26.948549216 +0300
@@ -1,2 +1,2 @@
-This is initial text.
+This is initial (edited) text.
 This line was not changed!

Example:

Example

Also understands this diff format:

E   AssertionError: At file:
E     Expected `'Some strange text'`, got `u'Other strange text'`

Make sure your url matches one of include patterns of script.

Requires Greasemonkey or Tampermonkey plugin in your browser.

This plugin also includes LogHighlighter: https://openuserjs.org/scripts/rualark/Log_Highlighter

Limitations:

  • Only highlights pairs of removed/added lines

Uses https://cdnjs.com/libraries/jsdiff

Rating: 0