| 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) |