This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! Description: filter csdn and some website | |
! Expires: 1 day (update frequency) | |
! Homepage: https://gist.github.com/wjx0912/dbcd36e673481b261eccc26dd90c3f29 | |
! License: GPL3 | |
! Title: uBlacklist Stack Overflow Translation | |
*://*.csdn.net/* | |
@*://www.cnblogs.com/* | |
@*://*.jb51.net/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var name = 'window' | |
var person1 = { | |
name: 'person1', | |
foo1: function () { | |
console.log(this.name) | |
}, | |
foo2: () => console.log(this.name), | |
foo3: function () { | |
return function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const HttpProxyAgent = require('https-proxy-agent') | |
const fetch = require('node-fetch') | |
const options = { | |
// agent: function (_parsedURL) { | |
// if (_parsedURL.protocol === 'http:') { | |
// return httpAgent | |
// } else { | |
// return httpsAgent | |
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ajax(url, callback) { | |
console.log('ajax enter: ', url) | |
// 1、创建XMLHttpRequest对象 | |
var xmlhttp | |
if (window.XMLHttpRequest) { | |
xmlhttp = new XMLHttpRequest() | |
} else { // 兼容早期浏览器 | |
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP') | |
} | |
// 2、发送请求 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hosts": { | |
"dns.google": "8.8.8.8", | |
"geosite:category-ads-all": "127.0.0.1", | |
"activate.navicat.com": "127.0.0.1", | |
"licensing.ultraedit.com": "127.0.0.1", | |
"swupdate.ultraedit.com": "127.0.0.1" | |
}, | |
"servers": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const api = window.netflix.appContext.state.playerApp.getAPI(); | |
const sessionId = api.videoPlayer.getAllPlayerSessionIds()[0]; | |
const player = api.videoPlayer.getVideoPlayerBySessionId(sessionId); | |
player.getVideoSize(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getNowTime() { | |
var d = new Date; | |
var dformat = | |
[ | |
d.getFullYear(), | |
("00" + (d.getMonth()+1)).slice(-2), | |
("00" + d.getDate()).slice(-2) | |
].join('-') | |
+ ' ' | |
+ [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* XXX: Mixed architecture don't quite work. See also | |
* http://www.corsix.org/content/dll-injection-and-wow64 | |
*/ | |
static BOOL | |
isDifferentArch(HANDLE hProcess) | |
{ | |
typedef BOOL (WINAPI *PFNISWOW64PROCESS)(HANDLE, PBOOL); | |
PFNISWOW64PROCESS pfnIsWow64Process; | |
pfnIsWow64Process = (PFNISWOW64PROCESS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <d3d11.h> | |
#include <atlbase.h> | |
#pragma comment (lib, "d3d11.lib") | |
#include <iostream> | |
#include <thread> | |
#include <chrono> | |
#include <memory> | |
#include <vector> |
NewerOlder