Registration Notification
|
|
hello!
|
|
|
Using the title of the page to test whether it is open, you could create the following script which will refresh the page every minute until it changes. If the title changes, a messagebox will appear to let you know. If you leave this running in the background, the browser will start to flash on your taskbar if the title changes. if (/Erreur: Désolé\.\.\./.test(document.title))
alert("Registration open!")
else
window.setTimeout( function(e) { window.location.reload(true) }, 60000 )
|
|
|
Thank you znerp for your quick answer... But I don't know how to create the script or how can I add your code to Greasemonkey...
|
|
|
You did your script backwards znerp. If it doesn't have Erreur in the title it should alert.
|
|
|
@JoeSimmons: You're right, I forgot to add a I've had a look at your script though, and I don't think it will work. The reason why I went with @midorocco: Until JoeSimmons updates his script, copy the following into a new text file, name it // ==UserScript==
// @name SnowTigers Registration Alerter
// @include http://www.snowtigers.net/account-signup.php
// ==/UserScript==
if (!/Erreur: Désolé\.\.\./.test(document.title))
alert("Registration open!")
else
window.setTimeout( function(e) { window.location.reload(true) }, 60000 )
|
|
|
Wow! Great job...
|
|
|
After I added it to firefox... it tell me "Registration open!" every time I open the registration page...
|
|
|
@midorocco: Are you sure you used the second piece of code I've pasted, ie. where the first line is... if (!/Erreur: Désolé\.\.\./.test(document.title)) ..with the exclamation point. I've just tested it, and it seems to work fine for me. |
|
|
I don't know... but when I open the page it tell me "registration open!" and it doesn't refresh again...
|
|
|
Ok, I've found the problem. When saving the text file, the é's get messed up due to the character encoding. Try it again (you might want to uninstall the current version first), but either change the character encoding of the text file to eg. Unicode (which seems to work for me, whereas ANSI doesn't), or just use the following code.. // ==UserScript==
// @name SnowTigers Registration Alerter
// @include http://www.snowtigers.net/account-signup.php
// ==/UserScript==
if (!/Erreur: D.sol.\.\.\./.test(document.title))
alert("Registration open!")
else
window.setTimeout( function(e) { window.location.reload(true) }, 60000 )
|
|
|
I don't know how to thank you my friend...
|
|
|
hello!
|
|
|
Ok midorocco I just fixed the script with what you want.
|
|
|
Thank you JoeSimmons for your help...
// ==UserScript==
// @name SnowTigers Registration Alerter
// @include http://www.snowtigers.net/account-signup.php
// ==/UserScript==
if (/Inscription/.test(document.title))
alert("Registration open!")
else
window.setTimeout( function(e) { window.location.reload(true) }, 60000 )
But why did you put an "i" after "/Inscription/"? Thank you for your help. |
|
|
That i means case insensitive. So if it's |
|
|
Ok man, thank you :)... |
