Adding a bunch of hooks from wikiHow into DifferenceEngine
authorJack Phoenix <jack@countervandalism.net>
Tue, 21 Jun 2016 18:36:21 +0000 (21:36 +0300)
committerJack Phoenix <jack@countervandalism.net>
Tue, 21 Jun 2016 19:19:03 +0000 (22:19 +0300)
commitb02bfac06b04fd0284faa785f932792ce9bb93ae
tree1560c87139b338cefe5d7935e93e18103e6513f0
parent2c10ff9a9c1164e0c0a795bb53c29aa05004290a
Adding a bunch of hooks from wikiHow into DifferenceEngine

These hooks allow things such as:
* adding CSS(/JS) into the OutputPage when viewing diffs
* adding extra HTML content (such as avatars) into diff views
* hiding the bottom "mark as patrolled" link
* altering the parser output that is used by DifferenceEngine
* and more

Example extension using these hooks is wikiHow's
/extensions/wikihow/hooks/, specifically the file DiffHooks.php (but the
hooks are setup in WikihowHooks.php).

Live example of the DiffHooks stuff in action can be found at wikiHow.com,
for example:
http://www.wikihow.com/index.php?title=Set-Your-Homepage&diff=17112892&oldid=15888129
(user avatars, additional CSS, changes to the old/new revision header
texts/links)

Change-Id: Icbc987fa4806e7bfc66743375301912b428dc348
docs/hooks.txt
includes/diff/DifferenceEngine.php