Skip to content

Instantly share code, notes, and snippets.

View mornone's full-sized avatar

mornone

  • qudao.com
  • Beijing
View GitHub Profile
@mornone
mornone / WxMockLogin.php
Created August 27, 2023 07:31 — forked from forecho/WxMockLogin.php
微信公众平台模拟登录
<?php
/**
*微信公众平台模拟登录
*
*实现了公众平台上的操作<br>包括 实时消息获取 快速回复 用户管理 群发消息 获取用户基本信息
*@copyright Copyright info
*@author dml
*@version version
*@package defalut
*/
@mornone
mornone / popup.js
Created July 4, 2012 03:52
修改后的popup.js,解除了FaWave无法同时选中新浪微博和其他微博的限制。
var fawave={};function getTimelineOffset(t){return $("#"+t+"_timeline ul.list > li").length;};function initOnLoad(){setTimeout(init,10);};var POPUP_CACHE={};function get_current_user_cache(cache,t){var c_user=getUser();var key=c_user.uniqueKey;if(t!=undefined){key+='_'+t;}
if(!cache){cache=POPUP_CACHE;}
var _cache=cache[key];if(!_cache){_cache={};cache[key]=_cache;}
return _cache;};var isNewTabSelected=window.is_new_win_popup?true:false;function init(){var c_user=getUser();if(!c_user){chrome.tabs.create({url:'options.html#user_set'});return;}else if(!c_user.uniqueKey){chrome.tabs.create({url:'options.html#no_uniqueKey'});return;}
$('a').live('click',function(e){var url=$.trim($(this).attr('href'));if(url&&!url.toLowerCase().indexOf('javascript')==0){chrome.tabs.create({url:$(this).attr('href'),selected:isNewTabSelected});return false;}}).live('mousedown',function(e){if(e.button==2){var url=$.trim($(this).attr('rhref'));if(url){chrome.tabs.create({url:url,selected:isNewTabSelected});e.srcElement.oncontextmenu=
@mornone
mornone / Excel.php
Created July 4, 2012 03:37 — forked from ihumanable/Excel.php
Simple Excel Writer in PHP
<?php
/**
* Simple excel writer class with no external dependencies, drop it in and have fun
* @author Matt Nowack
* @license Unlicensed
* @version 1.0
*/
class Excel {
private $col;