LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Is there a WebKitGTK browser that will allow me to highlight text on a webpage? (http://www.linuxquestions.org/questions/linux-software-2/is-there-a-webkitgtk-browser-that-will-allow-me-to-highlight-text-on-a-webpage-928826/)

Advice Pro 02-11-2012 11:07 AM

Is there a WebKitGTK browser that will allow me to highlight text on a webpage?
 
Here are some WebKitGTK brows:

Cream
Dwb
Epiphany
Jumanji
Surf
UbuMonkey
Vimprobable2
xxxterm

I've never used one of these. I just hope that they may be faster with GTK basked DE, like Gnome & LXDE.

Nominal Animal 02-11-2012 01:18 PM

Even the simplest possible webkit browser I know,
Code:

#!/usr/bin/env python

if __name__ == "__main__":
    import sys
    import gtk
    import webkit

    window = gtk.Window(gtk.WINDOW_TOPLEVEL)
    webview = webkit.WebView()
    window.add(webview)

    if (len(sys.argv) > 1):
        webview.open(sys.argv[1])
    else:
        webview.open("http://www.google.com/")

    window.show_all()
    gtk.main()

which requires only python and pywebkitgtk, allows selecting text on a webpage. The selection is automatically put onto the PRIMARY clipboard, too.

Edit: This is to say that this is all built-in to webkit. If a webkit browser does not allow this, it must have gone to pretty extraordinary lengths to specifically disallow it. I'd say it is safe to assume all webkit browsers allow it.


All times are GMT -5. The time now is 07:43 PM.