Created
May 19, 2020 07:10
-
-
Save naoyeye/9ddfdc4d5086cf072af8269a63ea6238 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-board p').after(`<p>id:${groupId}</p>`); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment