Skip to content

Instantly share code, notes, and snippets.

View hzlzh's full-sized avatar
🎯
Focusing

hzlzh hzlzh

🎯
Focusing
View GitHub Profile
function backToTwitterBird() {
var svgElements = document.querySelector("svg.r-1cvl2hr");
var newSvgElement = document.createElementNS("http://www.w3.org/2000/svg", "svg");
newSvgElement.setAttribute("width", "24");
newSvgElement.setAttribute("height", "24");
newSvgElement.setAttribute("style", "fill:#1d9bf0;");
newSvgElement.setAttribute("viewBox", "0 0 24 24");
newSvgElement.setAttribute("aria-hidden", "true");
newSvgElement.setAttribute("focusable", "false");
newSvgElement.setAttribute("role", "none");
中文名文件.txt
via( https://gist.github.com/hzlzh/2be2951e5edd11f7c761 )
[General]
skip-proxy = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12, localhost, *.local
bypass-tun = 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
loglevel = notify
[Proxy]
MyHTTPProxy = http,xxx.xxx.xxx,123456
[Rule]
// REJECT RULES BLOCK SOME ADS
<script>
Bigger(); // 默认给 <body> 元素添加适配样式
Bigger('xxx'); // 给 <div class="xxx"> 元素添加适配样式(320px 设计宽度)
Bigger('yyy',400); // 给 <div class="yyy"> 元素添加适配样式(400px 设计宽度)
</script>
@hzlzh
hzlzh / play.html
Last active December 19, 2019 02:29
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="viewport" content="width=device-width,minimum-scale=1.0"/>
<title></title>
</head>
<body>
<style type="text/css">
video {
@hzlzh
hzlzh / video.html
Last active August 29, 2015 14:04
html5 video demo
<video poster="thumb.jpg" id="video" style="cursor: pointer;" >
<source src=http://techslides.com/demos/sample-videos/small.webm type=video/webm>
<source src=http://techslides.com/demos/sample-videos/small.ogv type=video/ogg>
<source src=http://techslides.com/demos/sample-videos/small.mp4 type=video/mp4>
<source src=http://techslides.com/demos/sample-videos/small.3gp type=video/3gp>
</video>
<script type="text/javascript">
var video = document.getElementById('video');
video.addEventListener('click',function(){
@hzlzh
hzlzh / WXG.md
Last active December 9, 2019 06:38
[微信·深圳] 招聘 前端开发工程师

[微信·深圳] 招聘 前端攻城师

  • 地点:深圳·南山(坐标:腾讯滨海大厦-新总部)
  • 到岗时间:越快越好
  • 招聘方式:内推、团队直招、简历直接到组长
  • 发布时间:2018年10月8日

职责:

  • 负责腾讯 微信游戏 业务相关 Web 产品的前端开发和重构
108.160.167.203 www.dropbox.com
108.160.167.203 dropbox.com
108.160.165.253 d.dropbox.com
108.160.165.211 notify7.dropbox.com
108.160.165.211 client-lb.dropbox.com
108.160.165.211 client.dropbox.com
108.160.165.211 client1.dropbox.com
108.160.165.211 client2.dropbox.com
108.160.165.211 client3.dropbox.com
@hzlzh
hzlzh / gist:eb87294712e78d4a96c4
Created June 24, 2014 06:36
Proxifier 走代理程序请求规则
"Alfred 2"; idea;Thunder*; iTerm; Terminal;php; Dropbox; Sparrow; "Sequel Pro"; python; ruby; wget; curl; GitHub; git-remote-https; npm; node; perl;prl*;itunes; sftp; whois;traceroute;stroke;ssh;ALiWangwang;MacUpdate*;git*;Git;fzs*;mail;flickr*;xulr*;imess*;com.apple.im*;Airmail;Adium;Prot*;Tokens;Ali*;Lite*;file*;ssh;ftp;Adobe*;PDApp*;Creative*;Vbox*;xulrunner;Virtual*;PDApp;Bit*;Domainers;fire*;plugin*;Atom*;Tokens;.com.realmacsoftware*;Xcode;java;httpd;
(function(){
function getWxShareData() {
var img = 'http://xxx.xxx.com/xxx.png';
var title = "分享标题";
var desc = '分享详细介绍文字';
var url = window.location.href.replace(/([&|\?]{1})ticket=[\w\-]+(&?)/, '$1').replace(/\?$/, '');
// 这个页面hardcode写死了,就不用这样判断了
// if(!img){