function fillTableRows(result) {
  var urlParts = result.uri[0].split('/');
  if (urlParts.length == 3) { // URL is already a base url
    baseURL = result.uri[0];
  } else {
    baseURL = urlParts
      .slice(0, 3)
      .join('/');
  }

  var tableRow =
    '<tr><td><a href="'+ result.uri[0] + '">'+ result.prefixedName[0] +
    '</a></td>' +
    '<td><a href="' + baseURL + '">'+ baseURL +
    '</a></td></tr>';

  if (result.uri[0].match('overheid.nl')) {
    $("#trustedResults tbody").append(tableRow);
  } else {
    $("#miscResults tbody").append(tableRow);
  }
}

function searchForTerm(data) {
  var searchTerm = data.target.value;

  var settings = {
    "async": true,
    "crossDomain": true,
    "url": "https://lov.okfn.org/dataset/lov/api/v2/term/search?q=" + searchTerm + "&page_size=100",
    "method": "GET",
  };

  $.ajax(settings).done(function (response) {
    $('#trustedResults tbody').empty();
    $('#miscResults tbody').empty();
    response.results.forEach(fillTableRows);
  });
}

// Using https://raw.githubusercontent.com/cowboy/jquery-throttle-debounce/v1.1/jquery.ba-throttle-debounce.js
$('#searchbox').on('input', $.debounce(250, searchForTerm));

@@ -1,16 +1,70 @@
+var trustedSites = %5B%0A  'overheid.nl',%0A  'cbs.nl',%0A%5D;%0A%0A
 function fillTab
@@ -147,16 +147,17 @@
 ength ==
+=
  3) %7B //
@@ -468,20 +468,26 @@
 r%3E';%0A%0A  
-if (
+var tld = 
 result.u
@@ -495,29 +495,66 @@
 i%5B0%5D
-.match('overheid.nl')
+%0A    .split('/')%5B2%5D;%0A%0A  if (trustedSites.indexOf(tld) %3E -1
 ) %7B%0A
@@ -559,17 +559,17 @@
 %7B%0A    $(
-%22
+'
 #trusted
@@ -573,33 +573,33 @@
 tedResults tbody
-%22
+'
 ).append(tableRo
@@ -619,17 +619,17 @@
 %7B%0A    $(
-%22
+'
 #miscRes
@@ -638,17 +638,17 @@
 ts tbody
-%22
+'
 ).append
@@ -763,15 +763,13 @@
     
-%22
 async
-%22
 : tr
@@ -776,17 +776,16 @@
 ue,%0A    
-%22
 crossDom
@@ -787,17 +787,16 @@
 ssDomain
-%22
 : true,%0A
@@ -803,16 +803,14 @@
     
-%22
 url
-%22
 : 
-%22
+'
 http
@@ -859,17 +859,17 @@
 earch?q=
-%22
+'
  + searc
@@ -902,23 +902,21 @@
     
-%22
 method
-%22
 : 
-%22GET%22
+'GET'
 ,%0A  

add cbs as trusted site