-
Notifications
You must be signed in to change notification settings - Fork 107
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
Veronaet
wants to merge
4
commits into
hackclub:main
Choose a base branch
from
Veronaet:Add-Effects-or-skins-to-your-Cursor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
114 changes: 114 additions & 0 deletions
114
submissions/Add Effects or skins to your Cursor /Popup.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
22
submissions/Add Effects or skins to your Cursor /manifest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
18
submissions/Add Effects or skins to your Cursor /readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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