Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

[Greasemonkey] Removing unsubscribe from userCP.

  • 27-10-2007 12:58PM
    #1
    Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭


    Single most annoying thing for me. The unsub links I keep clicking them by accident then have to go find the forum and resub. So I made a greasemonkey script to get rid of them.

    Save the code below to a file called boardsie_usercp.user.js (naming is important). Then drop the file onto firefox. Oh yea and you need the greasemonkey plugin installed.
    // boards.ie remove unsub.
    // @author: Hobbes
    // @version: 1.00
    //
    // ==UserScript==
    // @name          Boards.ie Remove Unsub lines.
    // @namespace     BOARDS.IE
    // @description   Removes the unsubcribe line from boards.ie usercp
    // @include       http://www.boards.ie/vbulletin/usercp.php*
    // @exclude       
    // ==/UserScript==
    
    var node = document.getElementsByTagName('a');
    for (var i = 0; i < node.length; i++) { 
    	var h = node[i].getAttribute('href');
    	if (h != null && h.search(/(.)removesubscription(.)/i) > -1) { 
    			node[i].parentNode.removeChild(node[i]);
    	}
    }
    


Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.

Advertisement