» »

chrome extension manifest.json

chrome extension manifest.json

nsa_ag3nt ::

Na chrome fork https://chromium.woolyss.com/ bi rad naložil https://chrome.google.com/webstore/deta... , vendar store javlja, da manifest ni pravilen.
Problem se je pojavil z verzijo 67.
DL sem crx in vidim da se v manifest.json trenutno nahaja sledeče:

{
"update_url":"http://clients2.google.com/service/update2/crx",
  "name":            "RightLink",
  "version":         "1.3",
  "description":     "Right click for open link in new background tab (for touchpads etc.)",
  "permissions":     ["tabs"],
  "background_page": "background_page/controller.html",
  "options_page":    "options_page/options.html",
  "content_scripts": [{
    "run_at":     "document_start",
    "all_frames": true,
    "matches":    ["http://*/*", "https://*/*", "ftp://*/*"],
    "js":         ["lib/jquery-1.3.2.min.js", "content_script/rightlink_extension.js"]
  }]
}
 




DL sem en drug extension (samo da vidim pravilno shemo), da sem dodal "manifest_version": 2,

"update_url":"http://clients2.google.com/service/update2/crx",
  "name":            "RightLink",
  "version":         "1.3",
  "manifest_version": 2,
...

Sedaj se extension lahko naloži, vendar vidim da ne dela, v chrome://extensions/ , rightlink -> errors

Napaka:
"background_page": "background_page/controller.html",



Kaj delam narobe oz kako to rešiti ?



Že res da sem sedaj našel delujočo alternativo https://chrome.google.com/webstore/deta... , vendar bi rad tudi to zgoraj rešil.
https://gizmodo.com/c/goodbye-big-five
  • spremenilo: nsa_ag3nt ()

nsa_ag3nt ::

Edit2, našel
https://chrome.google.com/webstore/deta...
in sledeča oblika gre brez težav skozi JSON Lint Pro validator, vendar dobim drugo napako

Invalid value for 'options_page'.
Could not load manifest.



{
    "update_url": "http://clients2.google.com/service/update2/crx",
    "name": "RightLink",
    "version": "1.3",
    "description": "Right click for open link in new background tab (for touchpads etc.)",
    "permissions": [
        "tabs",
        "*://*/",
        "storage"
    ],
    "minimum_chrome_version": "20",
    "manifest_version": 2,
    "background_page": [
        "background_page/controller.html"
    ],
    "options_page": [
        "options_page/options.html"
    ],
    "content_scripts": [
        {
            "run_at": "document_start",
            "all_frames": true,
            "matches": [
                "http://*/*",
                "https://*/*",
                "ftp://*/*"
            ],
            "js": [
                "lib/jquery-1.3.2.min.js",
                "content_script/rightlink_extension.js"
            ]
        }
    ]
}
https://gizmodo.com/c/goodbye-big-five

nsa_ag3nt ::

Delete.
https://gizmodo.com/c/goodbye-big-five

Zgodovina sprememb…

  • spremenilo: nsa_ag3nt ()

nsa_ag3nt ::

Da ne bo kdo namestil zgornje alternative https://chrome.google.com/webstore/deta... [injects ads, pop-ups and hijacks browser] ,
Tale je preverjeno ok https://chrome.google.com/webstore/deta... .
https://gizmodo.com/c/goodbye-big-five


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

Vtičniki/addons za Chrome

Oddelek: Programska oprema
62054 (1312) treker
»

Forum Slo-Tech in Infinite Scroll

Oddelek: Loža
61188 (896) xardas
»

chrome odpira veliko reklam

Oddelek: Pomoč in nasveti
72069 (1852) blaz5
»

Oglasi na internetu (imam adblock pa so še kar oglasi)

Oddelek: Omrežja in internet
182815 (2205) Kamion
»

Kako odstraniti Rewords

Oddelek: Omrežja in internet
61726 (1631) zee

Več podobnih tem