How to Remove Website ADs
PLM offers two solutions for users to filter ADs from frequently visited websites.
I. Add AD Links to the Blacklist
This method is relatively simple:
- Open the PLM browser (click the "Browser" tool button at the top of the main interface).
- Click the "Sites Config" button in the upper right corner (Tai Chi icon).
- Create a new website entry or edit an existing one. For specific AD website addresses, you can directly click the "Blacklist" button to add them to the global blacklist.
- Click the "Add" button to the left of the blacklist. For example, adding a "*.gif" entry will reject all GIF files when the website is loaded.
- Users can also analyze the request information of the target web page. Many websites insert ADs by using JavaScript files from AD websites. For example, xxxclub.to imports the aclib.js file from acscdn.com. By adding "*/acscdn.com/*" to the (website or global) blacklist, the AD website is completely disabled.
- If you only want to prevent loading animated images (GIF/APNG) on the website, simply set "Flags" to "1".
- Click "OK" to save.
- As for how to analyze which elements/URLs on a web page should be blacklisted, users need to have some knowledge of web HTML. PLM provides several tools:
- Script Assistant (light bulb icon button in the upper right corner of the PLM browser): Displays the HTML element structure in a tree-like format, and can also display the HTML/Text of the web page.
- Show Chromium (CEF) Developer Tools: Click the menu button in the upper right corner of the PLM browser.
- Show request info: Lists the request URL list of the web page by clicking the menu button in the upper right corner of the PLM browser.
- Show HTML/Text of the web page: Click the menu button in the upper right corner of the PLM browser.
- Blacklists and whitelists are available in both global and website-specific forms.
II. Write JavaScript to Remove Specific Web Page AD Elements
This method is more complex and requires users to have the ability to write JavaScript scripts. For details, refer to the relevant JS examples (xxxwebdlxxx_0.js/rmdown_0.js) under "PLM Installation Folder\config\web".
After writing a suitable .js script, save the .js file to the "PLM Installation Folder\config\web" folder.
Finally, you need to create a new website configuration or edit an existing one, and set the pre-load script or post-load script of its page path to the newly written .js file. For details, refer to the built-in website configuration such as "t66y".
- Open the PLM browser (click the "Browser" tool button at the top of the main interface).
- Click the "Sites Config" button in the upper right corner (Tai Chi icon).
- Create a new website entry or edit an existing one.
- Add or edit a specific entry in the "Page List".
- Fill in the correct web page path.
- Fill in/select the correct "Before load end" script according to the situation.
- Fill in/select the correct "After load" script according to the situation.
- Fill in "Remove IDs" (separate element names with ";") according to the situation.
- Save after clicking "OK" several times.
How to Remove Video ADs
For video files already imported into the media library, some have advertising content added during production, which is very annoying. PLM provides several mechanisms/methods to skip/remove these ADs.
1. Define AD parts
Users can perform part definition while playing the video, defining certain ranges of parts as "ADs". Then, the PLM player will skip these parts by default when playing them in the future.
2. Set Start/End Positions
Users can perform part definition while playing the video, defining a certain playback progress as the "Start position" and another position later as the "End position". Then, the PLM player will start playing directly from the start point and stop at the end point in the future.
3. Use the "Media Converter" in the "Tools" Menu to Remove ADs
The "Media Converter" provided by PLM can cut out AD parts of the same file very well. Please refer to Media Converter.