Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
自动跳转到广播页
// ==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