Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document["AUTHOR"] = /PHOENIX/;
- if (!document["AUTHOR"]) {
- return false;
- };
- habbo = prompt("Que habbo deseja adicionar?");
- if (!habbo) habbo = "vidaroo";
- new Ajax.Request("/habblet/ajax/habboid?habboIdName=" + habbo, {
- onComplete: function (x) {
- x = x.responseText;
- if (x.match(/class="errors"/)) {
- console.error("O Habbo " + habbo + " não existe!");
- return false;
- };
- ID = (x.match(/<b>(.+)<\/b>/)[0].split(">")[1].split("<")[0]).replace(/ /gi, "");
- new Ajax.Request("/myhabbo/friends/add", {
- parameters: "accountId=" + ID
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement