Skip to content
This repository

Having fun with WebKit

branch: master
Octocat-spinner-32 css Add fake rules to see if the files are loaded September 28, 2011
Octocat-spinner-32 .gitignore Ignore captures and queue.db September 14, 2012
Octocat-spinner-32 Makefile Detec the proxy based on http_proxy or HTTP_PROXY September 13, 2012
Octocat-spinner-32 README Add har.pl December 10, 2011
Octocat-spinner-32 WebKit-en.odp Update the XPath slide November 10, 2011
Octocat-spinner-32 WebKit-fr.odp remove extra "my " from slide #20 September 15, 2011
Octocat-spinner-32 cron.pl Custom dancer website and cron to grap screenshots September 14, 2012
Octocat-spinner-32 css-rules-usage.pl Fix the program name in SYNOPSIS April 07, 2012
Octocat-spinner-32 deck2pdf Add deck2pdf December 06, 2011
Octocat-spinner-32 dom-walker.c Use G_GINT64_FORMAT instead og %lld April 18, 2012
Octocat-spinner-32 download-cb.c Using SoupSession for intercepting working SoupMessages May 16, 2011
Octocat-spinner-32 downloads.pl Use Gtk3's main loop November 15, 2012
Octocat-spinner-32 execute-js.pl Don't load Cairo November 16, 2011
Octocat-spinner-32 gir.pl No need to pass int, array to init September 15, 2011
Octocat-spinner-32 har.pl Add: TODO implement postData December 17, 2011
Octocat-spinner-32 js.c Fix compilation errors regarding the cal to JSEvaluateScript() April 18, 2012
Octocat-spinner-32 nanny.pl Typo fix on pod2usage November 03, 2011
Octocat-spinner-32 off-screen.sh Wrapper for running the applications in an offscreen X server August 28, 2011
Octocat-spinner-32 s5.js JavaScript test file June 27, 2011
Octocat-spinner-32 s5pdf Fix a typo in the POD November 05, 2011
Octocat-spinner-32 sample.html CSS example September 27, 2011
Octocat-spinner-32 screenshot-png.pl Use Gtk3::WebKit instead of WWW::WebKit September 19, 2011
Octocat-spinner-32 screenshot.c Bug fix: assign the proxy when reading then environment variable HTTP… November 14, 2012
Octocat-spinner-32 screenshot.pl Fix a typo in the regexp to format the proxy September 13, 2012
Octocat-spinner-32 screenshot.sh Fix the invocation of the script screenshot.pl May 11, 2011
Octocat-spinner-32 transparent.c Port to GTK 3 April 18, 2012
Octocat-spinner-32 transparent.pl No need to load Gdk November 17, 2011
Octocat-spinner-32 webkit.pl Load Getopt::Long & Pod::Usage November 16, 2011
Octocat-spinner-32 website.pl Formatting September 22, 2012
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, PNG, SVG or PS
s5pdf               - save a S5 presentation in PDF
deck2pdf            - save a Deck JS presentation in PDF
css-rules-usage.p l - list css rules and their usage
dom-walker          - walk the DOM tree
js                  - get the page's title through JavaScript
har.pl              - generate an HTTP Archive (HAR) file from a web page

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

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

sudo apt-get install libextutils-depends-perl libextutils-pkgconfig-perl gobject-introspection libgirepository1.0-dev
sudo apt-get install libwebkitgtk-3.0-dev libwebkitgtk-3.0-0-dbg
sudo apt-get install gir1.2-gtk-3.0 gir1.2-webkit-3.0 gir1.2-soup-2.4

Install from CPAN:

    Glib::Object::Introspection
    Cairo::GObject
    Gtk3
    Gtk3::WebKit
    HTTP::Soup

For better success use a recent version of WebKitGTK.
Something went wrong with that request. Please try again.