==== Background
WikimediaMessages adds some links to the infobox on Special:Contributions, via [[ https://gerrit.wikimedia.org/g/mediawiki/extensions/WikimediaMessages/+/a4491695aebd8928985ae249463f175f2d084da2/modules/ext.wikimediaMessages.ipInfo.hooks/infobox.js | this script ]], which is loaded via handling the `SpecialContributionsBeforeMainOutput` hook [[ https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikimediaMessages/+/a4491695aebd8928985ae249463f175f2d084da2/includes/Hooks.php#1767 | here ]].
As the hooks's name would suggest, this is only run on Special:Contributions, and not Special:DeletedContributions. Therefore, these links would not show in the infobox added in {T318463}.
We can instead use the `SpecialPageBeforeExecute` hook for both pages.
==== Acceptance criteria
[] WikimediaMessages adds the same links to Special:Contributions and Special:DeletedContributions
[] WikimediaMessages adds the same links to Special:Contributions as it did before this task