Would you be able to add a JS or HTML confirmation to the unsubscribe link in the Usercp for forums. I keep clicking them accidentally. :wave:
P.s: I expect this done in 3 days; or you shall entail serious penalties. :P
Printable View
Would you be able to add a JS or HTML confirmation to the unsubscribe link in the Usercp for forums. I keep clicking them accidentally. :wave:
P.s: I expect this done in 3 days; or you shall entail serious penalties. :P
It's not likely that this will happen, and for the usual reason which is that we don't make modifications unless there is a compelling reason to do because it would have to be maintained upgrade to upgrade.
Ask here http://vbulletin.com/forum/
I sorted it with Greasemonkey. Code below:
Code:// ==UserScript==
// @name VBF Unsubscribed
// @namespace vbf
// @description Confirmation on VBF Unscribe Link
// @include http://www.vbforums.com/usercp.php
// ==/UserScript==
var links = document.getElementsByTagName('a');
var link;
var href;
for (var x = 0; x < links.length; x++) {
link = links[x];
href = link.getAttribute('href');
if (href == null) {
continue;
}
if (href.indexOf('subscription.php?do=removesubscription') != -1) {
link.addEventListener('click', function(e) {
if (! confirm('Do I really want to unsubscribe?')) {
e.preventDefault();
}
}, false);
}
}