THIS IS A STATIC MIRROR OF USERSCRIPTS.ORG - LOGINS DO NOT WORK

usoCheckup - DOMNotify Theme

By Marti Last update Feb 1, 2014 — Installed 66,214 times.

Script Summary: DOM Notifications instead of JavaScript confirm/alert boxes



Version: 0.2.4

Copyright: 2009+, Marti Martz (http://userscripts.org/users/37004)

License: GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html

Script homepage

[Thumb](http://s3.amazonaws.com/uso_ss/25128/large.png?1391296189)

NOTE

Some links on this page will NOT WORK without uso - Anchor Bookmarks

Description

This script does nothing by itself but is used in conjunction with the top level script (yours) and the [usoCheckup](../../guides/24.html) JavaScript API. It also assumes that you are familiar with the usoCheckup JavaScript API.

This script shows how to make DOM Notification dialogs and some iframe interactivity using GM instead of using the default JavaScript alert and confirm boxes.
Compatibility Matrix
[This Script is compatible with usoCheckup and...](../../guides/24/index.html)
[Mozilla Firefox](http://www.getfirefox.com/)
[Mozilla Seamonkey](http://www.seamonkey-project.org/)
[Apple Safari](http://www.apple.com/safari/)
[Opera Software Opera](http://www.opera.com/)
[Microsoft Internet Explorer](http://www.microsoft.com/windows/internet-explorer/)
[Google Chromium](http://dev.chromium.org/chromium-projects)[Google Chrome (Intel Only)](http://www.google.com/chrome/)
Linux
[Greasemonkey](https://addons.mozilla.org/firefox/addon/748)
[Greasemonkey Port](https://sourceforge.net/projects/gmport/files/)
Macintosh
[Greasemonkey](https://addons.mozilla.org/firefox/addon/748)
[Greasemonkey Port](https://sourceforge.net/projects/gmport/files/)
Windows
[Greasemonkey](https://addons.mozilla.org/firefox/addon/748)
[Greasemonkey Port](https://sourceforge.net/projects/gmport/files/)
(TIP: Hover your mouse over an icon)
(NOTE: Most recent supported browser versions recommended and probably required)

Usage

// ==UserScript==
// ...
// [@require](http://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40require)  http://pathto/[scriptid](../../guides/24.html#bookmark-scriptid).js?[id](../../guides/24.html#bookmark-id)=usoCheckup&[custom](../../guides/24.html#bookmark-custom)=yes
// [@require](http://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40require)  http://userscripts.org/scripts/source/61794.user.js
// ...
// usoCheckup grant permissions for Greasemonkey 1.x+
// [@grant](http://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40grant) GM_addStyle
// [@grant](http://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40grant) GM_getValue
// [@grant](http://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40grant) GM_log
// [@grant](http://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40grant) GM_openInTab
// [@grant](http://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40grant) GM_registerMenuCommand
// [@grant](http://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40grant) GM_setValue
// [@grant](http://sf.net/apps/mediawiki/greasemonkey/index.php?title=Metadata_Block#.40grant) GM_xmlhttpRequest
// ...
// ==/UserScript==

  /* Some code */
(TIP: Don't forget to change the pathto to an approved mirror and your scriptid)