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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
<html> | |
<head> | |
<title>Untitled</title> | |
<script> | |
function ge(elementName){ return document.getElementById(elementName); } | |
function copyInput(hi){ | |
var mask="(___) ___-__-__"; | |
var ouput = mask; | |
var input = hi.value+"|"; |
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 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; |