Home Reference Source
public class | source

TDS

The following class implements methods for The Distraction Shield browser extension

Example:

of redirect url https://www.zeeguu.unibe.ch/practice/get-ex?redirect=https://www.facebook.com/.
of the working of the regex: in the above url it extracts : 'https://www.facebook.com/' starting
directly after '?redirect='. In general it extracts everything, without exception, after '?redirect='

Static Method Summary

Static Public Methods
public static

Extraction of redirect url for Distraction Shield

Static Public Methods

public static distractionShieldOriginalDestination(): * source

Extraction of redirect url for Distraction Shield

Return:

*

{String}, redirect url or Null if no url is found