V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  aa65535  ›  全部回复第 24 页 / 共 26 页
回复总数  520
1 ... 16  17  18  19  20  21  22  23  24  25 ... 26  
2014-06-24 14:05:32 +08:00
回复了 AIRPLAY 创建的主题 问与答 需要 chromium 官方下载地址
列表很长,需要等待一段时间才能显示出来

http://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html
只有一个按钮,那么熊孩子没事乱按怎么办?
@killpanda 可能使用的是阿里自己的源,这样的话建议还是去他们论坛寻求帮忙吧 http://bbs.aliyun.com/
@killpanda 你系统应该是 Aliyun Linux 吧,那可能不适用了,我这个是 CentOS 。
我这里是 6.5 的
```
[root@ALiYun ~]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

[root@ALiYun ~]# ls -l /etc/yum.repos.d/
total 28
-rw-r--r-- 1 root root 1926 Dec 1 2013 CentOS-Base.repo
-rw-r--r-- 1 root root 638 Dec 1 2013 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 630 Dec 1 2013 CentOS-Media.repo
-rw-r--r-- 1 root root 4528 Dec 1 2013 CentOS-Vault.repo
-rw-r--r-- 1 root root 957 Nov 5 2012 epel.repo
-rw-r--r-- 1 root root 1056 Nov 5 2012 epel-testing.repo
```
不确定能用 https://drive.google.com/file/d/0B2_XcmDgxYqral8yYWdRWXJYaDg/edit?usp=sharing
2014-06-23 21:12:30 +08:00
回复了 realgreenzb 创建的主题 问与答 求批量更改文件内指定内容的软件或方法?
@xinhugo 是“文件查找 - 在文章替换”,根本不需要打开,可以把这个路径下指定的后缀文件全部替换掉。

其实此类工具很多,命令行还有 wfr 可以用。
2014-06-23 02:18:33 +08:00
回复了 dangge 创建的主题 问与答 求助一个屏保中图片的提取问题
这图应该是程序实时生成的,否则不可能这么小。
所以提取图片就别想了。
为你SSD寿命着想,正经做法是改成单分区。
2014-06-19 20:52:41 +08:00
回复了 coke 创建的主题 Linux [求助]搞了 1 天了,REDSOCKS 配 iptables nat 转发还不成功
@coke 用 redsocks 的话就是配合 ss-local + iptables ,使用 ss-redir 就直接 iptables
但是很遗憾,我在 OpenWrt 折腾了2天也没搞定。
2014-06-19 13:17:44 +08:00
回复了 Akagi201 创建的主题 问与答 求删掉一个 bash 脚本中所有注释行的方法?
会不会把 `#!/bin/bash`也删了?
其实做成 Userscripts 是更好的选择。

// ==UserScript==
// @name V2ex search
// @version 1.00
// @run-at document-end
// @include *://*.v2ex.com/*
// @include *://v2ex.com/*
// ==/UserScript==
var script = document.createElement("script");
script.type = "text/javascript";
script.innerText='if(typeof dispatch==="function"){function dispatch(){var q=document.getElementById("q");if(q.value!=""){var url="http://cn.bing.com/search?q=site%3Av2ex.com%2Ft%20"+q.value;if(navigator.userAgent.indexOf("iPad")>-1||navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPhone")>-1){location.href=url;}else{window.open(url,"_blank");}return false;}else{return false;}}}';
document.getElementsByTagName('body')[0].appendChild(script);
只需要一个js文件 v2ex.js
```
var script = document.createElement("script");
script.type = "text/javascript";
script.innerText='if(typeof dispatch==="function"){function dispatch(){var q=document.getElementById("q");if(q.value!=""){var url="http://cn.bing.com/search?q=site%3Av2ex.com%2Ft%20"+q.value;if(navigator.userAgent.indexOf("iPad")>-1||navigator.userAgent.indexOf("iPhone")>-1||navigator.userAgent.indexOf("iPhone")>-1){location.href=url;}else{window.open(url,"_blank");}return false;}else{return false;}}}';
document.getElementsByTagName('body')[0].appendChild(script);
```

manifest.json
```
"content_scripts": [
{
"matches": [
"*://*.v2ex.com/*",
"*://v2ex.com/*"
],
"run_at": "document_end",
"js": ["js/v2ex.js"]
}
]
```
@no13bus 不是,chrome插件是不能访问和修改Web函数的,当然可以修改DOM,曲线解决很简单。
另外:你这插件用了之后搜索会同时打开google和bing。
1 ... 16  17  18  19  20  21  22  23  24  25 ... 26  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   961 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 29ms · UTC 22:55 · PVG 06:55 · LAX 15:55 · JFK 18:55
Developed with CodeLauncher
♥ Do have faith in what you're doing.