mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 13:22:25 +01:00
Add (considerably evil) dactylIUtils.getScrollable. Deal with some quirky sites without scrollable elements. Closes issue #525.
This commit is contained in:
@@ -8,9 +8,12 @@
|
||||
%}
|
||||
|
||||
|
||||
[scriptable, uuid(29d1c61f-5959-42b3-8a13-4b473b2b47bf)]
|
||||
[scriptable, uuid(d8ef4492-8f4a-4f5d-8f19-1d71f7f895ed)]
|
||||
interface dactylIUtils : nsISupports
|
||||
{
|
||||
const PRUint32 DIRECTION_HORIZONTAL = 1 << 0;
|
||||
const PRUint32 DIRECTION_VERTICAL = 1 << 1;
|
||||
|
||||
[implicit_jscontext]
|
||||
jsval createGlobal();
|
||||
|
||||
@@ -25,6 +28,8 @@ interface dactylIUtils : nsISupports
|
||||
[implicit_jscontext]
|
||||
jsval getGlobalForObject(in jsval object);
|
||||
|
||||
PRUint32 getScrollable(in nsIDOMElement element);
|
||||
|
||||
void loadSubScript (in wstring url
|
||||
/* [optional] in jsval context, */
|
||||
/* [optional] in wstring charset */);
|
||||
|
||||
Reference in New Issue
Block a user