Questions tagged [webkit2-webextension]

WebKit2WebExtension library. Please don't use this tag for Firefox/Chrome browser extensions.

WebKit2WebExtension library.
Please don't use this tag for Firefox/Chrome browser extensions.

More info: https://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebExtension.html

8 questions
3
votes
2 answers

WebKit2GTK+ "page-created" extension only working once

This is a follow-up question from How to debug WebKit2GTK+ extensions. While there is more code there for reference, I have changed it up a little. I have the following webkit extension: #include #include…
A student
  • 170
  • 11
2
votes
1 answer

How to debug WebKit2GTK+ extensions

I am trying to get WebKit2GTK+ Extensions to work, it is a simple extension that will just print into the console when a page is created. Here is my project…
A student
  • 170
  • 11
1
vote
1 answer

How to expose native code to javascript in webkit2gtk

I want to expose a native object or function to javascript so that i can have a callback function in C when the particular function is called in browser. From this example, it seems it is possible in WebKitGTK1 using the signal…
0
votes
1 answer

Seeminly impossible to change HTTP headers in webkit2gtk

To start things off, there are no functions to change these http headers, which already seems ridiculous. I'm attempting to craft an unfingerprintable browser, and the first step was to modify the user agent. This was easily exposed via a webkit…
Seren541
  • 59
  • 3
0
votes
0 answers

Accessing the DOM and DOMEvents from Gtk with Webkit2Gtk

(I am not good in english, may anyone edit the question) I need to access DOM via Vala (Gtk), As direct access to dom is removed by webkit, i needed to use webkit extension (using dbus) (a example), but it also serves problem with multiple webkit…
0
votes
0 answers

WebExtension display secure dialog

I want to write a webextension that displays a tiny dialog to obtain some sensitive data from users. However, I do not what thieves.com to be able to produce a dialog that looks exactly like the one I would be presenting. Is there any way to do…
Tuntable
  • 3,276
  • 1
  • 21
  • 26
0
votes
2 answers

WebKit2GTK+ "window-object-cleared" not clearing

This is a follow up to: How to debug WebKit2GTK+ extensions Here is my extension: #include #include static void window_object_cleared_callback(WebKitScriptWorld* world, WebKitWebPage* webPage,…
A student
  • 170
  • 11
0
votes
1 answer

Clear selection in WebKit2 Web Extension without JavaScript

I want to clear the selection from a web extension. There is a signal selection-changed, but there does not seem to have a way to clear the selection. I tried creating a WebKitDOMRange but it seems there is no way to set this new range in the…
antoyo
  • 11,097
  • 7
  • 51
  • 82