This file contains 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
// ==UserScript== | |
// @name TweetXer | |
// @namespace https://gist.github.com/lucahammer/a4d1e957ec9e061e3cccafcbed599e16/ | |
// @version 0.5 | |
// @description Delete all your Tweets for free. | |
// @author Luca | |
// @match https://twitter.com/* | |
// @icon https://www.google.com/s2/favicons?domain=twitter.com | |
// @grant unsafeWindow | |
// ==/UserScript== |
This file contains 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
version: '3' | |
services: | |
snipeit: | |
image: snipe/snipe-it:latest | |
container_name: snipeit | |
ports: | |
- "44100:443" | |
volumes: | |
- ./storage/logs:/var/www/html/storage/logs |
This file contains 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
/* | |
This may get your account banned. It runs in your regular browser with your regular login without needing the API. | |
The script does the same things that you would do yourself: | |
Click the three dots, select delete Tweet, confirm, scroll to next Tweet, repeat. | |
========================== | |
Usage | |
1. Open your Twitter profile in a browser | |
2. Open the console in the developer tools (F12) | |
3. Paste the script and press enter | |
4. ??? |
This file contains 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
''' | |
Replace base_url, access_token and user_id | |
''' | |
import requests | |
base_url = 'https://vis.social/api/v1/' | |
# https://takahashim.github.io/mastodon-access-token/ | |
access_token = '###' | |
# which followers to visualize |
This file contains 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
(function (obj, method) { | |
obj[method] = (function (obj_method) { | |
return function (child) { | |
if (child.getAttribute("data-testid") == "tweet") return child; | |
return obj_method.apply(this, arguments); | |
}; | |
})(obj[method]); | |
})(Element.prototype, "removeChild"); |
This file contains 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
# https://github.com/Ernst79/bleparser | |
# https://gist.github.com/freol35241/48ca1d5e388b6892990dfd7fd6b3d2a2 | |
# Adapted by https://social.luca.run/@luca | |
# MIT License | |
# Copyright (c) 2021 freol35241 | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
This file contains 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
''' | |
MIT License | |
Copyright (c) 2019 Luca Hammer | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all |
This file contains 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
javascript:(function(){[].forEach.call(document.querySelectorAll('video,audio'), media => media.playbackRate += 0.5);console.log('playback speed: '+document.querySelectorAll('video,audio')[0].playbackRate);})(); | |
// slower: | |
// javascript:(function(){[].forEach.call(document.querySelectorAll('video,audio'), media => media.playbackRate -= 0.5);console.log('playback speed: '+document.querySelectorAll('video,audio')[0].playbackRate);})(); |
This file contains 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
''' | |
Permission is hereby granted, free of charge, to any person obtaining a | |
copy of this software and associated documentation files (the "Software"), | |
to deal in the Software without restriction, including without limitation | |
the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
and/or sell copies of the Software, and to permit persons to whom the | |
Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in | |
all copies or substantial portions of the Software. |
This file contains 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
from multiprocessing import Pool | |
import requests | |
import datetime | |
import time | |
MAX_PROCESSES = 100 #number of python processes that can run in parallel | |
TOOTS_PER_INSTANCE = 4000 #multiples of 40 | |
MASTOVERSE = ["mstdn.jp","pawoo.net","friends.nico","mastodon.social","mimumedon.com"] #instances you want to examine | |
def get_local_timeline(instance_url, count=80): |
NewerOlder