This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Untitled</title> | |
<script> | |
const $ = (elementName) => document.querySelector(elementName); | |
const copyInput = (hiddenInput) => { | |
const mask = $("#mask").value; | |
const maskDigitsCount = mask.match(/_/g).length; |
This file contains hidden or 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 offset = parseInt(document.getElementsByClassName("summary")[0].innerText.match("[0-9]+")[0]);//первое (и единственное) число в описании - количество фотографий. | |
var path = document.location.pathname.split("?")[0];//обрабатываемые пути: vk.com/album... vk.com/photos... | |
var album = (path.search("photos")==-1)? ("album"+ path.split("/album")[1]) : ("photos"+ path.split("/photos")[1]); | |
var listPh = []; | |
var isOpera = !(this.opera === undefined);//в "старой" Опере можно сохранять удобнее, не открывая "простыню" из всех фотографий. | |
function sendReq(){ | |
var Ajax = new XMLHttpRequest(); | |
Ajax.onreadystatechange=function(){ | |
if(Ajax.readyState === 4 && Ajax.status === 200){ | |
var resp = Ajax.responseText; |