This file is indexed.

/usr/share/ktelepathy/longurl.js is in kde-telepathy-text-ui 4:17.12.3-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
var escapeHTML = (function() {
    'use strict';
    var codes = {
        '&': '&',
        '<': '&lt;',
        '>': '&gt;',
        '"': '&quot;',
        "'": '&#39;'
    };
    return function(string) {
        return string.replace(/[&<>"']/g, function(char) {
            return codes[char];
        });
    };
}());

var expandUrlCallbacks={};

function expandUrlCallback(response,id)
{
    var text = response["long-url"];
    document.getElementById(id).innerHTML += "<a href ='" + escapeHTML(text) +"'>"+ escapeHTML(text) +"</a><br />";
}

function showShortUrl(jsonCallUrl, id)
{
    expandUrlCallbacks[id] = function(response) { //create a new callback function
        delete expandUrlCallbacks[id]
        expandUrlCallback(response,id);
        };

    var script = document.createElement('script');
    script.src = jsonCallUrl;
    document.getElementsByTagName('head')[0].appendChild(script);
}