[Greasemonkey] Greasemonkey Imports for 0.6.4

Gareth Andrew freega at freegarethandrew.org
Fri Oct 6 16:29:46 PDT 2006


Hi Johan,

Sorry, I didn't replay to this earlier.

Spamdalism sucks, I've moved the page about the imports patch to my new 
site - http://gandrew.com/drupal/?q=node/7.
The status of the patch is that it has been merged with the greasemonkey 
trunk and should  be up to date with the current build.

I also hacked together a php script 
(http://gandrew.com/drupal/?q=node/29) which will allow you to use the 
imports features without requiring you users to change their 
greasemonkey version. 

As for getting this in the main repository, I think the issue is that 
greasemonkey development has stopped.  My thoughts on this matter are 
quite long so I've put them in a separate message.

That being said I do think the patch isn't ideal, for example, I think 
the most common use case (at least for me) is to include other 
javascript for more modular code, so I think it it would make sense to 
add something like a library tag (@library?) which acts like @import 
except the contents are automatically eval'd with the user-script.

I'd like to hear your thoughts on what could be done with it.  If you 
would like to me to guide you through the changes I've made feel free to 
email me.

Gareth.


Johan Sundström wrote:
> On 12/30/05, Jeremy Dunck <jdunck at gmail.com> wrote:
>> On 12/30/05, Gareth Andrew <freega at freegarethandrew.org> wrote:
>> > Hello all,
>> >
>> > I've finally got off my ass and updated my imports patch for
>>
>> Thanks Gareth. :)
>
> Figuring this wasn't a useful approach to go about contributing
> towards a more DRY greasemonkey future; what would be? I assume Aaron
> and others might want to outline some design thoughts on solutions
> that *would* hit the main repository, even if invented elsewhere.
>
> http://www.freegarethandrew.org/mediawiki/index.php?title=GreasemonkeyImports&oldid=165 
>
>
> is the latest revision of Gareth's docs I find that is free of
> spamdalism, if someone wants to go back to browse what was suggested
> last time (in summary: an "@import alias URL" mechanism combined with
> a GM_Import( alias ) returning an object you could call getContents()
> on to get the imported URL's contents as a javascript string).
>
> Admittedly crude and just something of a starter, but even so a useful
> one. Except of course useless, in the sense of not being there in the
> mainline GM. I am considering following up in Gareth's trails, if
> there is a way of getting an import facility into GM proper. What do
> we want?
>
> I'm not short of ideas of my own, but do not want to trip the "nah;
> that's a bad suggestion; screw that" mentality, so I won't air any in
> this post. :-) The most important bit, to me, is to make progress,
> even if maintainers lack the needed time to put in the work at the
> moment.
>



More information about the Greasemonkey mailing list