Skip to content

Instantly share code, notes, and snippets.

View apisurfer's full-sized avatar
🚴

Luka Vidaković apisurfer

🚴
View GitHub Profile
@apisurfer
apisurfer / twitter-like-removal
Created December 18, 2022 19:05
remove-twitter-likes
// 1. open profile -> likes page
// 2. paste the following code to console and keep the tab open.
// 15000(15s) number means every 15 seconds the script will cleanup likes from the current more or less :D
// tweak the number if you stumble upon API rate limits(HTTP 429)
setInterval(() => {
for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
d.click()
}
window.scrollTo(0, document.body.scrollHeight)
Rank Type Prefix/Suffix
1. Prefix my+
2. Suffix +online
3. Prefix the+
4. Suffix +web
5. Suffix +media
6. Prefix web+
7. Suffix +world
8. Suffix +net
9. Prefix go+

Keybase proof

I hereby claim:

  • I am lvidakovic on github.
  • I am lvidakovic (https://keybase.io/lvidakovic) on keybase.
  • I have a public key ASC0pEV5vm4NBuGWiMMIhNcDqLG8UyZooy-5pcKT80fofAo

To claim this, I am signing this object:

@apisurfer
apisurfer / GPG and git on macOS.md
Created December 13, 2019 16:59 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
Hi,
I'm afraid I'm not interested in this position right now.
I would like to know how you're getting my details and what you're storing though. Under my rights from the GDPR, can you please tell me:
* what personal data you have collected about me?
* the source of this data?
* who you've shared it with, and under what basis?
* how this data is being used?
@apisurfer
apisurfer / unicodeIconMap.js
Last active April 27, 2018 08:19
Unicode smilies map, roughly grouped in major categories
// extracted from http://www.unicode.org/emoji/charts/full-emoji-list.html
export default {
'Smileys & People': [
{
'hexCode': '1F600',
'description': 'grinning face',
'name': 'grinningFace'
},
{
<!doctype html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Execute script from image</title>
<meta name="author" content="popc0rn - Luka Vidakovic">
</head>
<body>
<div id="x"></div>
function decode(imageURL) {
"use strict"
function createShadowCanvas(width, height) {
var canvas = document.createElement('canvas')
canvas.width = width
canvas.height = height
return canvas
}
@apisurfer
apisurfer / is-console-opened.js
Last active October 13, 2015 20:58
Write text line by line when user opens console
function isConsoleOpened() {
var threshold = 160;
return (window.Firebug && window.Firebug.chrome && window.Firebug.chrome.isInitialized) ||
window.outerWidth - window.innerWidth > threshold || window.outerHeight - window.innerHeight > threshold;
}