MCPcopy Index your code
hub / github.com/FastForwardTeam/FastForward / simplifyDomain

Function simplifyDomain

src/js/content_script.js:20–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 location.hash=location.hash.substr(0,location.hash.length-18)
19 }
20 const simplifyDomain=domain=>{
21 if(domain.substr(0,4)=="www.")
22 {
23 domain=domain.substr(4)
24 }
25 return domain
26 }
27 const brws=(typeof browser=="undefined"?chrome:browser)
28 brws.runtime.sendMessage({type: "content"}, res => {
29 if(!res.enabled)

Callers 1

content_script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected