Skip to content

Instantly share code, notes, and snippets.

@GodSaveEarth
GodSaveEarth / vk_extract_friends.js
Created February 3, 2020 08:31
Скопировать все id друзей с текущего экрана
x = document.getElementsByClassName("friends_field_title");
r = "";
for (i = 0; i < x.length; i++) {
a = x[i].getElementsByTagName("a")[0];
l = a.getAttribute("href").substr(1);
r += l + "<br>\n";
}
//console.log(r);
var myWindow=window.open(''); myWindow.document.write(r);
@GodSaveEarth
GodSaveEarth / fix
Last active December 24, 2019 12:12
<script src="//cdn.jsdelivr.net/gh/ilyabirman/Likely/release/likely.js"></script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/ilyabirman/Likely/release/likely.css">
<style>
.t746__imgwrapper {
/* спиннер на время загрузки */
background: url(//cdnjs.cloudflare.com/ajax/libs/design-system/2.9.4/images/spinners/slds_spinner_brand.gif) no-repeat center;
}
.t-slds__caption__container {
text-align: center; /* центрует соцкнопки */
}
@GodSaveEarth
GodSaveEarth / add_calendars.js
Created December 14, 2019 16:03
Add all public calendars to your Google calendar
// go to Add calendar -> Browse calendars of interest
// and execute in console
divs = document.querySelectorAll("div[role=checkbox][aria-checked=false]")
[].forEach.call(divs, function(div) {
div.click()
});
function strposm($s,$a) {
foreach($a as $s1) {
if(stripos($s, $s1)!== false) return true;
}
return false;
}
@GodSaveEarth
GodSaveEarth / bookmarklet.js
Last active May 31, 2019 22:03
Test bkmrks
//
console.log(123);
if(true==false) {
console.log("123"+
"asdasd");
}
@GodSaveEarth
GodSaveEarth / bookmarklet.js
Created May 31, 2019 21:18
name your bookmarket
here we go
@GodSaveEarth
GodSaveEarth / bookmarklet.js
Created May 31, 2019 21:17
name your bookmarket
// write your bookmarklet here
@GodSaveEarth
GodSaveEarth / bookmarklet.js
Created May 31, 2019 21:13
name your bookmarket
// write your bookmarklet here
@GodSaveEarth
GodSaveEarth / bookmarklet.js
Created May 31, 2019 21:11
name your bookmarket
// write your bookmarklet here
@GodSaveEarth
GodSaveEarth / bookmarklet.js
Created May 31, 2019 21:08
name your bookmarket
// write your bookmarklet here