PageSourceSearch

https://assets.propublica.org/static/prod/v5/js/deploy/utils.js

js propublica.org collected 2026-09-24 07:35:12 UTC 1,381 bytes, 14 lines download raw bytes

1// This code is deployed to
2// https://assets.propublica.org/static/prod/v5/js/deploy/utils.js
3// It is not (and should not) be used anywhere else.
4(function(win,undefined){win.PP=win.PP||{};win.PP.utils=win.PP.utils||{};var PP=win.PP;// cookie function from https://github.com/filamentgroup/cookie/
5function cookie(name,value,days){// if value is undefined, get the cookie value
6if(value===undefined){var cookiestring="; "+window.document.cookie;var cookies=cookiestring.split("; "+name+"=");if(cookies.length===2){return cookies.pop().split(";").shift()}return null}else{var expires;var domain;// if value is a false boolean, we'll treat that as a delete
7if(value===false){days=-1}if(days){var date=new Date;date.setTime(date.getTime()+days*24*60*60*1000);expires="; expires="+date.toGMTString()}else{expires=""}if(location.hostname.endsWith(".propublica.org")){// Cookie set on www.propublica.org can be read on
8// projects.propublica.org (and vice versa)
9domain="; domain=.propublica.org"}else{// Cookie limited to current hostname
10domain=""}window.document.cookie=name+"="+value+expires+domain+"; path=/"}}// expose it
11PP.utils.cookie=cookie;// basic logging function
12function log(logLine){const logOn=new URLSearchParams(window.location.search).get("__pp-debug");if(logOn!==null){console.log(logLine)}}// expose it
13PP.utils.log=log})(this);
14//# sourceMappingURL=utils.js.map

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.