User:Technical 13/Scripts/OrphanStatus

This script runs while viewing pages in article space that are tagged with Orphan or some version of it (anything that has ended up in Category:Orphaned articles) and gives the orphan status of the page by checking the number of incoming links. If there is at least one incoming link from article space (it will offer a link to "other pages" which is a filtered WhatLinksHere so you can see exactly which articles), then there will be a deOrphan link. Clicking that link will try and remove the Orphan tag from the page. When the attempt (successful or not) is completed it will either give a link to load only the diff of the edit (in cases where it detected the old syntax for Multiple issues which it has trouble with in some cases) or links to reload or view the diff.

On the English Wikipedia
This script can be imported to skin.js or common.js by adding:

Step two
Once you have saved the above to your common.js, you will have to WP:BYPASS your cache to see the effects.