OnlyFans and Privacy Lookup

Adds a magnifying glass button to search models on Simpcity.su directly from OnlyFans and Privacy.com pages.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
  1. // ==UserScript==
  2. // @name OnlyFans and Privacy Lookup
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description Adds a magnifying glass button to search models on Simpcity.su directly from OnlyFans and Privacy.com pages.
  6. // @match https://onlyfans.com/*
  7. // @match https://privacy.*/*
  8. // @match https://www.instagram.com/*/
  9. // @grant GM_openInTab
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. function addStyles() {
  16. const style = document.createElement('style');
  17. style.innerHTML = `
  18. .lookup-button {
  19. position: fixed;
  20. top: 10px;
  21. right: 10px;
  22. z-index: 9999;
  23. font-size: 20px;
  24. background-color: #fff;
  25. border: 1px solid #ccc;
  26. border-radius: 5px;
  27. padding: 5px;
  28. cursor: pointer;
  29. box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  30. }
  31. .search-container {
  32. position: fixed;
  33. top: 50%;
  34. left: 50%;
  35. transform: translate(-50%, -50%);
  36. z-index: 10000;
  37. background-color: #fff;
  38. border: 1px solid #ccc;
  39. border-radius: 5px;
  40. padding: 20px;
  41. box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  42. }
  43. .search-container input {
  44. margin-right: 10px;
  45. padding: 5px;
  46. font-size: 14px;
  47. }
  48. .search-container button {
  49. padding: 5px 10px;
  50. cursor: pointer;
  51. font-size: 14px;
  52. }
  53. `;
  54. document.head.appendChild(style);
  55. }
  56.  
  57. function createLookupButton() {
  58. const button = document.createElement('div');
  59. button.classList.add('lookup-button');
  60. button.innerHTML = '<i class="fa fa-search"></i>';
  61. button.addEventListener('click', showSearchInput);
  62.  
  63. const container = document.createElement('div');
  64. container.classList.add('lookup-container');
  65. container.appendChild(button);
  66. document.body.appendChild(container);
  67. }
  68.  
  69. function showSearchInput() {
  70. const searchContainer = document.createElement('div');
  71. searchContainer.classList.add('search-container');
  72.  
  73. const searchInput = document.createElement('input');
  74. searchInput.placeholder = 'Enter model name';
  75.  
  76. const searchButton = document.createElement('button');
  77. searchButton.textContent = 'Search';
  78. searchButton.addEventListener('click', () => {
  79. const modelName = searchInput.value.trim();
  80. if (modelName) {
  81. openSimpcitySite(modelName);
  82. document.body.removeChild(searchContainer);
  83. }
  84. });
  85.  
  86. searchContainer.appendChild(searchInput);
  87. searchContainer.appendChild(searchButton);
  88. document.body.appendChild(searchContainer);
  89. }
  90.  
  91. function openSimpcitySite(modelName) {
  92. const url = `https://simpcity.su/search/14138808/?q=${encodeURIComponent(modelName)}&o=date`;
  93. GM_openInTab(url, { active: true });
  94. }
  95.  
  96. // Add styles and the magnifying glass button to the page
  97. addStyles();
  98. createLookupButton();
  99. })();