PageSourceSearch

https://thriftytraveler.com/wp-content/cache/min/1/wp-content/plug…/tt-pys/assets/js/tt-pys.js?ver=1783024548

js thriftytraveler.com collected 2026-10-02 02:34:50 UTC 1,282 bytes, 4 lines download raw bytes

1function tt_pys($){var tt_pys={config:null,init:function(){this.config=window.tt_pys_config;this.bind_events()},bind_events:function(){var self=this;$(document).on('tt:logged-in-state:ready:success',function(){self.handle_logged_in_state(window.tt&&window.tt.logged_in_state)})},handle_logged_in_state:function(state){if(!this.should_apply(state)){return}
2var self=this;this.external_id_for(state.user_id).then(function(external_id){self.set_pbid_cookie(external_id)})},should_apply:function(state){return!!(state&&state.is_logged_in&&state.user_id)},external_id_for:function(user_id){var bytes=new TextEncoder().encode(String(user_id));return crypto.subtle.digest('SHA-256',bytes).then(function(buffer){return Array.from(new Uint8Array(buffer)).map(function(byte){return byte.toString(16).padStart(2,'0')}).join('')})},set_pbid_cookie:function(external_id){document.cookie=this.config.cookie_name+'='+external_id+'; path=/'+'; domain='+this.config.cookie_domain+'; max-age='+this.config.cookie_max_age_seconds+'; samesite=lax; secure';console.log('[tt-pys] Linked pbid to member external id: '+external_id)}};return tt_pys}
3if(typeof module!=='undefined'&&module.exports){module.exports=tt_pys}
4if(typeof window!=='undefined'&&window.jQuery&&window.document){tt_pys(jQuery).init()}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.