V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  imt  ›  全部回复第 1 页 / 共 3 页
回复总数  50
1  2  3  
2016-10-20 14:52:02 +08:00
回复了 fim8 创建的主题 macOS MacOS Sierra 升级 CHROME 用 HTTPS 访问间歇性失败
good job! sudo launchctl remove com.alipay.DispatcherService
2016-03-04 10:01:03 +08:00
回复了 Emilyzhu 创建的主题 酷工作 上海宿朴招设计师,有福利哦
有三个问题扩展一下:
长得像设计师的不是设计师是什么体验?
长得不像设计师的设计师又是什么体验?
长得不像设计师的不是设计师的又要装设计师的是什么体验?
2016-03-03 14:59:09 +08:00
回复了 hyt7212 创建的主题 macOS 在 mac 上你们都用什么网盘存文件
工作上的用 time machine 和 dropbox ,生活照片用 onedrive,美剧电视 movie 软件其它用百度云.

用过一段时间 mega,回收站功能碉堡了,可惜速度慢.遗憾放弃了
2016-03-03 11:57:52 +08:00
回复了 hustlzp 创建的主题 程序员 最近学习 React 做了个项目,分享下入门经验
well done
2016-02-29 11:47:43 +08:00
回复了 billion 创建的主题 奇思妙想 写一句话在这里,下一个 2 月 29 号来看
完成人生目标,开展新的道路
问个问题,你们用微博是用手机 web 还是用手机 app.
2015-12-18 17:42:52 +08:00
回复了 chinaglwo 创建的主题 JavaScript 能不能帮分析下这个网页的 js 和 css 是怎么实现的
@chinaglwo 这个是客户端采集,和服务端 php 插件不一样的.
以你的问题为例:
客户端采集,采集浏览器已经"渲染"排序的文章(最终文章的正确顺序),不用考虑它怎么"算法"排序的.
而服务端彩信就是之前提到的那些"算法"找出对应的顺序,用你的 php 插件还原它的正确顺序.
2015-12-18 10:25:41 +08:00
回复了 chinaglwo 创建的主题 JavaScript 能不能帮分析下这个网页的 js 和 css 是怎么实现的
@chinaglwo 哈哈哈...好好学习,天天想上...
2015-12-16 09:23:04 +08:00
回复了 chinaglwo 创建的主题 JavaScript 能不能帮分析下这个网页的 js 和 css 是怎么实现的
@chinaglwo 就是油猴脚本,搜索一下,chrome 下直接输出原文内容哈
2015-12-15 14:43:03 +08:00
回复了 m939594960 创建的主题 互联网 ADsafe 被告了。
@luban +1
2015-12-15 14:19:08 +08:00
回复了 quietin 创建的主题 Python 获取一个被打开网页中的一个 js 变量,用什么最简单
明白你的意思了,phantomjs,学习一下.必须借助 webkit,brower 组件才行吧,个人理解.
2015-12-15 13:42:17 +08:00
回复了 chinaglwo 创建的主题 JavaScript 能不能帮分析下这个网页的 js 和 css 是怎么实现的
那么多人提到我反解的 js,那么我在贡献一条新的思路,用油猴脚本:

[code]
// ==UserScript==
// @name 99csw
// @namespace http://tampermonkey.net/
// @version 0.9
// @description 99csw get word
// @author imt
// @match http://www.99csw.com/book/*/*.htm
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @grant none
// ==/UserScript==
/* jshint -W097 */
'use strict';

var times=30;
function cus_scroll(){
if($(document).scrollTop()+document.documentElement.clientHeight>=$(document).height() && times>0){
$("#content div[class]:visible").each(function(){
$(this).children().remove();
console.log($(this).html());
});
}else{
$("body").animate({ scrollTop:$(document).height() }, 1000,cus_scroll);
}
}

$(function(){
$("body").animate({ scrollTop:$(document).height() }, 1000,cus_scroll);
});
[/code]
2015-12-15 10:57:25 +08:00
回复了 quietin 创建的主题 Python 获取一个被打开网页中的一个 js 变量,用什么最简单
chrome -> Console +1
2015-12-15 10:49:44 +08:00
回复了 brucefeng 创建的主题 程序员 大家写文档用什么神器
mweb lite ,markdown
2015-12-14 16:27:07 +08:00
回复了 chinaglwo 创建的主题 JavaScript 能不能帮分析下这个网页的 js 和 css 是怎么实现的
content = {
index: 0,
step: 5,
star: 0,
add: 0,
state: 'load',
showState: 'no',
childNode: [],
load: function () {
var e = base64.decode(document.getElementsByTagName('meta')[4].getAttribute('content')).split(/[A-Z]+%/);
var j = 0;

function r(a) {
var c = '';
var d = document.createElement('span');
for (var i = 0; i < 20; i++) {
var n = Math.floor(Math.random() * 99001 + 1000);
c += String.fromCharCode(n)
};
var b = ['。', ':', '?', '!', '—', '…', ';', ',', '”', ''];
c += b[Math.floor(Math.random() * b.length)];
d.style.color = '#fff';
d.style.fontSize = '0';
d.style.lineHeight = '0';
d.style.position = 'absolute';
d.style.top = 0;
d.style.left = 0;
d.appendChild(document.createTextNode(c));
a.appendChild(d);
return a
};
for (var i = 0; i < e.length; i++) {
if (e[i] < 5) {
this.childNode[e[i]] = r(this.box.childNodes[i + this.star]);
j++
} else {
this.childNode[e[i] - j] = r(this.box.childNodes[i + this.star])
}
};
this.show()
},
check: function () {
return this.showState == 'yes' && content.button.style.display != 'none' && this.offsetTop + this.button.offsetTop - Math.max(document.body.scrollTop, document.documentElement.scrollTop) < document.documentElement.clientHeight ? true : false
},
init: function (a, b) {
if (!b) {
return false
};
this.time = new Date().getTime();
this.box = a;
this.button = b;
this.offsetTop = 0;
this.randomContent = [];
this.hiddenItem = [];
this.showItem = [];

function random() {
return String.fromCharCode(Math.floor(Math.random() * 25 + 97)) + Math.floor(Math.random() * (1000000000))
};
var c = document.styleSheets[2];
for (var i = 0; i < 100; i++) {
this.showItem.push(random());
this.hiddenItem.push(random())
}
if (c.insertRule) {
c.insertRule('#content .' + this.hiddenItem.join(',#content .') + '{display:none;}', 0);
c.insertRule('#content .' + this.showItem.join(',#content .') + '{display:block;}', 0)
} else {
for (var i = 0; i < this.hiddenItem.length; i++) {
c.addRule('#content .' + this.hiddenItem[i], 'display:none');
c.addRule('#content .' + this.showItem[i], 'display:block')
}
};
for (var i = 0; i < this.box.childNodes.length; i++) {
if (this.box.childNodes[i].tagName == 'H2') {
this.star = i + 1
}
if (this.box.childNodes[i].tagName == 'DIV' && this.box.childNodes[i].className != 'chapter') {
break
}
};
/\/([0-9]+)\/([0-9]+)\./.test(location.href);
this.sid = RegExp.$2;
this.load();
window.onscroll = function () {
if (content.check()) {
content.showNext()
}
}
},
show: function () {
this.showState = 'no';
var a = 0;
for (var i = this.index; i < this.childNode.length; i++) {
if (this.childNode[i].nodeType != 1) {
continue
};
a += this.childNode[i].innerHTML.length;
this.index = i + 1;
this.childNode[i].className = content.showItem[Math.floor(Math.random() * 100)];
this.box.appendChild(this.childNode[i]);
for (var j = 0; j < 5; j++) {
var b = this.childNode[Math.floor(Math.random() * this.childNode.length)].cloneNode(true);
b.className = content.hiddenItem[Math.floor(Math.random() * 100)];
this.box.appendChild(b)
};
if (a > 500) {
break
}
}
var c = getCookie(this.sid);
if (!c || c < this.index || c > this.childNode.length + 1) {
addCookie(this.sid, this.index, location.pathname)
}
content.time = getCookie(this.sid) > this.index ? 0 : new Date().getTime();
if (this.index >= this.childNode.length) {
this.button.style.display = 'none'
} else {
this.showState = 'yes';
if (this.check()) {
this.showNext()
}
}
},
showNext: function () {
if (this.showState == 'no') {
return false
};
this.showState = 'no';
setTimeout(function () {
content.show()
}, Math.max(0 - (new Date().getTime() - content.time), 0))
}
};


只能帮你到这里了
2015-12-11 11:11:42 +08:00
回复了 ayanamist9 创建的主题 Markdown CMD Markdown 支持导出到印象笔记了
@ayanamist9 这什么体验不错啊.就是一个网页啊.还不如用浏览器打开.
2015-12-10 10:18:51 +08:00
回复了 ayanamist9 创建的主题 Markdown CMD Markdown 支持导出到印象笔记了
客户端太烂.不是原生的
1  2  3  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3786 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 45ms · UTC 10:24 · PVG 18:24 · LAX 03:24 · JFK 06:24
Developed with CodeLauncher
♥ Do have faith in what you're doing.