Skip to content

Add effects or skins to your cursor #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 114 additions & 0 deletions submissions/Add Effects or skins to your Cursor /Popup.html
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove spaces in your profile folder name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove spaces in your profile folder name

Thanks i have made a Pull Request as i correct your feedback about my submission #209 additionally i have filled the airtable form

Let me know if you need anything

Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<!DOCTYPE html>
<html>
<head>
<title>Cursor Effects</title>
<link rel="stylesheet" href="popup.css">
</head>
<body>
<h1>Cursor Effects</h1>

<div class="section">
<h2>Cursor Skin</h2>
<div class="options">
<button id="default" class="skin-btn">Default</button>
<button id="pointer" class="skin-btn">Pointer</button>
<button id="heart" class="skin-btn">Heart</button>
<button id="star" class="skin-btn">Star</button>
<button id="sword" class="skin-btn">Sword</button>
</div>
</div>

<div class="section">
<h2>Cursor Effects</h2>
<div class="options">
<button id="none" class="effect-btn selected">None</button>
<button id="trail" class="effect-btn">Trail</button>
<button id="sparkle" class="effect-btn">Sparkle</button>
<button id="rainbow" class="effect-btn">Rainbow</button>
</div>
</div>

<div class="section">
<h2>Effect Settings</h2>
<div class="settings">
<label for="size">Size:</label>
<input type="range" id="size" min="1" max="20" value="5">

<label for="color">Color:</label>
<input type="color" id="color" value="#ff5722">

<label for="opacity">Opacity:</label>
<input type="range" id="opacity" min="10" max="100" value="80">
</div>
</div>

<script src="popup.js"></script>
</body>
</html>

// popup.css
body {
width: 300px;
padding: 15px;
font-family: Arial, sans-serif;
}

h1 {
text-align: center;
font-size: 18px;
margin-top: 0;
color: #333;
}

h2 {
font-size: 16px;
margin-bottom: 10px;
color: #555;
}

.section {
margin-bottom: 20px;
border-bottom: 1px solid #eee;
padding-bottom: 15px;
}

.section:last-child {
border-bottom: none;
margin-bottom: 0;
}

.options {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

button {
padding: 8px 12px;
border: 1px solid #ddd;
background: #f5f5f5;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s;
}

button:hover {
background: #e0e0e0;
}

button.selected {
background: #4285f4;
color: white;
border-color: #2b6abc;
}

.settings {
display: grid;
grid-template-columns: 80px 1fr;
gap: 10px;
align-items: center;
}

input[type="range"] {
width: 100%;
}
22 changes: 22 additions & 0 deletions submissions/Add Effects or skins to your Cursor /manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"manifest_version": 3,
"name": "Cursor Effects",
"version": "1.0",
"description": "Add cool effects and skins to your cursor",
"permissions": ["storage"],
"action": {
"default_popup": "popup.html",
"default_icon": {
"16": "images/icon16.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
}
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["content.js"],
"css": ["styles.css"]
}
]
}
40 changes: 40 additions & 0 deletions submissions/Add Effects or skins to your Cursor /popup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

document.addEventListener('DOMContentLoaded', function() {
// Load saved settings
chrome.storage.sync.get(['cursorSkin', 'cursorEffect', 'effectSize', 'effectColor', 'effectOpacity'], function(data) {
if (data.cursorSkin) {
document.querySelectorAll('.skin-btn').forEach(btn => {
btn.classList.toggle('selected', btn.id === data.cursorSkin);
});
}

if (data.cursorEffect) {
document.querySelectorAll('.effect-btn').forEach(btn => {
btn.classList.toggle('selected', btn.id === data.cursorEffect);
});
}

if (data.effectSize) document.getElementById('size').value = data.effectSize;
if (data.effectColor) document.getElementById('color').value = data.effectColor;
if (data.effectOpacity) document.getElementById('opacity').value = data.effectOpacity;
});

// Cursor skin buttons
document.querySelectorAll('.skin-btn').forEach(button => {
button.addEventListener('click', function() {
document.querySelectorAll('.skin-btn').forEach(btn => btn.classList.remove('selected'));
this.classList.add('selected');

const skin = this.id;
chrome.storage.sync.set({cursorSkin: skin});

// Send message to content script
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
chrome.tabs.sendMessage(tabs[0].id, {
action: "updateCursor",
skin: skin
});
});
});
});

18 changes: 18 additions & 0 deletions submissions/Add Effects or skins to your Cursor /readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

### Features
1. **Cursor Skins** - Change your cursor to different shapes:
- Default
- Pointer
- Heart
- Star
- Sword

2. **Cursor Effects** - Add dynamic effects to your cursor:
- Trail - Leaves a fading trail as you move
- Sparkle - Creates sparkle particles around your cursor
- Rainbow - Displays colorful rainbow particles as you move

3. **Customizable Settings**:
- Size - Adjust the size of effects
- Color - Choose any color for your effects
- Opacity - Set the transparency level