OnlyFans to Coomer

Redirects from OnlyFans to coomer.su.

  1. // ==UserScript==
  2. // @name OnlyFans to Coomer
  3. // @namespace http://coomer.su
  4. // @version 1.2
  5. // @description Redirects from OnlyFans to coomer.su.
  6. // @author Dirk Digler / nafigefy@imagepoet.net
  7. // @match *://onlyfans.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Regular expression to match the username from the URL pathname
  15. const usernameRegex = /^\/([^\/]+)/;
  16. const match = window.location.pathname.match(usernameRegex);
  17.  
  18. // Check if a match is found and extract the username
  19. const username = match ? match[1] : null;
  20.  
  21. if (username) {
  22. const coomerUrl = `https://coomer.su/onlyfans/user/${username}`;
  23.  
  24. const redirectButton = document.createElement('a');
  25. redirectButton.href = coomerUrl;
  26. redirectButton.innerHTML = 'Coomer';
  27. redirectButton.target = '_blank';
  28. redirectButton.style = 'position: fixed; top: 10px; left: 10px; padding: 10px; background-color: #0091ea; color: #ffffff; text-decoration: none; border-radius: 5px; z-index: 9999;';
  29. document.body.appendChild(redirectButton);
  30. } else {
  31. console.error('Username not found in URL');
  32. }
  33. })();