Annoying Facebook Message

By Matthew Hill Last update Sep 9, 2010 — Installed 2,198 times.

There are 5 previous versions of this script.

// --------------------------------------------------------------------------------
//
// Annoying Facebook Message
// version 0.2 BETA
// 09-09-2010
// Copyright (c) 2010, Matthew Hill
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --------------------------------------------------------------------------------
//
// ==UserScript==
// @name          Annoying Facebook Message
// @namespace     http://www.userscripts.org/scripts/show/67306
// @description   Inserts a bogus "Private Message" on your victim's Facebook homepage to taunt them forever! Personalise with various settings.
// @include       htt*://*.facebook.com*
// ==/UserScript==
//
// ---------------------------------------- EDIT BELOW ----------------------------------------
//
// Your name (as it appears on Facebook)
var name = 'John Smith'

// The web address of your Facebook profile
var profile = 'http://www.facebook.com/john.smith'

// Your annoying message
var message = 'This is an annoying message!'

// The web address of your Facebook profile picture thumbnail
var image = 'http://www.matthewhill.name/projects/afbm/defaultThumb.jpg'
//
//---------------------------------------- DO NOT EDIT BELOW ----------------------------------------
//
var pageletChbox = document.getElementById('pagelet_chbox');
var privateMessage = document.createElement('div');
privateMessage.innerHTML = '<div class="mbl clearfix"><div class="uiHeader uiHeaderTopAndBottomBorder mbm pbs"><h4 class="uiHeaderTitle">Private Messages</h4></div><a href="' + profile + '"><img src="' + image + '" width="50" height="50" alt="' + name + '" border="0" style="margin-right:5px;float:left" /></a><b><a href="' + profile + '">' + name + '</a></b><br />' + message + '</div>';
pageletChbox.parentNode.insertBefore(privateMessage, pageletChbox)
//
// --------------------------------------------------------------------------------