|
|
发表于 2021-10-19 15:56:54
|
显示全部楼层
云点赞与论坛大师服务的交互代码在这里,跟开发者描述的一致,不过除了 href 和 post_id 外还收集了不少信息,但确实没有用户cookie
- MAIN.actions.thumbs = (POST_ID) => {
- MAIN.data.nickname = MAIN.data?.nickname || document.querySelector('.vwmy a')?.innerHTML?.trim() || '';
- GM_xmlhttpRequest({
- method: 'POST',
- url: 'https://api.369369.xyz/master-of-forums/actions/thumbs',
- headers: {
- 'Content-Type': 'application/json; charset=utf-8',
- 'X-Requested-With': 'XMLHttpRequest',
- },
- responseType: 'json',
- data: JSON.stringify({
- data: {
- author: GM_info.script?.author,
- channel: MAIN.channel,
- handler: GM_info.scriptHandler,
- homepage: GM_info.script?.homepage,
- hostname: HOSTNAME,
- name: GM_info.script?.name,
- page: HREF,
- post: POST_ID,
- thread: MAIN.data?.thread,
- uuid: GM_info.uuid || GM_info.script?.uuid || '',
- version: MAIN.version,
- },
- user: {
- // eslint-disable-next-line camelcase, no-undef
- id: typeof discuz_uid === 'string' ? discuz_uid : '',
- nickname: MAIN.data.nickname,
- },
- })
复制代码 |
|