Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Having fun with WebKit
Perl C JavaScript Other

This branch is 1 commit ahead, 97 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
css
.gitignore
Makefile
README
WebKit-en.odp
WebKit-fr.odp
compile.sh
css-rules-usage.pl
dom-walker.c
download-cb.c
downloads.pl
execute-js.pl
gir.pl
js.c
nanny.pl
off-screen.sh
s5.js
s5pdf
sample.html
screenshot-png.pl
screenshot.c
screenshot.pl
screenshot.sh
test.cpp
transparent.c
transparent.pl
webkit.pl

README

Introduction
------------

This package contains a list of random WebKit hacks. The hacks are mainly
written in Perl using the introspection framework.

They rely on these two other githup projects:

    https://github.com/potyl/perl-Gtk3-WebKit
    https://github.com/potyl/perl-HTTP-Soup


Contents
--------

webkit.pl          - display a web page
transparent.pl     - load a page in a transparent window
screenshot-png.pl  - take a screenshot as PNG
screenshot.pl      - take a screenshot as various formats
downloads.pl       - track the downloads for one page
execute-js.pl      - execute javascript on a page
nanny.pl           - very simple parental control
git.pl             - display a web page using GIR
screenshot         - save a screenshot as a PDF
s5pdf              - save a S5 presentation in PDF
css-rules-usage.pl - list css rules and their usage
dom-walker         - walk the DOM tree
js                 - get the page's title through JavaScript


How to Build
------------

This was tested on a brand new VM running Ubuntu 11.04. These intructions are
not very clean. They sever more as a reminder.

sudo apt-get install libextutils-depends-perl libextutils-pkgconfig-perl gobject-introspection libgirepository1.0-dev
wget http://cpan.metacpan.org/authors/id/T/TS/TSCH/Glib-Object-Introspection-0.001.tar.gz
sudo apt-get install libwebkitgtk-3.0-dev libwebkitgtk-3.0-0-dbg
git clone git://git.gnome.org/perl-Glib-Object-Introspection
git clone git://git.gnome.org/perl-Gtk3
wget http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.4008.tar.gz
dzil authordeps | sudo cpanm
sudo apt-get install gir1.2-gtk-3.0 gir1.2-webkit-3.0 gir1.2-soup-2.4
wget http://cpan.metacpan.org/authors/id/T/TS/TSCH/Cairo-GObject-1.000.tar.gz
perl Makefile.PL && make && perl -Mblib t/CairoGObject.t && sudo make install
Something went wrong with that request. Please try again.