你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/534102-script-for-pass-education-to-download-without-subscription,源站連結 點此以跳轉

Script for Pass-Education to download without subscription

This script modifies download links on the Pass-Éducation website to allow file downloads without a subscription. It also removes Google Tag Manager (GTM) iframes that appear on the page.


點此查看下載連結位址https://update.greasyfork.org.cn/scripts/534102/Script%20pour%20Pass-Education%20pour%20t%C3%A9l%C3%A9charger%20sans%20abonnement.user.js

安装此脚本?
作者
TrouveMe
日安装量
0
总安装量
6
评分
0 0 0
版本
1.2
创建于
2025-04-26
更新于
2025-04-26
大小
4.1 KB
许可证
MIT
适用于

Link Management Script and Removal of GTM Iframes

Link Management Script and Removal of GTM Iframes

This user script (UserScript) allows you to:

  • Automatically close the cookie consent pop-up, if present, on the page.
  • Remove the login pop-up (if it exists) by removing the element with the class .callout.warning.link-attachment.
  • Update the download links to make them dynamically editable based on the attachment_id and archive_id parameters in the URL.
  • Remove Google Tag Manager (GTM) iframes by observing the addition of iframes with a src containing googletagmanager.com/ns.html.

How the Script Works

1. Updating download links:

  • The script selects links with the class .auth-href.
  • If the link contains an attachment_id parameter, it is replaced with a download URL.
  • If the link contains an archive_id parameter, it is also updated with a new download URL for the archive.

2. Mutation Observer:

  • An observer watches for new elements being added to the page, including .auth-href links added dynamically.
  • The script updates the links as soon as they are added to the page.

3. Removing GTM iframes:

  • When the script detects the addition of an iframe with a src matching Google Tag Manager (googletagmanager.com/ns.html), the iframe is automatically removed.

Installation

  1. Install Tampermonkey or another user script manager.
  2. Create a new script and paste the code above.
  3. Save and enable the script to use it on the target website.

In summary, this script allows you to manage download links and remove Google Tag Manager iframes on the Pass-Éducation website without paying for a subscription.