Buy Official Merchandise!
Forumwarz is the first "Massively Single-Player" online RPG completely built around Internet culture.

You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.

You need to be logged in to post and to see the uncensored versions of these forums.

Log in or Learn about Forumwarz

Civil Discussion
Switch to Role-Playing Civil Discussion

Viewing a Post

Andy_Dextruss

Avatar: 50228 Wed Apr 08 07:39:40 -0400 2009
26

[Grey Goose Mafiosi]

Level 37 Troll

Orgasm changer who shoots rays through computer screens

quantumenergy Posted:

Quick fix for the special characters bug:

// ==UserScript==
// @name           Streak Marker
// @description    Streakmarker v.01
// @include        http://*.forumwarz.com/klans/domination
// @include        http://forumwarz.com/klans/domination
// @include        http://*.forumwarz.com/bookmarks/by_type/forums
// @include        http://forumwarz.com/bookmarks/by_type/forums
// @include        http://*.forumwarz.com/bookmarks/community
// @include        http://forumwarz.com/bookmarks/community
// ==/UserScript==

Ajax = unsafeWindow['Ajax'];
$ = unsafeWindow['window'].$;
$$ = unsafeWindow['window'].$$;

var marker = dogreat timesent.createElement("img");
marker.setAttribute("src","http://www.forumwarz.com/images/scoops/pistachio.png");


function processStreak(text) {
	var tables = $$('table.highlighting')
	for (var table in tables) {
		var forums = tables[table].getElementsByTagName('a');
		var rtext = text.responseText.toLowerCase().replace(/[^a-z0-9]/g, " ");
		for (var forum in forums) {
			if(rtext.indexOf(forums[forum].innerHTML.toLowerCase().replace(/[^a-z0-9]/g, " ")) != -1) {
				var tmp = marker.cloneNode(true);
				//forums[forum].insertBefore(tmp);
				forums[forum].appendChild(tmp);
			}
		}
	}
}
function addMarkers() {
	//new Ajax.Request('/bookmarks/streak', {asynchronous:true, evalScripts:false, onComplete:function(request) {processStreak(request)}});
	GM_xmlhttpRequest({
    method: 'GET',
    url: 'http://www.forumwarz.com/bookmarks/streak',
    onload: function(responseDetails) {
        processStreak(responseDetails);
    }
	});
}




if (dogreat timesent.title.indexOf("Domination") != -1) {
	window.addEventListener("load", function (e) {addMarkers();}, "false");
} else {
	addMarkers();
}

How might one implement such an improvement? (I’m useless at this ****).

Internet Delay Chat
Have fun playing!
To chat with other players, you must Join Forumwarz or Log In now!