Ruud14 / Page-Manipulator

Browser Extension that can automatically inject custom HTML, CSS or JavaScript into any web-page. This way you can customize any web-page to fit your needs. Currently available on Google Chrome and Microsoft Edge.
https://chrome.google.com/webstore/detail/page-manipulator/mdhellggnoabbnnchkeniomkpghbekko?hl=nl
90 stars 31 forks source link

How to make sure that every site that ends in "wtc.edu" is changed? #39

Closed rajatsrkr closed 1 year ago

rajatsrkr commented 1 year ago

Trying to make it so that every site that ends in wtc.edu or has that in the name is changed, but not sure how to do that without manually inputting every site in the 'active websites' section (there are over 500 so it's not very efficient to do so)

Ruud14 commented 1 year ago

There is no built-in functionality to explicitly do this in the extension, the active websites, combined with "matching pages" set to "recursive" only checks the start of URLs.

That does not mean it is not possible though!

You could, even though it is not beautiful,

  1. put "all" in active websites
  2. write some javascript to be injected
  3. in your javascript, write a check that checks the current URL of the page,
  4. if the URL is of the pattern that you want, continue, else, abort.

Hope this helps :)