I have done some further testing. Now i work on chrome on the website i want it to work, but not in firefox... But all is not lost
" // ==UserScript== // @name firetest // @namespace firebase-test // @include http://ventureinto.space/ // @version 1 // @grant GM_util // @require https://cdn.firebase.com/js/client/2.3.1/firebase.js // @noframe // ==/UserScript== var myFirebaseRef = new Firebase("https://YOURFIREBASE.firebaseio.com/"); Firebase.enableLogging(true,true); myFirebaseRef.set({ title: "Hello 2324323423", author: "Firebase", location: { city: "San Francisco", state: "California", zip: 94103 } }); " This works om some websites that uses https. like wikipedia but not on others like paypal or github. the error im getting is " frame writing exception firebase.js (line 35) kh@chrome://greasemonkey-modules/content/sandbox.js -> file:///home/nils/.mozilla/firefox/wjn2h8g3.default/gm_scripts/firetest/firebase.js:172:293 hh.prototype.open/<@chrome://greasemonkey-modules/content/sandbox.js -> file:///home/nils/.mozilla/firefox/wjn2h8g3.default/gm_scripts/firetest/firebase.js:166:223 Rc@chrome://greasemonkey-modules/content/sandbox.js -> file:///home/nils/.mozilla/firefox/wjn2h8g3.default/gm_scripts/firetest/firebase.js:39:52 hh.prototype.open@chrome://greasemonkey-modules/content/sandbox.js -> file:///home/nils/.mozilla/firefox/wjn2h8g3.default/gm_scripts/firetest/firebase.js:166:194 zh/<@chrome://greasemonkey-modules/content/sandbox.js -> file:///home/nils/.mozilla/firefox/wjn2h8g3.default/gm_scripts/firetest/firebase.js:181:208 firebase.js (line 35) " On Tuesday, October 27, 2015 at 10:33:57 PM UTC+1, Ben Hest wrote: > > That's weird, I had it running in Chrome, but not Firefox back in April. > The code was verbatim as included in my previous post short of the links > being filled in appropriately. > > On Tue, Oct 27, 2015 at 4:17 PM, Nils Eriksson <[email protected] > <javascript:>> wrote: > >> I actually got something running now. but only in firefox not in >> chrome.... >> Maby i should look into the sourcecode. >> >> On 27 October 2015 at 14:28, Ben Hest <[email protected] <javascript:>> >> wrote: >> >>> Unfortunately I never did find an answer. >>> >>> >>> On Tuesday, October 27, 2015 at 5:42:25 AM UTC-5, Nils Eriksson wrote: >>>> >>>> Soo did you get it working ? im haveing the same issue now >>>> >>>> On Tuesday, April 7, 2015 at 9:57:05 PM UTC+2, Ben Hest wrote: >>>>> >>>>> I'm trying to see if I can get Firebase working inside a greasemonkey >>>>> script, but am unable to get it to work. >>>>> >>>>> - It worked a-ok inside of tampermonkey. >>>>> - It worked fine in a stand alone HTML doc after embedding the >>>>> firebase script and the subesequent code >>>>> - But in Firefox 37.0.1 and GM 3.1 it any changes are not >>>>> reflected in the Firebase dashboard and I cannot discern any overt >>>>> errors >>>>> through the javascript console. >>>>> >>>>> I know it's kind of a stretch asking here, but someone smarter than I >>>>> might have some idea. >>>>> >>>>> Thanks, >>>>> Ben >>>>> >>>>> // ==UserScript== >>>>> // @name indexCache >>>>> // @namespace indexCache >>>>> // @include http://www.SOMEWEBSITE.com/en >>>>> // @require https://cdn.firebase.com/js/client/2.2.3/firebase.js >>>>> // @version 1 >>>>> // @grant none >>>>> // ==/UserScript== >>>>> >>>>> >>>>> var ref = new Firebase("https://SOMEFIREBASE.firebaseio.com/mine"); >>>>> >>>>> ref.on("child_added", function(snapshot) { >>>>> console.log(snapshot.val()); >>>>> }, function (errorObject) { >>>>> console.log("The read failed: " + errorObject.code); >>>>> }); >>>>> >>>>> ref.push({ >>>>> title: "Hello World!", >>>>> author: "Firebase", >>>>> location: { >>>>> city: "San Francisco", >>>>> state: "California", >>>>> zip: 94103 >>>>> } >>>>> }); >>>>> console.log('pushed Hello World') >>>>> >>>>> ref.push({ >>>>> title: "dude World!", >>>>> author: "Firebase2", >>>>> location: { >>>>> city: "San Franciscos", >>>>> state: "Californiaaaa", >>>>> zip: 94103 >>>>> } >>>>> }); >>>>> console.log('pushed dude World') >>>>> >>>>> >>>>> >>>>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "greasemonkey-users" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/greasemonkey-users/eFkd3gj6itA/unsubscribe >>> . >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected] <javascript:>. >>> To post to this group, send email to [email protected] >>> <javascript:>. >>> Visit this group at http://groups.google.com/group/greasemonkey-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "greasemonkey-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/greasemonkey-users/eFkd3gj6itA/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/greasemonkey-users. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > -Ben > -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/greasemonkey-users. For more options, visit https://groups.google.com/d/optout.
