// ==UserScript==
// @name Auto Refresh Page
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Обновляет страницу каждые 10 секунд
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
setTimeout(() => {
location.href = location.href.split('?')[0] + '?nocache=' + Date.now();
}, 10000);
})();
www.tampermonkey.net
Home | Tampermonkey
// ==UserScript==
// @name Claude Auto Send
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Automatically clicks the send button on claude.ai/new?q=
// @author Romaxa
// @match https://claude.ai/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=claude.ai
// @grant none
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
// Check that we're on the correct page
if (!window.location.href.startsWith('https://claude.ai/new?q=')) {
return;
}
// Function to click the send button
function clickSendButton() {
const sendButton = document.querySelector('button[type="button"][aria-label="Send message"]');
if (sendButton) {
sendButton.click();
return true;
}
return false;
}
// Wait 0.5 seconds for the button to appear, then try to click it
setTimeout(function() {
if (clickSendButton()) {
return;
}
// If button still not found, use MutationObserver to track DOM changes
const observer = new MutationObserver(function(mutations) {
if (clickSendButton()) {
observer.disconnect();
}
});
// Start observing the entire document
observer.observe(document.body, {
childList: true,
subtree: true,
attributes: false,
characterData: false
});
// Timeout in case button never appears
setTimeout(function() {
observer.disconnect();
}, 5000);
}, 500);
})();
👎1
<?php
use Symfony\Component\VarDumper\Caster\ScalarStub;
use Symfony\Component\VarDumper\VarDumper;
function dump(mixed ...$vars): mixed
{
if (!MODE_DEBUG) return null;
$date = date('[Y-m-d H:i:s]');
if (!$vars) {
VarDumper::dump(new ScalarStub('❤️'), $date);
return null;
}
if (array_key_exists(0, $vars) && 1 === count($vars)) {
VarDumper::dump($vars[0], $date);
$k = 0;
} else {
VarDumper::dump('Several variables:', $date);
foreach ($vars as $k => $v) {
VarDumper::dump($v, is_int($k) ? 1 + $k : $k);
}
}
$backtrace = debug_backtrace(2);
echo $backtrace[0]['file'] . ':' . $backtrace[0]['line'] . PHP_EOL;
if (1 < count($vars)) {
return $vars;
}
return $vars[$k];
}
sudo apt install php8.5-cli php8.5-common php8.5-mysql php8.5-pgsql php8.5-xml php8.5-curl php8.5-mbstring php8.5-zip php8.5-gd php8.5-fpm
GIT_SSL_NO_VERIFY=true git clone ...
git config --global http.sslVerify false
Makefile Tips
Use Parent Makefile:
Change Dir and Use Different Makefile:
#makefile
Use Parent Makefile:
include ../Makefile
Change Dir and Use Different Makefile:
%:
cd .. && $(MAKE) $@
#makefile