-
-
Save hxgdzyuyi/2728798 to your computer and use it in GitHub Desktop.
自动跳转到广播页
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
// ==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