Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file added .vs/AMF/v17/.wsuo
Binary file not shown.
3 changes: 3 additions & 0 deletions .vs/ProjectSettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"CurrentProjectSetting": null
}
7 changes: 7 additions & 0 deletions .vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\C:\\Users\\Caner\\Source\\Repos\\AMF",
"PreviewInSolutionExplorer": false
}
Binary file added .vs/slnx.sqlite
Binary file not shown.
28 changes: 13 additions & 15 deletions networks/instagram.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
function do_instagram_like(){

function do_instagram_like() {
state = _STATE_WAIT_TO_CLOSE;
wait_time = generateRandom(5, 8);

var sec = document.querySelector('section._aamu');
if(!sec) { return; }

var btns = sec.querySelectorAll("svg._ab6-");
if(!btns) { return; }

for(var i=0; i<btns.length; i++){
var svgs = btns[i].querySelectorAll('svg[aria-label="Like"]');
if(svgs){
btns[i].parentNode.click();
break;
}

var likeSVG = document.querySelector('svg[aria-label="Like"]');
if (!likeSVG) { return false; }

var clickableDiv = likeSVG.closest('div[role="button"]');

if (clickableDiv) {
clickableDiv.click();
return true;
} else {
console.log("Clickable div not found");
return false;
}
}

Expand Down
13 changes: 8 additions & 5 deletions networks/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function do_twitter_like() {
return false;
}


function do_twitter_follow() {

state = _STATE_WAIT_TO_CLOSE;
Expand All @@ -44,18 +45,20 @@ function do_twitter_follow() {
return false;
}

function do_twitter_retweet() {

function do_twitter_retweet() {
state = _STATE_WAIT_TO_CLOSE;
wait_time = generateRandom(5, 8);

var div = document.querySelector('div[data-testid="confirmationSheetConfirm"]');
if ((div) && (div.textContent === "Retweet")) {
var div = document.querySelector('div > span > span.css-901oao.css-16my406.r-poiln3.r-bcqeeo.r-qvutc0');

if (div && div.textContent === "Repost") {
div.click();
return true;
} else {
console.log("invalid confirmation sheet");
return false
}

return false;
}

function do_twitter_tweet() {
Expand Down
21 changes: 11 additions & 10 deletions networks/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@ function do_yt_sub() {
state = _STATE_WAIT_TO_CLOSE;
wait_time = generateRandom(5, 8);

const buttons = document.querySelectorAll('.ytd-subscribe-button-renderer');
if ((!buttons) || (buttons.length < 1)) {
console.log("No Subscribe button found :()");
return;
}

for (let i = 0; i < buttons.length; i++) {
const s = buttons[i].textContent;
if (s === 'Subscribe') {
buttons[i].click();
break;
const subscribeSpans = document.querySelectorAll('span.yt-core-attributed-string');

for (let span of subscribeSpans) {
if (span.textContent === 'Subscribe') {
const button = span.closest('button');
if (button) {
button.click();
return true;
}
}
}
console.log("No Subscribe button found :(");
return false;
}

let youtube_done = false;
Expand Down