friends help: Scripting - Help.com

Editors:

Scripting

**update** is most likely not avaliable
the script is now available. more information here
http://help.com/post/200238-helpcom-m...

I often write scripts for use with help.com, and i am currently working on adding a button to all posts that will invite all of your friends in the friends list with one click.

document.body.innerHTML='’ + document.body.innerHTML;
alert(”good”);
document.getElementByID(’abuttonprim e’).value;
var button=document.getElementByID(’abutton’);
button.addEventListener(”click”, function(e) {var x=document.getElementsByName(”invite_uids[]”); for (var i = 0; i < x.length; i++){ x[i].checked=true; }; }, false);

alert(”debug started”);
var x=document.getElementsByName(”invite_uids[]”);
alert(”Setting all “+ x.length + ” friends to receive invites”);
for (var i = 0; i < x.length; i++)
{
x[i].checked=true;
};

This open post was written 1 year, 2 months ago | V/U/S: 400, 28, 4 | Edit Post | Leave a reply | Report Post


Reciprocity (3) Many thank yous! The poster has helped others since their own post was made.

Since writing this post Fire has helped in 3 other users' posts within the last 4 days. Fire is a verified member, has been around for 3 years, 7 months and has 69 posts and 3,164 replies to their name.

Post Tags (10)

Replies (28)

Where were you?

Click and drag to move the map around. FAQ: How we place people on this map »
You can also watch events on Help.com as they happen
Mouse over the map for 2 seconds to see an expanded, interactive view

Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 2 months ago (7 minutes after post)

errr… i thought i had gotten it where it wouldnt remove all my code… but half of its gone….

Quote this reply Report this reply to moderators
Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 2 months ago (9 minutes after post)

alert(”debug started”);
var x=document.getElementsByName(”invite_uids[]”);
alert(”Setting all “+ x.length + ” friends to receive invites”);
for (var i = 0; i x.length; i++)
{
x[i].checked=true;
};

i know that part works though, and the point is that i just need a way to trigger it, but i cant use Onclick, and i cant access elements added later(via innerhtml) by getElementByID('’).

Quote this reply Report this reply to moderators
Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 2 months ago (11 minutes after post)

alert(”debug started”);
var x=document.getElementsByName(”invite_uids[]”);
alert(”Setting all “+ x.length + ” friends to receive invites”);
for (var i = 0; i < x.length; i++)
{
x[i].checked=true;
};

(i repost this because the < sign was missing in the last)

Quote this reply Report this reply to moderators
downtowndaisy offline Verified User (1 year, 10 months) Long Term User Shouts: 1 #
An Undisclosed Location | 1 year, 2 months ago (23 minutes after post)

Ok I can’t read all the code mumbo-jumbo… but I think it’s a SWELL idea! How do we get this??

Quote this reply Report this reply to moderators
Help me with: I’m leaving…
downtowndaisy offline Verified User (1 year, 10 months) Long Term User Shouts: 1 #
An Undisclosed Location | 1 year, 2 months ago (24 minutes after post)

*clicks all her friends individually to invite them to post*

Quote this reply Report this reply to moderators
Help me with: I’m leaving…

downtowndaisy invited 40 users to read this post 1 year, 2 months ago.

Help me with: I’m leaving…
Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 2 months ago (39 minutes after post)

okay, the following is a complete rewrite of the above code. so far so good… now i just need to add a listener to it.

// ==UserScript==
// @name Check All Invites
// @namespace Help.com
// @description Easy blanket invites at help.com
// @include http://help.com/post/*
// ==/UserScript==

// create an empty element node
// without an ID, any attributes, or any content
var sp1 = document.createElement(”input”);

// give it an id attribute called ‘newSpan’
sp1.setAttribute(”id”, “newButton”);
sp1.setAttribute(”type”, “button”);
sp1.setAttribute(”value”, “invite ALL friends”);
sp1.setAttribute(”style”, “position:fixed;left:5px;top:5px;”);

var sp2 = document.body;
var parentDiv = sp2.parentNode;

// insert the new element into the DOM before sp2
parentDiv.insertBefore(sp1, sp2);

alert(”debug started”);
var x=document.getElementsByName(”invite_uids[]”);
alert(”Setting all “+ x.length + ” friends to receive invites”);
for (var i = 0; i < x.length; i++)
{
x[i].checked=true;
};

Quote this reply Report this reply to moderators
seas light offline Verified User (1 year, 3 months) Long Term User Shouts: 6 #
An Undisclosed Location | 1 year, 2 months ago (40 minutes after post)

Sounds good to me :) Sorry, no techie here:(

Quote this reply Report this reply to moderators
Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 2 months ago (1 hour, 42 minutes after post)

im done with the beta. im going to make a post to distribute it, but first i need to find my password for userscipts.org…

Quote this reply Report this reply to moderators
~Shie~ offline Verified User (2 years, 1 month) Long Term User Shouts: 11 #
Gloversville, NY, US | 1 year, 2 months ago (2 hours, 50 minutes after post)

that is awesome… and although i dont understand all those codes… im glad someone does and yes.. it would be a great asset to this site…

Quote this reply Report this reply to moderators
Help me with: ~I need your help~
Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 2 months ago (2 hours, 57 minutes after post)

http://help.com/post/200238-helpcom-m…

release of script post.

sorry guys, only firefox and google chrome users for now.
http://help.com/post/200238-helpcom-m…

Quote this reply Report this reply to moderators
Neutra offline Verified User (1 year, 4 months) Long Term User Shouts: 19 #
An Undisclosed Location | 1 year, 2 months ago (3 hours, 20 minutes after post)

Yeah, it sounds useful.

Quote this reply Report this reply to moderators

Fire edited this post 1 year, 2 months ago. Read the previous text »

Scripting

I often write scripts for use with help.com, and i am currently working on adding a button to all posts that will invite all of your friends in the friends list with one click.

document.body.innerHTML='’ + document.body.innerHTML;
alert(”good”);
document.getElementByID(’abuttonprime’).value;
var button=document.getElementByID(’abutton’);
button.addEventListener(”click”, function(e) {var x=document.getElementsByName(”invite_uids[]”); for (var i = 0; i < x.length; i++){ x[i].checked=true; }; }, false);

alert(”debug started”);
var x=document.getElementsByName(”invite_uids[]”);
alert(”Setting all “+ x.length + ” friends to receive invites”);
for (var i = 0; i < x.length; i++)
{
x[i].checked=true;
};

This reply has been removed.
downtowndaisy offline Verified User (1 year, 10 months) Long Term User Shouts: 1 #
An Undisclosed Location | 1 year, 1 month ago (1 week, 5 days after post)

►Shizuko-Sophie◄ wrote:
any point in this

he had another post that got deleted which had links that allowed us to get an “invite all friends” button on help.com.. it actually worked. I got it, but I don’t know the link if you want it.

Quote this reply Report this reply to moderators
Help me with: I’m leaving…
This reply has been removed.
downtowndaisy offline Verified User (1 year, 10 months) Long Term User Shouts: 1 #
An Undisclosed Location | 1 year, 1 month ago (1 week, 5 days after post)

►Shizuko-Sophie◄ wrote:

obamadaisy wrote:
►Shizuko-Sophie◄ wrote:
any point in this

he had another post that got deleted which had links that allowed us to get an “invite all friends” button on help.com.. it actually worked. I got it, but I don’t know the link if you want it.

no thank you ….those sort of scripts can be disruptive to sites and you dont need one to do that anyway.

Just makes it easier if you want to invite all your friends at one time… in any case he created the script for it, and he did a pretty good job.. I’m happy at least hehe.

Quote this reply Report this reply to moderators
Help me with: I’m leaving…
Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 1 month ago (1 week, 5 days after post)

hey sophie, just who does it disrupt?

- Fire

Quote this reply Report this reply to moderators
c-eek offline Verified User (1 year, 7 months) Long Term User Shouts: 15 #
An Undisclosed Location | 1 year, 1 month ago (1 week, 6 days after post)

I am for it, but users should be instructed to use it appropriately. Some posts that the helpers enjoy, like birthday greetings, might not be of interest to every one of their friends. Other posts, like when someone needs a variety of ideas to solve a problem, would be more likely to receive attention if we could just click once. I think that the more options we have, the better the site will be.
Thank you, Fire, for your effort to improve the site.

Quote this reply Report this reply to moderators
yourabi offline Verified User (1 year, 9 months) Admin Help.com Volunteer Moderator Long Term User Shouts: 5 #
San Francisco, CA, US | 1 year, 1 month ago (2 weeks after post)

Just so you know the site is going to be changing in little over a month and none of this will continue to work.

Quote this reply Report this reply to moderators
Help me with: New Admin
Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 1 month ago (2 weeks after post)

and thats why i shall change the scripts.

adding usability where it did not previously exist, improving the overall experience of help.com.

:)

but im glad to hear it will change.

- Fire

Quote this reply Report this reply to moderators
yourabi offline Verified User (1 year, 9 months) Admin Help.com Volunteer Moderator Long Term User Shouts: 5 #
San Francisco, CA, US | 1 year, 1 month ago (2 weeks after post)

Um. No. That’s why I am going to prevent the loophole that lets you do this at all.

Also, please stop encouraging people to use your js.

All Help.com development will come from the site.

Quote this reply Report this reply to moderators
Help me with: New Admin
Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 1 month ago (2 weeks after post)

aww…

and i so liked improving functionality of the site…

- Fire

Quote this reply Report this reply to moderators
Fire offline Verified User (3 years, 7 months) Long Term User Shouts: 2 #
An Unknown Location | 1 year, 1 month ago (2 weeks after post)

is there anything i can do then?

i would love to help out in any way possible with the new site makeover/redesign.

i could be a beta tester. i know how to test things thoroughly, and can help find any flaws for you…

- Fire

Quote this reply Report this reply to moderators

S edited this post 1 year, 1 month ago. Read the previous text »

Scripting

**update
the script is now available. more information here
http://help.com/post/200238-helpcom-m...

I often write scripts for use with help.com, and i am currently working on adding a button to all posts that will invite all of your friends in the friends list with one click.

document.body.innerHTML='’ + document.body.innerHTML;
alert(”good”);
document.getElementByID(’abuttonprime’).value;
var button=document.getElementByID(’abutton’);
button.addEventListener(”click”, function(e) {var x=document.getElementsByName(”invite_uids[]”); for (var i = 0; i < x.length; i++){ x[i].checked=true; }; }, false);

alert(”debug started”);
var x=document.getElementsByName(”invite_uids[]”);
alert(”Setting all “+ x.length + ” friends to receive invites”);
for (var i = 0; i < x.length; i++)
{
x[i].checked=true;
};

Help me with:
downtowndaisy offline Verified User (1 year, 10 months) Long Term User Shouts: 1 #
An Undisclosed Location | 1 year, 1 month ago (2 weeks, 2 days after post)

yourabi wrote:
Um. No. That’s why I am going to prevent the loophole that lets you do this at all.

Also, please stop encouraging people to use your js.

All Help.com development will come from the site.

Can you explain to me what the big deal is if he creates functional things that we can use on the site?

Quote this reply Report this reply to moderators
Help me with: I’m leaving…
This reply has been removed.
c-eek offline Verified User (1 year, 7 months) Long Term User Shouts: 15 #
An Undisclosed Location | 1 year, 1 month ago (2 weeks, 2 days after post)

Isn’t there a way to incorporate the best of Fire’s ideas to improve the site? It seems to me that being open to new ideas and helpfulness in general is what this site is all about. It appears to this user, who admittedly, knows nothing about web design, that Fire has some valuable skills. His offer to help seems genuine.

Quote this reply Report this reply to moderators

Invite Others to Help

A logged in and verified Help.com member has the ability to setup a Friends List and invite others to help with posts.