Background
WikimediaMessages adds some links to the infobox on Special:Contributions, via this script, which is loaded via handling the SpecialContributionsBeforeMainOutput hook 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: IP Info accordion should show up on the Special:DeletedContributions.
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
- The feedback link on Special:Block works the same as before (it is also added via SpecialPageBeforeExecute)