1 | initial version |
To disregard all forward slashes, you can use the following regex pattern in your Tampermonkey script:
var pageUrl = window.location.href.replace(/\//g,'');
This will replace all forward slashes in the current page's URL with an empty string, effectively removing them from the string.