Notes
Notes - notes.io |
"use strict";
var liking = false;
var likingInterval;
// Function to generate a random delay (1-4 seconds)
function getRandomDelay() {
return Math.floor(Math.random() * 2222) + 1111; // 1-4 seconds in milliseconds
}
// Function to randomly decide to like or dislike (80% chance to like, 20% to dislike)
function likeOrDislike() {
var buttons = document.querySelectorAll("button");
var likeButton, dislikeButton;
for (var i = 0; i < buttons.length; i++) {
var button = buttons[i];
if (button.type === "button") {
if (button.className.includes("Bgi($g-ds-background-like):a")) {
likeButton = button;
} else if (button.className.includes("Bgi($g-ds-background-nope):a")) {
dislikeButton = button;
}
}
}
if (Math.random() < 0.92) {
// 80% chance to like
likeButton.click();
console.log("like " + getRandomDelay() + "ms");
} else {
// 20% chance to dislike
dislikeButton.click();
console.log("dislike " + getRandomDelay() + "ms");
}
}
// Function to control the auto liking process
function controlLiking() {
if (liking) {
// If already liking, stop
clearInterval(likingInterval);
liking = false;
this.textContent = "♥ START";
} else {
// Start the process
likingInterval = setInterval(likeOrDislike, getRandomDelay());
liking = true;
this.textContent = "♥ STOP";
}
}
var controlButton = document.createElement("button");
controlButton.setAttribute("id", "likeStartButton");
controlButton.textContent = "♥ START";
controlButton.style.position = "fixed";
controlButton.style.top = "15px";
controlButton.style.right = "15px";
controlButton.style.zIndex = "9999";
controlButton.style.background = "#FD3A73";
controlButton.style.borderRadius = "5px";
controlButton.style.fontWeight = "700";
controlButton.style.color = "white";
controlButton.style.padding = "15px 46px";
controlButton.style.cursor = "pointer";
// Add hover state
controlButton.style.transition = "background-color 0.3s";
controlButton.addEventListener("mouseover", function () {
controlButton.style.backgroundColor = darkenColor("#FD3A73", 0.1); // Adjust the darkness level here
});
controlButton.addEventListener("mouseout", function () {
controlButton.style.backgroundColor = "#FD3A73";
});
controlButton.addEventListener("click", controlLiking);
// Helper function to darken the color
function darkenColor(color, amount) {
// Convert the color to RGB
var rgb = parseInt(color.slice(1), 16);
var r = (rgb >> 16) & 0xff;
var g = (rgb >> 8) & 0xff;
var b = rgb & 0xff;
// Darken the color by the specified amount
r = Math.round(r * (1 - amount));
g = Math.round(g * (1 - amount));
b = Math.round(b * (1 - amount));
// Convert the RGB values back to hexadecimal
var darkenedColor =
"#" + ((r << 16) | (g << 8) | b).toString(16).padStart(6, "0");
return darkenedColor;
}
// Append the button to the document or a container element
document.body.appendChild(controlButton);
})();
document.getElementById("likeStartButton").click();
// Refresh the page after a delay of 3 seconds
setTimeout(function(){
location.reload();
}, 111000); // 3000 milliseconds = 3 seconds
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team