Skip to content

Instantly share code, notes, and snippets.

View xmannv's full-sized avatar
🎯
Focusing

X xmannv

🎯
Focusing
View GitHub Profile
const UnFollowAmount = async () => {
function getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
}
// 40 friends a seconds
let amount = 60; // 80/2 = 40
// wait for 5s to next unfollow
// ==UserScript==
// @name FB: Unfollow
// @version 0.1
// @description Quick Unfollow User from Facebook NewsFeed
// @author Xman (https://codetay.com)
// @match https://www.facebook.com/*
// @grant none
// ==/UserScript==
(function() {
@xmannv
xmannv / test.py
Created September 21, 2017 17:38 — forked from christianroman/test.py
Bypass Captcha using 10 lines of code with Python, OpenCV & Tesseract OCR engine
import cv2.cv as cv
import tesseract
gray = cv.LoadImage('captcha.jpeg', cv.CV_LOAD_IMAGE_GRAYSCALE)
cv.Threshold(gray, gray, 231, 255, cv.CV_THRESH_BINARY)
api = tesseract.TessBaseAPI()
api.Init(".","eng",tesseract.OEM_DEFAULT)
api.SetVariable("tessedit_char_whitelist", "0123456789abcdefghijklmnopqrstuvwxyz")
api.SetPageSegMode(tesseract.PSM_SINGLE_WORD)
tesseract.SetCvImage(gray,api)
print api.GetUTF8Text()