Skip to content

Instantly share code, notes, and snippets.

@hxgdzyuyi
Forked from xupeng/gist:2728385
Created May 19, 2012 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hxgdzyuyi/2728798 to your computer and use it in GitHub Desktop.
Save hxgdzyuyi/2728798 to your computer and use it in GitHub Desktop.
自动跳转到广播页
// ==UserScript==
// @name Hide someone
// @description Hide someone
// @author Hxgdzyuyi
// @include http://www.douban.com/
// @version 1.4
// @run-at document-start
// ==/UserScript==
function replaceDoubanCai(){
if(document.cookie.indexOf('ck') === -1){
return;
}
var referrer = document.referrer;
if(referrer === 'http://www.douban.com/' || referrer === '' || referrer.indexOf('accounts/login') !== -1 ) {
window.location.replace('http://www.douban.com/update/');
}
}
replaceDoubanCai();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment