Skip to content

Commit

Permalink
Merge pull request #1 from zpbx/dev
Browse files Browse the repository at this point in the history
First working edition.
  • Loading branch information
cssmagic committed Nov 5, 2014
2 parents bedbe82 + 43915cc commit 7fa6045
Show file tree
Hide file tree
Showing 7 changed files with 629 additions and 3 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Thumbs.db
ehthumbs.db
[Dd]esktop.ini
$RECYCLE.BIN/
.DS_Store
.klive
.dropbox.cache

*.tmp
*.bak
*.swp
*.lnk

.svn
.idea

node_modules/
bower_components/
npm-debug.log

*.zip
*.gz

deploy.sh
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
weibo-keep-v5
=============
# Weibo-Keep-V5

[用户脚本] 尽可能强制新浪微博保持 V5 界面
这是一个用户脚本。她的功能是在你浏览新浪微博网页版时,尽可能恢复 V5 界面,你懂的。

## 原理

新浪微博已经全面升级到 V6,但网友发现,新浪微博是通过某个 Cookie 值来标记版本模式的,通过修改这个值,一些主要的微博页面仍然可以以 V5 的界面运行。因此这个用户脚本所做的主要工作就是在你浏览微博时,努力保持住这个 Cookie 的值。

这也意味着,一旦新浪微博取消了这个触发机制,或把 V5 彻底下线,本项目也就完成历史使命了。

## 系统需求

你的浏览器需要安装特定扩展,用于管理和运行用户脚本:

* Firefox 用户: [Greasemonkey](https://addons.mozilla.org/zh-CN/firefox/addon/greasemonkey/)
* ~~Chrome 用户: [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo)~~ (抱歉,暂未测试 Chrome 浏览器。)

## 安装

1. 点击 [此链接](https://rawgit.com/UserScript/Weibo-Keep-V5/master/dist/weibo-keep-v5.user.js) 开始安装。
2. 如果浏览器正确安装了上述扩展,会提示安装。确认即可。
3. 此后登录新浪微博网页版,此脚本会自动工作,无需任何额外操作。

***

## License

[MIT License](http://www.opensource.org/licenses/mit-license.php)
29 changes: 29 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "weibo-keep-v5",
"version": "0.1.0",
"homepage": "https://github.com/UserScript/Weibo-Keep-V5",
"authors": [
"cssmagic"
],
"description": "User script to keep Sina Weibo at V5.",
"main": "dist/weibo-keep-v5.user.js",
"keywords": [
"weibo",
"v5"
],
"license": "MIT",
"ignore": [
"**/.*",
"**.sh",
"**.min.js",
"package.json",
"node_modules",
"bower_components",
"test",
"demo"
],
"dependencies": {
"tiny.js": "^0.4.0"
},
"devDependencies": {}
}
7 changes: 7 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
cat \
src/meta.js \
bower_components/tiny.js/src/tiny.js \
src/main.js \
> \
dist/weibo-keep-v5.user.js
Loading

0 comments on commit 7fa6045

Please sign in to comment.