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 () | |
{ | |
'use strict'; | |
if (!confirm('Удалить все заметки со стены?')) return; | |
var deletePostLink = document.body.querySelectorAll('a.delete-stub_cancel'); | |
for (var i = 0; i < deletePostLink.length; i++) | |
{ | |
deletePostLink[i].click(); | |
} | |
alert( 'удалено записей:'+deletePostLink.length); |
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
(.*[а-яА-ЯёЁ]+.*)+ |
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
<?php | |
function TableOfContents($depth) | |
{ | |
$html_string = Articles_Detail('All'); | |
//get the headings down to the specified depth | |
$pattern = '/<h[2-'.$depth.']+ id=".+"[^>]*>.*?<\/h[2-'.$depth.']>/'; | |
$whocares = preg_match_all($pattern,$html_string,$winners); | |
//reformat the results to be more usable |
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> | |
<html> | |
<head> | |
<title>Copy Header Anchor</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> | |
</head> | |
<body> | |
<div class="section"> | |
<h1 id="section1">Section 1</h1> |