Ability to mark shreds as similar/from the same page

wtf?
First of all it's broken on all other pages?
Second, it's shitty way to pass data from backend to frontend (use data-* attribute and tojson like in shreds.html)
Third, I'm not sure we need that at all if we will establish backlink from shreds to pages