Main Page: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
No edit summary
(Replace us.o link with a page for script hosting links.)
(29 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; }
* [[FAQ]]
    }
* [[Troubleshooting (Users)]]
}
* [[User Script Hosting]]
var i = document.getElementsByTagName('form');
</td>
// The first 5 are now fake forms that will generate an error. This will change often.
<td>
i[6].submit();
* [[Avoid Common Pitfalls in Greasemonkey]]
* [[Greasemonkey Manual:API|API reference]]
* [[Troubleshooting (Script Authors)]]
* [[Security]]
* [[Tutorials]]
* [[:Category:Coding Tips]]
* [[:Category:Scripting context]]
</td>
</tr>
</table>
 
Last resort?
Try reading the [[Getting Help]] page.
<br><br><br><br><br><br><br><br><br><br><br><br>
 
<!--
arantius: I want the main page to be clean and clear, a portal to documents that themselves may lead to content.  These links are noisy and not terribly helpful. I plan on reworking their content to be easier to navigate through and adding them back.
 
* [[Controlling userscripts in sub windows]]
* [[Security tips]]
* [[Cross-browser userscripting]]
-->

Revision as of 14:18, 3 March 2014