Group
Extension

Matches 3

HTTP-Proxy-GreaseMonkey ( A/AN/ANDYA/HTTP-Proxy-GreaseMonkey-0.05.tar.gz, ANDYA, 2007; MetaCPAN )
HTTP-Proxy-GreaseMonkey/lib/HTTP/Proxy/GreaseMonkey.pm ( view source; MetaCPAN )
ad3 Performance

C<GM_setValue>, C<GM_getValue> and C<GM_log> talk to the proxy using
synchronous JSONRPC - so they're a little slow. It remains to be seen
whether this is a problem for typical Grease
shift;
    my $h = $self->{_html} ||= HTML::Tiny->new;
    return 'var GM__global = '
      . $h->json_encode(
        {
            host     => $self->{uri}->host,
            passthru => $self->get_
}
    
    req.open(method, url, async);
    req.send(data);
}

// From http://www.JSON.org/json2.js
function GM__jsonEncode(value) {
    var m = {    // table of character substitutions
        '\b':
HTTP-Proxy-GreaseMonkey ( A/AN/ANDYA/HTTP-Proxy-GreaseMonkey-0.05.tar.gz, ANDYA, 2007; MetaCPAN )
HTTP-Proxy-GreaseMonkey/lib/HTTP/Proxy/GreaseMonkey/Redirector.pm ( view source; MetaCPAN )
package HTTP::Proxy::GreaseMonkey::Redirector;

use warnings;
use strict;
use Carp;
use JSON;
use HTTP::Response;
use HTML::Tiny;
use YAML qw( DumpFile LoadFile );
use LockFile::Simple qw( lock unlock
h_internal {
    my ( $self, $headers, $message, $query ) = @_;
    my $result = eval {
        # JSON == YAML, right?
        my %handler = (
            setValue => sub {
                my ( $args,
{_html} ||= HTML::Tiny->new;
        my $qs   = $h->url_decode( $query );
        my $args = from_json( $qs );

        my $method = delete $args->{m}
          || die "Missing 'm' arg";
        my $c
HTTP-Proxy-GreaseMonkey ( A/AN/ANDYA/HTTP-Proxy-GreaseMonkey-0.05.tar.gz, ANDYA, 2007; MetaCPAN )
HTTP-Proxy-GreaseMonkey/lib/HTTP/Proxy/GreaseMonkey/Script.pm ( view source; MetaCPAN )
 = map { $h->json_encode( $_ ) } ( $self->namespace, $self->name );

    return join "\n", map {
            "function GM_$_() { return GM__proxyFunction("
          . join( ', ', $h->json_encode( $_ 

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.