Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Manifest.json + background.js HELP

    Hi im developing a chrome extension and i have a problem, with my extension, when i install my extension under chrome, my browser become really slower...my background.js file use more than 2 millions urls wih i update every week

    Code:
    {
    "name":"Stop-it",
    "description":"app",
    "version":"1.0,
    "manifest_version":2,
    "permissions": [
            "http://*/*",
            "https://*/*",
            "webRequest",
            "webRequestBlocking",      
            "unlimitedStorage"]
    ,"icons":{"48":"icon.png"},
    "background":{
        "scripts": ["background.js"]
    },
    "browser_action":{
        "default_popup":"popup.html",
        "default_icon":"icon.png"
    }
    }
    and THIS is my background.js

    Code:
    chrome.webRequest.onBeforeRequest.addListener(
    function(details) {
        return {cancel: true}; 
    }, { urls: 
    [
    "*://*.url1/*",
    "*://*.url2/*",
    etc...
    ]},['blocking']);
    i don't know how to use my database from a local storage, is for that i put all my 2millions urls inside the background.js and the result is, when i add my app to chrome he become really really slower...
    i need URGENT help please...

    thanks to everyone
    Attached Thumbnails Attached Thumbnails Manifest.json + background.js HELP-stop-memory-chrome02.jpg  

  • #2
    New to the CF scene
    Join Date
    Aug 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no one can help me with that???


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •