H
H
H1D2011-09-28 01:48:10
JavaScript
H1D, 2011-09-28 01:48:10

Need advice from a JS guru on user scripting

In general, I spent 2 hours on the invention of the bicycle. I missed the heading numbering function in GDocs, I wrote a bookmarklet that does the following: In general, the problem is that I change the DOM tree, and the bastards from Google, as it turned out, follow MVC and therefore they have the entire document stored in the object model. So my manipulation of the DOM does not affect anything other than display. There is no way to save the result. Question: what can be done in such a situation? Is there any way to access the Document Object Model?



Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Grigory Peretyaka, 2011-09-28
@Peretyaka

Is there any way to access the Document Object Model?
It is possible, but without documentation and with compressed sources, the task is just for the guru :)
The easiest option is to find someone's ready-made user script and see what objects it changes, but I did not find this.
You can display the entire window, search for words from the document and understand in which object to look for it. But, most likely, this is not enough, and then you will have to look for methods that work with the object: they change it and send it for storage. Well, further experiments, experiments, experiments ...
If anything, look for literature like this:
www.google.com.ua/search?q=javascript+reverse+engineering

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question