// ==UserScript==
// @name AmDm autoscroll change
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://amdm.ru/akkordi/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=amdm.ru
// @grant none
// ==/UserScript==
(function() {
'use strict';
function getElementByXpath(path) {
return document.evaluate(path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
}
getElementByXpath('//*[@id="body"]/div[2]/article/div[2]/div[2]/div[1]').innerHTML = `<button class="btn btn-primary btn-xs g-round" onclick="autoskrl(-0.5);"><i class="fa fa-minus"></i></button><span id="v_skroll_text" onclick="autoskrl(-speed);">Прокрутка</span><span id="v_skroll"></span><button class="btn btn-primary btn-xs g-round" onclick="autoskrl(0.5);"><i class="fa fa-plus"></i></button>`
})();
shell_exec('sh /tmp/testsh.sh');
shell_exec('/bin/sh /tmp/testsh.sh');
error_reporting(E_ALL);
ini_set('display_errors',1);
ls -la /tmp/testsh.sh
var data = {
"SiteInfo": {
"SiteURL": "devsite",
"WebName": ""
},
"TaxonomyGuid": "d3eaa59d-f18f-40ae-8b74-57233738d4e2",
"TermStoreName": "Managed Metadata Service Application"
}
$.ajax({
url: site,
type: "POST",
headers: {
"Accept": "application/json; odata=verbose"
},
data: JSON.stringify(data),
processData: false,
.....
})
$secretKey = "nXYFyArf6F6iQXTzg"; // хранится в тайне, известен только серверу
$a = "значение неподделываемого параметра А";
$b = "значение неподделываемого параметра B";
$params = array(
'param_a' => $a,
'param_b' => $b,
'sign' => md5( "param_a" . $a . "param_b" . $b . $secretKey),
);
printf( '<a href="http://site.com?%s">Суперссылка</a>', http_build_query($params));
var
d = document,
q = 'querySelector',
A = q + 'All',
P = 'parentNode',
e = 'Element',
s = 'Sibling',
p = 'previous' + e + s,
n = 'next' + e + s,
c = 'Child',
f = 'first' + e + c,
l = 'last' + e + c,
a = 'append' + c,
each = 'forEach';
document.querySelectorAll( '#test a' ).forEach( function( link ){ return link.search; } );
d[A]( '#test a' )[each]( a => a.search );
curl_setopt($ch, CURLOPT_USERPWD, "8(800)555-35-35" . ":" . "554400");
$base = "https://proverkacheka.nalog.ru:9999";
$derviceId = uniqid();
$deviceOS = "Android 4.4.4";
$protocol = "2";
$clientVersion = "1.4.1.3";
$userAgent = "okhttp/3.0.1";
$fn = $_GET["fn"];
$fd = $_GET["fd"];
$fs = $_GET["fs"];
$query = http_build_query([
'fiscalSign' => $fs,
'sendToEmail' => "no"
]);
$ch = curl_init("$base/v1/inns/*/kkts/*/fss/$fn/tickets/$fd?".$query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Device-Id: $derviceId",
"Device-OS: $deviceOS",
"Version: $protocol",
"ClientVersion: $clientVersion",
"ClientVersion: $clientVersion",
]);
curl_setopt($ch, CURLOPT_USERPWD, "8(800)555-35-35" . ":" . "554400");
$result = curl_exec($ch);
$json = json_decode($result);
var_dump($json);
shell
окружении c curl
EMAIL=email@example.ru
NAME=Name
PHONE=+79xxxxxxxxxx
curl -X POST -H "Content-Type: application/json; charset=UTF-8" https://proverkacheka.nalog.ru:9999/v1/mobile/users/signup -d "{\"email\":\"$EMAIL\", \"name\": \"$NAME\", \"phone\": \"$PHONE\"}" -i
PHONE=+79xxxxxxxxxx
PASS=555xxx
FN=87100001017610xx
FDP=41709130xx
FD=128xx
DERVICEID=curl
DEVICEOS=linux
curl -H "Device-Id: $DERVICEID" -H "Device-OS: $DEVICEOS" "https://$PHONE:$PASS@proverkacheka.nalog.ru:9999/v1/inns/*/kkts/*/fss/$FN/tickets/$FD?fiscalSign=$FDP&sendToEmail=no" -i