This file is indexed.

/usr/share/hotot/js/readlater.coffee is in hotot-common 1:0.9.8.14-2.

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
class ReadLater
  constructor: (@username, @password) ->
    @pocket_apikey = '4c2T7D4dg52f6r440gd746eW4cpkG7f6'
    @pocket_auth_url = 'https://readitlaterlist.com/v2/auth?username={%USERNAME%}&password={%PASSWORD%}&apikey='+@pocket_apikey
    @pocket_add_url = 'https://readitlaterlist.com/v2/add?username={%USERNAME%}&password={%PASSWORD%}&apikey='+@pocket_apikey+'&url={%URL%}&title={%SELECTION%}'
  
    @instap_auth_url = 'https://www.instapaper.com/api/authenticate?username={%USERNAME%}&password={%PASSWORD%}'

    @instapp_add_url = 'https://www.instapaper.com/api/add?username={%USERNAME%}&password={%PASSWORD%}&url={%URL%}&title=&selection={%SELECTION%}'

  init: (username, password)->
    @username = username
    @password = password

  addItem: (service, url, text, callback) ->
    if service == 'pocket'
      req_url = @pocket_add_url
    else          # instapp
      req_url = @instapp_add_url
    req_url = req_url.replace('{%USERNAME%}', encodeURIComponent(@username))
    req_url = req_url.replace('{%PASSWORD%}', encodeURIComponent(@password))
    req_url = req_url.replace('{%URL%}', encodeURIComponent(url))
    req_url = req_url.replace('{%SELECTION%}', encodeURIComponent(text))
    $.get(req_url, callback)
     

root = exports ? this
root.ReadLaterServ = ReadLater