datguyducky / no-awards-fr Goto Github PK
View Code? Open in Web Editor NEWHide awards at reddit.com and old.reddit.com
License: MIT License
Hide awards at reddit.com and old.reddit.com
License: MIT License
Right now to add new setting to settings menu means we need to do a couple of steps:
.css
fileno-awards-menu.html
file:<div class="op-wrap">
<label for="toggle-RENAME_THIS" class="op-label">
Give awards buttons:
</label>
<div class="toggle-wrap">
<input
type="checkbox"
name="toggle"
id="toggle-RENAME_THIS"
class="toggle-checkbox"
/>
<label for="toggle-RENAME_THIS" class="toggle-label"></label>
</div>
</div>
.css
file inside the "web_accessible_resources" part in the manifest.json
fileadjust both the handle-settings.js
and no-awards.js
files (with a correct name, preferably the same one that was used for the css file)As we can see above, there's a lot of steps and copying and pasting to add that new option, it would be good idea to find a solution which would enable adding new setting more quickly and that would be less prone to errors
With how currently this extension works is not posibble to hide "Give Award" buttons on comments.
Probable solution is to hide this buttons with .js script not .css like the rest of elements.
Right now classes (or ids) are named like this: toggle-op-1
which is far from being a good solution. I would prefer to use more descriptive names for it, for example toggle-comments-and-awards
As Reddit decided to fully stop supporting RPAN streams (more info here) we should just remove that option and its code from the the extension.
From what I can see in the inspector, the css files of no-awards-fr are loaded between the and sections, if this is an issue for all users, not only me then it should be looked at.
This is an outstanding extension, and I use it every day. But... I would actually prefer something slightly different. The awards visuals don't really bother me, it is the fact that they are interactable. I accidentally click on them all the time. If the extension only made it so that awards did not react to mouseover or clicks, but were still visible, that would be perfect for me.
Probably not a simple change, so feel free to ignore the suggestion. Thanks for a super useful extension!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.