How do I partially hide Ajax supplied content?
Please see the Civi JavaScript reference , specially this:

CRM.$(function($) {

// Your code here

 });



  Remember that CRM.$ is our alias of jQuery. So the first line is shorthand notation for CRM.$('document').ready(function($) {
  The function receives jQuery as it's param, so now we have access to jQuery as the familiar $ for use in our code.


Also make sure you are targeting the right template:  CRM/Contact/Page/View/RelationshipSelector.tpl

A different approach would be to create a custom template as explained here and disable the actions links based on $context

Update: according to dataTable API, you could do this:

CRM.$(function($) {
    var table = $('table.crm-contact-relationship-selector-current').DataTable();
    var column = table.column('.crm-contact-relationship-links');
    column.visible( false );
});