Talk:MassContacts

From The Urban Dead Wiki
Revision as of 23:49, 29 January 2019 by Weirdomen (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Restore back functionality to the script (again)?

Hi again! So, it seems that the script needs another fix now.

1) The header should be changed to:

// ==UserScript==
// @name        MassContacts
// @namespace       http://iwitness.urbandead.info
// @description      allows mass modification of contacts in UrbanDead
// @include        http://*urbandead.com/contacts.cgi*
// @include        http://*ud-malton.info/r*
// @grant        none
// @require      https://gist.githubusercontent.com/arantius/3123124/raw/grant-none-shim.js // ==/UserScript==
// ==/UserScript==

2) Additionally, every mention of cookie[0] in the script should be changed to cookies[cookies[1].name.endsWith("player") ? 1 : 0] (to accurately point to where your character's name is now).

So the "yourName" variable declaration becomes:

 var yourName = cookies[cookies[1].name.endsWith("player") ? 1 : 0].value.match(/(.+)-[\d|a-f]{32}/)[1]; 


After these two modifications, the script appears to be fully functional again.

--Weirdomen (talk) 23:49, 29 January 2019 (UTC)


Restore back functionality to the script?

It seems like the script won't work out of the box right now (Firefox 45 and Greasemonkey). I don't know much about js, but the main issue seemed to be the need to grant GM_getValue and GM_setValue to the script, so I just added the granting permissions on the header:

// ==UserScript==
// @name        MassContacts
// @namespace       http://iwitness.urbandead.info
// @description      allows mass modification of contacts in UrbanDead
// @include        http://*urbandead.com/contacts.cgi*
// @include        http://*ud-malton.info/r*
// @grant   GM_getValue
// @grant   GM_setValue
// ==/UserScript==

It looks like it's working now. I could import contacts and change their color. --Weirdomen (talk) 19:03, 21 April 2016 (UTC)


Mass coloring bug?

Heya folks, the mass colouring didn't work (use box settings) before I edited the following line number 198

from (which colours all the contacts with the first colour found)

var modTypes = massBox.value.match(/[\d+|d](?=\})/)[0];

to (which colours each contact with their own color setting)

var modTypes = modLists[i].match(/[\d+|d](?=\})/)[0];

--Snaip 21:28, 30 May 2009 (BST)

Combat revive

Definitely COMBAT REVIVE material.--Karekmaps?! 05:05, 5 April 2008 (BST)

It's also extremely difficult to read.--Karekmaps?! 11:17, 5 April 2008 (BST)
Do you mean the wiki page, or the extension? Feel free to edit the wiki page! SIM Core Map.png Swiers 20:39, 5 April 2008 (BST)
The wiki page, I'm gonna try and work out how to use this from the page then I'll make it more reader friendly.--Karekmaps?! 04:45, 6 April 2008 (BST)

DEM Revivication Requests

Erm, actually how do you do this? As in getting the list to be added to your own contact list. Can post a step-by-step procedure? --Ben2 04:50, 7 April 2008 (BST)

Use the new version of MassContacts. Go to http://www.ud-malton.info/revive.php and enter your settings (or use the DEM revive Request lookup bookkmarklet) and then look at the bottom of the page. Copy the formated list ino the text box on your contacts page, and you can add them all as contacts. SIM Core Map.png Swiers 05:17, 7 April 2008 (BST)
Ok thanks :) Tried it out and it really helps --Ben2 15:34, 11 April 2008 (BST)

Wikizen's Characters

Would it be agreeable to the community to add a section containing a MassContacts formatted list of the characters belonging to wiki regulars? The reason I ask is that I find it interesting to meet the people I talk to here in game and at times find it hard to locate their respective alts. A single unified location would greatly simplify this. I'm not looking for a majority voting so if anybody doesn't like the idea due to possible harassment I'll drop the proposal. --Klexur 00:34, 28 October 2012 (BST)

There lies some problems with this. Most players like to keep their alts secret, while others have their namesakes idled out. Also, most players who hide nothing already reveal a lot of information on their userpages. <_< --•▬ ▬••▬ • •••• •▬ ▬•▬• ▬•▬ #nerftemplatedsigs 00:38, 28 October 2012 (BST)