Skip to content

Instantly share code, notes, and snippets.

@dandelionred
dandelionred / convert.php
Last active September 2, 2020 12:20
[tampermonkey] vk image save
<?php
/**
* Decode base64 encoded string with '+/=' replaced with '._-'.
* @param type $s
* @return type
*/
function base64Xd($s) {
return base64_decode(strtr($s, '._-', '+/='));
}