-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First working edition.
- Loading branch information
Showing
7 changed files
with
629 additions
and
3 deletions.
There are no files selected for viewing
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
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 |
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
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) |
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
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": {} | ||
} |
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
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 |
Oops, something went wrong.