Created
February 24, 2022 07:21
-
-
Save naoyeye/209d4fd7122d83dbfdf54b1258d89487 to your computer and use it in GitHub Desktop.
显示豆瓣小组id
This file contains hidden or 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 显示豆瓣小组id | |
// @namespace http://han.im | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author J.Y Han | |
// @match https://www.douban.com/group/* | |
// @grant showDoubanGroupId | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let groupId = $('.group-topic-search input[name="group"]').attr('value'); | |
$('#group-info').after(`<p>id:${groupId}</p>`); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment