nntoan / scriptify

Automatically exported from code.google.com/p/scriptify
MIT License
0 stars 0 forks source link

Greasemonkey userscript functionallity missing in new extension #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I began by selecting Create New Add-On from the Scriptify    
      drop-down menu in the Add-Ons Manager
2. I inputted a Greasemonkey userscript from a file 
      (you can view it and the xpi Scriptify exported here:
      https://github.com/mandiberg/Oil-Standard )
3. The new extension was created/installed, but none of the 
      functionality seemed to be working.

What is the expected output? What do you see instead?

Expected:
Oil Standard is a Greasemonkey plug-in that converts US dollars into barrels of 
crude oil and displays those values next to USD amounts on websites. It has 
three basic parts that I need to work in the extension:
    1. An alert should pop up when the extension is installed 
       to allow the user to select the units they would like to see. 
       This uses Greasemonkey variables, so I am not sure how that is 
       being converted by Scriptify. 
    2. The crude oil amount should appear behind the dollar amount on 
       web pages.
    3. The extension should pop up the alert that sets variables again 
       when sent to this page: 
       http://turbulence.org/Works/oilstandard/reset.html 

Results:
None of this functionality seems to be working. 

What version of the product are you using? On what operating system?

I am using Scriptify 0.2.1 on Firefox 9.0.1 on Mac OSX 10.7.2

Please provide any additional information below.

I'm wondering if there's any extra work I need to do to make this userscript 
compatible with scriptify.

Original issue reported on code.google.com by SKla...@gmail.com on 6 Jan 2012 at 6:08

Attachments:

GoogleCodeExporter commented 9 years ago
Seems to work for me.

Original comment by maglion...@gmail.com on 10 Jan 2012 at 4:45

Attachments:

GoogleCodeExporter commented 9 years ago
I should note that you apparently need to visit 
http://oilstandard.therealcosts.com/ rather than the link you provided.

Original comment by maglion...@gmail.com on 10 Jan 2012 at 4:47

GoogleCodeExporter commented 9 years ago
As yes, that is the correct link, my mistake. 

I'm still having some difficulty getting the oil amounts to show up-

I know that the extension version is setting GM values and reading in rss feeds 
and csv documents correctly, but I think there may be a problem with how the 
XPath result object is being treated. Any thoughts?

Here's a copy of the userscript again, updated with the comments/alerts I was 
using to test the functions. I've been using this as a test site: 
http://theredproject.com/foryou/unm/test.html

Original comment by SKla...@gmail.com on 11 Jan 2012 at 10:28

Attachments:

GoogleCodeExporter commented 9 years ago
What's the problem you're having? It seems to work for me.

Incidentally, you probably want to use GM_debug rather than alerts.

Original comment by maglion...@gmail.com on 17 Jan 2012 at 4:51

GoogleCodeExporter commented 9 years ago
Does it insert the number of oil barrels for you? It doesn't for me.

Original comment by SKla...@gmail.com on 17 Jan 2012 at 7:54

GoogleCodeExporter commented 9 years ago
It does, yes. http://666kb.com/i/c0i25gi20t5jsm6rb.png

Original comment by maglion...@gmail.com on 18 Jan 2012 at 9:34