Skip to content

Instantly share code, notes, and snippets.

View naoyeye's full-sized avatar
🦾

J.Y Han naoyeye

🦾
View GitHub Profile
@naoyeye
naoyeye / ad.onemob.bundle.ut.js
Created March 28, 2024 10:04
ad.onemob.bundle.ut.js
!function(){var t={9662:function(t,e,n){var r=n(614),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},9483:function(t,e,n){var r=n(4411),o=n(6330),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(614),o=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+o(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=n(3070).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},5787:function(t,e,n){var r=n(7976),o=TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},9670:function(t,e,n){var r=n(111),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},8533:function(t,e,n){"use strict
@naoyeye
naoyeye / clear-douban-contacts-blacklist.js
Last active September 4, 2023 10:34
批量清除豆瓣黑名单用户
// 在黑名单管理页面( https://www.douban.com/contacts/blacklist ),打开浏览器的 dev tools。在 console 中输入以下代码,回车
let list = []
let start_num = 0
$('.obss.namel dl').each((i, ele) => {
const target = $(ele).find('.gact-item .gact a')
const username = $(ele).find('dd a').attr('href').split('/')[4]
const nickname = $(ele).find('dd').text()
const url = target.attr('href')
list.push({
username,
@naoyeye
naoyeye / remove-douban-note-menu.js
Created March 1, 2022 08:15
移除豆瓣写日记入口的下拉菜单
// ==UserScript==
// @name remove-douban-note-menu
// @namespace remove-douban-note-menu
// @version 0.1
// @description 移除豆瓣写日记入口的下拉菜单
// @author @post-rocker
// @match https://www.douban.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=douban.com
// @grant none
// ==/UserScript==
@naoyeye
naoyeye / showDoubanGroupId.js
Created February 24, 2022 07:21
显示豆瓣小组id
// ==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==
@naoyeye
naoyeye / showDoubanGroupId.js
Created May 19, 2020 07:10
显示豆瓣小组id
// ==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==
@naoyeye
naoyeye / getTrackListAndCoverFromMusicPlatform.js
Last active January 3, 2020 11:20
获取网易云音乐、虾米专辑页面的曲目列表和封面大图
// ==UserScript==
// @name 获取网易云音乐、虾米专辑页面的曲目列表和封面大图
// @namespace getTrackListAndCoverFromMusicPlatform
// @version 0.2
// @lastest 2020-01-02
// @description try to take over the world!
// @author J.Y Han
// @match https://www.xiami.com/album/*
// @match https://music.163.com/*
// @grant none
@naoyeye
naoyeye / show-douban-id-and-gender.js
Last active December 25, 2023 20:50
显示豆瓣用户id和性别
// ==UserScript==
// @name Douban-Profile-Plus
// @namespace http://tampermonkey.net/
// @version 0.2
// @description 显示豆瓣用户id|性别
// @author J.Y Han
// @match https://www.douban.com/people/*
// ==/UserScript==
/* globals $ */
@naoyeye
naoyeye / kick.js
Last active April 18, 2022 09:55
豆瓣小组管理员批量踢人脚本。用于解散小组时,清空小组成员。
// 在豆瓣小组成员管理页面,打开浏览器的 dev tools。在 console 中输入以下代码,回车
let list = []
let start_num = 0
$('.member-list-mod li.member-item').each((i, ele) => {
const target = $(ele).find('.u_actions .gact').eq(1).find('a')
const username = $(ele).find('.avatar a').attr('href').split('/')[4]
const nickname = $(ele).find('.avatar img').attr('alt')
const url = target.attr('href')
list.push({
username,
@naoyeye
naoyeye / fetch.js
Created May 27, 2019 06:36
用于微信小程序
/**
* promise style request
*/
import { decryptData, isNeedDecrypto } from './dec-data'
function createDefaultConfig () {
return {
url: '',
method: 'GET',
data: null,
@naoyeye
naoyeye / post.py
Created May 6, 2019 11:24
修复后的 post.py
# -*- coding: utf-8 -*-
import requests
import json
from config import doubanurl
from util import doubanutil, tools
from verifycode import wordrecognition
def post_new_topic(group_url, topic_dict):