您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
adds a filter me button to the infobar
当前为
- // ==UserScript==
- // @name Filter Me
- // @namespace pendevin
- // @description adds a filter me button to the infobar
- // @include http://boards.endoftheinter.net/showmessages.php*
- // @include http://archives.endoftheinter.net/showmessages.php*
- // @include https://boards.endoftheinter.net/showmessages.php*
- // @include https://archives.endoftheinter.net/showmessages.php*
- // @version 1
- // @grant none
- // @require http://code.jquery.com/jquery-2.1.3.min.js
- // ==/UserScript==
- //ll breaks without noconflict jquery
- this.$ = this.jQuery = jQuery.noConflict(true);
- //get our userid from the profile link
- var userid = $('.userbar > a').first().attr('href');
- userid = userid.substring(userid.indexOf('user=') + 5);
- //we'll stick this on the infobar because that's traditional i guess
- var infobar = $('#u0_2');
- //add the thing eh
- infobar.append('<span class="filter_me"> | <a href="' + location.href + '&u=' + userid + '">Filter Me</a></span>');