Skip to content

Instantly share code, notes, and snippets.

gem install jekyll
@mayukojpn
mayukojpn / 3column-metabox.js
Created July 11, 2016 06:53
WordPress の管理画面のメタボックスを3カラムにする
(function(d,s){s=d.createElement('style');t=d.createTextNode("#postbox-container-2 .postbox{width: 30%;float: left;margin-right: 10px;}");s.appendChild(t);d.head.appendChild(s);})(document);
@mayukojpn
mayukojpn / shortcake-ui-demo.php
Last active March 28, 2017 21:47
ShortCake UI Demo Plugin
<?php
/**
* Plugin Name: Shortcake UI Pullquote Demo
* Plugin URI:
* Description: Try Shortcake with pull-quite shortcode
* Version: 1.0.0
* Author: Mte90
* License: GPL2
*/
@mayukojpn
mayukojpn / wp_setup_nav_menu_item_hotfix.php
Last active February 26, 2016 17:08 — forked from torounit/wp_setup_nav_menu_item_hotfix.php
wp_setup_nav_menu_item の Hotfix
<?php
/*
Plugin Name: #35324 hotfix
Plugin URI: https://core.trac.wordpress.org/ticket/35324
Description: This will fix a bug of post type archives support in nav menus.
Author: Toro_Unit, extendwings, mayukojpn
Author URI: https://gist.github.com/mayukojpn/6ef62c39dcf48c17ed96
Version: 0.1
*/
add_filter('wp_setup_nav_menu_item', function( $menu_item ) {
@mayukojpn
mayukojpn / fb_namelist.js
Last active November 22, 2015 04:23
Facebook コメントをもとに名簿をつくる
//「 コメントをすべて見る」の状態で発動させます。
var list=document.getElementsByClassName('UFIList')[0].childNodes[2].childNodes;
for(var i=0;i<=list.length;i++){
if(list[i].className!==' UFIReplyList'){
var content = list[i].childNodes[0].childNodes[1].childNodes[0].childNodes[1].childNodes[0].childNodes[0].childNodes;
document.write(
i+','
+content[0].innerText+',' //名前
+content[0].childNodes[0].href+',"' //Facebook URL
+content[1].innerText //コメント内容
@mayukojpn
mayukojpn / wc-count-attendees.js
Created October 7, 2015 05:45
WordCamp の参加者を数える
// ブラウザで参加者リストを開いて、コンソールで以下をたたいてね。
console.log("31日:"+document.getElementsByClassName("tix-attendee-list")[0].getElementsByTagName('li').length);
console.log("コントリビューターデイ:"+document.getElementsByClassName("tix-attendee-list")[1].getElementsByTagName('li').length);
@mayukojpn
mayukojpn / width-for-mobile.css
Created October 5, 2015 01:47
画面幅600px以下で、画像の文字まわりこみをやめる
@media (max-width: 600px) {
img.alignleft, .alignleft img, img.aligncenter, .aligncenter img, img.alignright, .alignright img, img.alignnone, .alignnone img {
padding: 5px 0;
border: 0;
min-width: 100%;
}
}
@mayukojpn
mayukojpn / facebook-mass-delete-group-members.js
Last active November 8, 2018 05:11 — forked from michaelv/facebook-mass-delete-group-members.js
This javascript removes all users from a facebook group. It works with the new facebook layout. Paste this in the javascript console. Script tested in Firefox. Known issues: 1. when facebook responds slowly, the script might experience hickups.. 2. occasionially, the error 'this user is not a member of the group' pops up.. IMPORTANT: add your ow…
var deleteAllGroupMembers = (function () {
var deleteAllGroupMembers = {};
// the facebook ids of the users that will not be removed.
// IMPORTANT: add your own facebook id here so that the script will not remove yourself!
var excludedFbIds = ['1234','11223344']; // make sure each id is a string!
var usersToDeleteQueue = [];
var scriptEnabled = false;
var processing = false;
deleteAllGroupMembers.start = function() {
Index: trunk/hello-wapuu.php
===================================================================
--- trunk/hello-wapuu.php (revision 1233773)
+++ trunk/hello-wapuu.php (working copy)
@@ -2,10 +2,11 @@
/*
Plugin Name: Hello Wapuu
Plugin URI: http://wp3.jp/
-Description: WordPress Japanese official character "Wapuu" is plugin to speak a message on a dashboard.
+Description: Ja.wordpress.org official character "わぷー(Wapuu)" will tell you about your activity on a dashboard.