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
list = [].slice.call(document.getElementsByClassName('WB_cardwrap')).map(x=>x.getAttribute('mid')).filter(x=>x); | |
list.forEach(mid => { | |
var xhr = new XMLHttpRequest(); | |
xhr.open('POST', 'https://www.weibo.com/aj/mblog/del?ajwvr=6', false); | |
var fd = new FormData(); | |
fd.append('mid', mid); | |
xhr.send(fd); | |
}) |
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 get_featured_color() { | |
/* Here is an example for wordpress, replace $filepath in your situation. */ | |
$post_thumbnail_id = get_post_thumbnail_id(); | |
$filepath = get_attached_file($post_thumbnail_id); | |
$im = imagecreatefromstring(file_get_contents($filepath)); | |
$nx = imagesx($im); | |
$ny = imagesy($im); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <windows.h> | |
int main() | |
{ | |
HWND hwnd = FindWindow("Shell_TrayWnd", NULL); | |
if (hwnd == NULL) { | |
fprintf(stderr, "Unable to find the taskbar.\n"); |