We claim the ornamental design for a detachable shelf for mounting onto televisions and other accessories, as shown and described.
FIG. 1 is a perspective view of a detachable shelf for mounting onto televisions and other accessories showing my new design, the broken line disclosure of a television being for illustrative purposes only and forming no part of the claimed design.