您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Mostra o conteúdo/assunto da thread no título da aba do 1500chan.
// ==UserScript== // @name Abas 1500chan // @namespace Violentmonkey Scripts // @match https://1500chan.org/* // @grant none // @version 1.0 // @author - // @description Mostra o conteúdo/assunto da thread no título da aba do 1500chan. // ==/UserScript== if($('body').hasClass('active-thread')) { let subject = $('.post.op .subject').text(); let post = $('.post.op .body').text().substring(0,100); let title = '/' + board_name + '/ - '; title += subject || post; document.title = title; function updateTitle() { let t = document.querySelector('title'); let r = t.textContent.match(/^\((\d+)\).*/); if(r) { t.textContent = '(' + r[1] + ') ' + title; } else { t.textContent = title; } } $(window).on('new_post', () => setTimeout(updateTitle, 500)); $(window).focus(updateTitle); $(window).scroll(updateTitle); }