This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { GoogleGenerativeAI } from "@google/generative-ai"; | |
import dotenv from 'dotenv'; | |
import { execSync } from 'child_process' | |
dotenv.config(); | |
import ky from 'ky'; | |
const API_KEY = process.env.GOOGLE_API_KEY; // Replace with your actual API key | |
const systemMessage=`You are a commit message generator by creating exactly one commit message by the diff strings without adding unnecessary information! Here is the format of a good commit message from https://karma-runner.github.io/6.4/dev/git-commit-msg.html guides: | |
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { GoogleGenerativeAI } from "@google/generative-ai"; | |
import dotenv from 'dotenv'; | |
import {execa} from 'execa'; | |
dotenv.config(); | |
import ky from 'ky'; | |
const API_KEY = process.env.GOOGLE_API_KEY; // Replace with your actual API key | |
const systemMessage=`You are a commit message generator by creating exactly one commit message by the diff strings without adding unnecessary information! Here is the format of a good commit message from https://karma-runner.github.io/6.4/dev/git-commit-msg.html guides: | |
--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var totalHeight = 0; | |
var distance = 100; | |
var timer = setInterval(() => { | |
var scrollHeight = document.body.scrollHeight; | |
window.scrollBy(0, distance); | |
totalHeight += distance; | |
document.querySelectorAll("div[data-testid='unlike']").forEach(a=>{a.click();}) | |
if(totalHeight >= scrollHeight - window.innerHeight){ | |
clearInterval(timer); | |
resolve(); |
NewerOlder