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
(async function () { | |
// Helper function to download JSON as a file | |
function downloadJSON(data, filename) { | |
const blob = new Blob([JSON.stringify(data, null, 2)], { type: 'application/json' }); | |
const url = URL.createObjectURL(blob); | |
const a = document.createElement('a'); | |
a.href = url; | |
a.download = filename; | |
document.body.appendChild(a); | |
a.click(); |
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
// donwload full page from https://toloka.to/tracker.php?nm= | |
// Function to simulate clicks with a delay | |
async function clickAndDownload() { | |
// Select all anchor elements with the specified class and href pattern | |
const downloadLinks = Array.from(document.querySelectorAll('a.genmed[href^="download.php?id="]')); | |
for (let i = 0; i < downloadLinks.length; i++) { | |
const link = downloadLinks[i]; | |
// Simulate a click on the link |
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
(async function() { | |
const qbittorrentUrl = window.location.origin; // Automatically gets the base URL of the Web UI | |
const apiPath = '/api/v2'; | |
const trackerToAdd = "NEW TRACKER URL HERE"; // Replace with the actual tracker URL | |
const specificTrackerToRemove = "OLD TRACKER URL HERE"; // What should be removed | |
// Helper function to make API requests | |
async function apiRequest(endpoint, method = 'GET', body = null) { | |
const options = { | |
method: method, |
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 to simulate clicks on buttons | |
function simulateClicks() { | |
// Select all anchor elements with the specified class | |
const buttons = document.querySelectorAll('a.torrent-search--list__file.form__standard-icon-button'); | |
// Retrieve the clicked URLs from local storage or initialize an empty array | |
const clickedUrls = JSON.parse(localStorage.getItem('clickedUrls')) || []; | |
// Log the number of buttons found | |
console.log(`Found ${buttons.length} button(s).`); |
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
# Check FFmpeg availability | |
$ffmpegPath = "ffmpeg" # Default to ffmpeg in PATH | |
# Check FFprobe availability | |
$ffprobePath = "ffprobe" # Default to ffprobe in PATH | |
# Function to check if ffmpeg exists in PATH | |
function Check-FFmpeg { | |
try { | |
$output = & $ffmpegPath -version 2>&1 |
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 UTP Request Checker | |
// @namespace Violentmonkey Scripts | |
// @version 1.2.1 | |
// @description Compare amounts and modify the vote button on UTP requests. | |
// @match https://utp.to/requests/* | |
// @grant none | |
// @updateURL https://gist.github.com/maksii/b8c4bf8bdf0de841532a3b4320cf9a1a.js | |
// @downloadURL https://gist.github.com/maksii/b8c4bf8bdf0de841532a3b4320cf9a1a.js | |
// ==/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
var inviter = {} || inviter; | |
inviter.userList = []; | |
inviter.className = 'button-secondary-small'; | |
inviter.refresh = function () { | |
window.scrollTo(0, document.body.scrollHeight); | |
window.scrollTo(document.body.scrollHeight, 0); | |
window.scrollTo(0, document.body.scrollHeight); | |
}; |