Skip to content

Instantly share code, notes, and snippets.

march1993 march1993

Block or report user

Report or block march1993

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
march1993 / remove.js
Created Jul 12, 2018
删除新浪微博 在每一页打开 console 执行 2018/07/12
View remove.js
list = []'WB_cardwrap')).map(x=>x.getAttribute('mid')).filter(x=>x);
list.forEach(mid => {
var xhr = new XMLHttpRequest();'POST', '', false);
var fd = new FormData();
fd.append('mid', mid);
march1993 / get_dominant_color.php
Last active Mar 4, 2018
PHP get dominant color
View get_dominant_color.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);
march1993 / main.c
Created Feb 26, 2018
Prevent Windows taskbar still being visible when applications are in fullscreen.
View main.c
#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");
You can’t perform that action at this time.