Main Page: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
 
(32 intermediate revisions by 19 users not shown)
Line 1: Line 1:
// ==UserScript==
'''GreaseSpot''' is community documentation for [[user script]]ing with [[Greasemonkey]].
// @name Fluff Friends Petter
 
// @namespace http://www.smert.net/
<!-- I'm not fond of the mess of HTML here, but it's especially helpful to have an attractive and easy-to-use main page. -->
// @description Auto Pet Fluff Friends
<table style='min-width: 35em; max-width: 60em; margin: 1em auto; float: none;' class='infobox'>
// @include http://apps.facebook.com/fluff/fluffbook.php*
<tr>
// ==/UserScript==
<th style='width: 50%; text-align: center;'>For All Users</th>
var h = document.getElementsByTagName('div');
<th style='width: 50%; text-align: center;'>For Script Authors</th>
var i;
</tr>
for (i in h) {
<tr>
    if (h[i].innerHTML) {
<td>
        k = h[i].innerHTML.substr(0,8);
* [[Greasemonkey Manual]]
        if (k == "You have") { window.close(); return; }
* [[Troubleshooting (Users)]]
    }
* [[User Script Hosting]]
}
</td>
var i = document.getElementsByTagName('form');
<td>
// The first 5 are now fake forms that will generate an error. This will change often.
* [[Greasemonkey Manual:API|API reference]]
i[6].submit();
* [[Troubleshooting (Script Authors)]]
* [[Security]]
* [[Tutorials]]
* [[:Category:Coding Tips]]
* [[:Category:Scripting context]]
</td>
</tr>
</table>
 
Last resort?
Try reading the [[Getting Help]] page.
 
<!-- Things are slightly more attractive when the page isn't shorter than the left-side nav; pad it. -->
<br><br><br><br><br><br><br><br><br><br><br><br>

Latest revision as of 16:43, 3 November 2017