Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions about (user)script support, or using the API from userscripts. If you are announcing or posting a userscript, use the "script" tag instead.
3
votes
Accepted
How can a userscript detect when a post's been edited in place, so that it can do stuff to t...
The way SOUP handles this is by using a jQuery .ajaxComplete handler to detect when new content is loaded dynamically. SOUP actually has a set of wrapper functions that encapsulate this functionality …
1
vote
1
answer
167
views
Load answers to a question with review-like wrapper HTML
However, this gives me a bunch on non-functional UI elements (like tabs and vote buttons) that I don't really want, and it also ends up re-running any scripts embedded on the page. … I don't really like this option either, if only because I don't like my user scripts full of hardcoded HTML code.
Finally, the undocumented(?) …
1
vote
Accepted
Load answers to a question with review-like wrapper HTML
The method I ended up using in SOUP 1.10 is the first one listed above — loading the full question page and stripping it down to match the review interface. Here's the core of the actual code:
var in …