百度贴吧:不登入即可看貼

百度贴吧看貼(包括樓中樓)無須登入。

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @namespace   VA_i
// @version     4.0.0.20180814
// @grant       unsafeWindow
// @include     /^https?://(?:tieba\.baidu\.com|www\.tieba\.com)//
// @include     /^https?://dq.tieba.com//
// @run-at      document-start
// @name        Baidu Tieba: No Login
// @name:zh-CN  百度贴吧:不登录即可看贴
// @name:zh-TW  百度贴吧:不登入即可看貼
// @description View Baidu Tieba without login.
// @description:zh-CN 百度贴吧看贴(包括楼中楼)无须登录。
// @description:zh-TW 百度贴吧看貼(包括樓中樓)無須登入。
// ==/UserScript==

unsafeWindow.Object.freeze = null;

document.addEventListener('DOMContentLoaded', function (event) {
  try {
    unsafeWindow.PageData.user.is_login = 1;
  } catch (error) {
    //alert(error);
  }
}, true);