Skip to content

Instantly share code, notes, and snippets.

@OpenGG
OpenGG / Hide.Putao.Girl.js
Created May 28, 2012 14:14
Hide Putao Girl
Array.prototype.forEach||(Array.prototype.forEach=function(c,d){var e,a;if(null==this)throw new TypeError("this is null or not defined");var b=Object(this),g=b.length>>>0;if("[object Function]"!={}.toString.call(c))throw new TypeError(c+" is not a function");d&&(e=d);for(a=0;a<g;){var f;a in b&&(f=b[a],c.call(e,f,a,b));++a}});
Array.prototype.forEach.call(document.querySelectorAll('#shboxShowDiv p'),function(i){
if(i.innerHTML.indexOf('<b>\u8461\u8404\u5A18</b>')!==-1){
i.parentNode.removeChild(i);
}
});
@OpenGG
OpenGG / compiled.js
Created September 29, 2013 05:23
Make JS even more difficult to understand.
(function (b, f, g, h, k, l, m, n, p, q, r, s, t, c, a, u, v, d, w, x, y, e, z,
A) {
h(f);
c[d](g, [k, s, [m, n, p][a](y), r, [A, [[b, z][a](e), [q, v][a](e)][a](
l)][a](w)][a](x));
c[d](typeof document);
b = new t(u);
c[d](b)
})("param0", !0, "a", alert, "http:", "&", "www", "weibo", "com", "param1",
"somewhere", "", RegExp, console, "join", "aaa", "data1", "log", "?", "/",
<!doctype html>
<html>
<head>
<title>canvas test</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<style>
html, body {
@OpenGG
OpenGG / designer.html
Created June 19, 2015 07:11
designer
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-app.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@OpenGG
OpenGG / 0.Readme.md
Last active November 4, 2019 10:05
DSM 实用技巧

说明

Synology DiskStation Manager 是一个不错的系统,它的 GUI 界面方便而强大,可以让用户 在不接触命令行的情况下轻松管理 NAS,使用 SMB 文件共享、下载、防火墙管理、磁盘管理 等多种功能。

但 DSM 并非完美,有的时候,一些实用的小技巧可以让它更加好用。

安装 Docker

@OpenGG
OpenGG / index.html
Created July 9, 2017 10:16
toString()
<script>
document.documentElement.innerHTML = toString();
</script>
@OpenGG
OpenGG / babel.user.js
Created October 19, 2017 06:16
nga.blocker
// ==UserScript==
// @name nga.blocker
// @namespace http://ngacn.cc/
// @version 0.1
// @description Block threads by titles and authors
// @author OpenGG
// @match https://bbs.ngacn.cc/thread.php?fid=*
// @grant none
// ==/UserScript==
# nvram set udpxy_clients=30
killall udpxy
/usr/sbin/udpxy -m eth2.2 -p $(nvram get udpxy_enable_x) -B 2Mb -H 5 -c $(nvram get udpxy_clients)
# f427za 开telnet
sendcmd 1 DB set TelnetCfg 0 TS_Enable 1
sendcmd 1 DB set PortControl 3 PortEnable 1
sendcmd 1 DB set TelnetCfg 0 Lan_Enable 1
sendcmd 1 DB set TelnetCfg 0 Lan_EnableAfterOlt 1
sendcmd 1 DB save
reboot
# f427za 设置loid 为已注册
@OpenGG
OpenGG / gist:5feea9aad65a5d98f77cb8c68d192d72
Created March 16, 2018 14:58
phicomm t1 remove bloatware
pm uninstall -k --user 0 com.feixun.dangbeimarket
pm uninstall -k --user 0 com.tianci.ad
pm uninstall -k --user 0 com.feixun.qiyiguo
pm uninstall -k --user 0 cn.cibn.health
pm uninstall -k --user 0 com.pptv.tvsports.preinstall
pm uninstall -k --user 0 com.phicomm.phiweather
pm uninstall -k --user 0 com.pplive.atv
pm uninstall -k --user 0 cn.cibntv.ott
pm uninstall -k --user 0 com.phicomm.update
pm uninstall -k --user 0 com.phicomm.datatracker