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]>
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]> 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].
>> 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.
>>
>
> --
> 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].
> 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.
>



-- 

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

Reply via email to