MCPcopy Index your code
hub / github.com/hoothin/UserScripts / getCookie

Function getCookie

Picviewer CE+/dist.user.js:12568–12578  ·  view source on GitHub ↗
(cname)

Source from the content-addressed store, hash-verified

12566 });
12567 }
12568 function getCookie(cname) {
12569 let name = cname + "=";
12570 var ca = document.cookie.split(';');
12571 for(let i = 0; i < ca.length; i++) {
12572 let c = ca[i];
12573 while (c.charAt(0)==' ') c = c.substring(1);
12574 if (c.indexOf(name) == 0)
12575 return c.substring(name.length,c.length);
12576 }
12577 return "";
12578 }
12579 var cookie;
12580 function extFromMimeAndUrl(mimeType, url) {
12581 let ext = '';

Callers 1

pvcep_rules.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected