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)
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?
You can also watch events on Help.com as they happen
errr… i thought i had gotten it where it wouldnt remove all my code… but half of its gone….
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('’).
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)
Ok I can’t read all the code mumbo-jumbo… but I think it’s a SWELL idea! How do we get this??
downtowndaisy invited 40 users to read this post 1 year, 2 months ago.
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;
};
Sounds good to me :) Sorry, no techie here:(
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…
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…
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…
Yeah, it sounds useful.
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;
};
►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.
►Shizuko-Sophie◄ wrote:
obamadaisy wrote:
►Shizuko-Sophie◄ wrote:
any point in thishe 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.
hey sophie, just who does it disrupt?
- Fire
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.
Just so you know the site is going to be changing in little over a month and none of this will continue to work.
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
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.
aww…
and i so liked improving functionality of the site…
- Fire
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
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;
};
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?
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.
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.