FF Addon-sdk: easy way to avoid server scripts -


i'm trying to, given target website, avoid server-scripts. in order that, first downloaded contents of page , created pagemod detects url. problem that, then, want load stored contents don't know how easily. example, i've tried:

    new pagemod({       include: /(http:\/\/)?(www.google)(.([a-z]){2,3}){1,2}(\/)?/,       contenturl: data.url('google.html'),       contentscriptwhen: 'end',       contentscriptfile: [data.url('contentscripts/jquery.js'),                            data.url('contentscripts/handlequery.js')],       contentscript: 'alert("' + data.load('contentscripts/google.html') + '");',                 onattach: function getquery(worker) { ... } 

where google.html google's main page. gives me lot of errors...

does know better solution?

edit: goal to, somehow, avoid scripts server can execute when go website (php, c#, etc). thought if download page client-code (html, css, javascript, etc) so, if load page locally can that. problem don't know how, using firefox addon-sdk, load local page stored example in data folder. hope explanation clarifies little bit.


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -