mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-06 13:08:14 +08:00
feat: remove addNoReferrer
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
const got = require('@/utils/got');
|
||||
const cheerio = require('cheerio');
|
||||
const url = require('url');
|
||||
const { addNoReferrer } = require('@/utils/common-utils');
|
||||
|
||||
const host = 'https://leetcode.com';
|
||||
|
||||
@@ -44,8 +43,6 @@ module.exports = async (ctx) => {
|
||||
const response = await got.get(itemUrl);
|
||||
const $ = cheerio.load(response.data);
|
||||
|
||||
addNoReferrer($, '', 'src', itemUrl);
|
||||
|
||||
const description =
|
||||
$('#question-preview')
|
||||
.html()
|
||||
|
||||
Reference in New Issue
Block a user