Git Product home page Git Product logo

brave-site-specific-scripts's People

Contributors

bbondy avatar bsclifton avatar dependabot[bot] avatar diracdeltas avatar emerick avatar linhkikuchi avatar marshall avatar mihaiplesa avatar mkarolin avatar mrose17 avatar nejczdovc avatar petemill avatar pilgrim-brave avatar szilardszaloki avatar thypon avatar zenparsing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

brave-site-specific-scripts's Issues

GitHub profile page Tip button issue

There is an issue with Tip button on GitHub profile pages below contributions graph. It's misplaced into legends container and on click it doesn't work.

Version 1.23.71 Chromium: 90.0.4430.72 (Official Build) (x86_64)
GitHub with dark theme

Warnings in Windows Application Event Log

Every time I start the latest version of Brave I am getting the following warnings logged in Windows Application Event Log:

[5616:4040:0828/034148.695:WARNING:chrome_content_verifier_delegate.cc(213)] Corruption detected in extension feipjgjfhmnfhhmbkclfopokbcgnpnnd installed at: C:\Users\igor\AppData\Local\BraveSoftware\Brave-Browser\User Data\Greaselion\Temp\scoped_dir5616_1271587990, from webstore: 0, corruption reason: 1, should be repaired: 1, extension location: kComponent

[5616:4040:0828/034148.695:WARNING:chrome_content_verifier_delegate.cc(213)] Corruption detected in extension mjkjompjknhcipamakpfliebpggggpga installed at: C:\Users\igor\AppData\Local\BraveSoftware\Brave-Browser\User Data\Greaselion\Temp\scoped_dir5616_1674008644, from webstore: 0, corruption reason: 1, should be repaired: 1, extension location: kComponent

[5616:4040:0828/034148.695:WARNING:chrome_content_verifier_delegate.cc(213)] Corruption detected in extension gajhkmnhhoadjcfchafgbekhgigglnkp installed at: C:\Users\igor\AppData\Local\BraveSoftware\Brave-Browser\User Data\Greaselion\Temp\scoped_dir5616_158010780, from webstore: 0, corruption reason: 1, should be repaired: 1, extension location: kComponent

[5616:4040:0828/034148.694:WARNING:chrome_content_verifier_delegate.cc(213)] Corruption detected in extension ldopphkgfhfchjcgfilekhkifaodmegm installed at: C:\Users\igor\AppData\Local\BraveSoftware\Brave-Browser\User Data\Greaselion\Temp\scoped_dir5616_940507668, from webstore: 0, corruption reason: 1, should be repaired: 1, extension location: kComponent

[5616:4040:0828/034148.694:WARNING:chrome_content_verifier_delegate.cc(213)] Corruption detected in extension bpkoijdaibakhfgahdfknbdcankhidoa installed at: C:\Users\igor\AppData\Local\BraveSoftware\Brave-Browser\User Data\Greaselion\Temp\scoped_dir5616_975507051, from webstore: 0, corruption reason: 1, should be repaired: 1, extension location: kComponent

[5616:4040:0828/034148.694:WARNING:chrome_content_verifier_delegate.cc(213)] Corruption detected in extension eoceebklhjepohnakemchinmkdpbolgh installed at: C:\Users\igor\AppData\Local\BraveSoftware\Brave-Browser\User Data\Greaselion\Temp\scoped_dir5616_812818540, from webstore: 0, corruption reason: 1, should be repaired: 1, extension location: kComponent

There seems to be 6 of them total, and they repeat in the log, but every time they have different scoped_dir, for example here is the first one from the above list just from a different browser start:

[8692:7068:0828/034120.253:WARNING:chrome_content_verifier_delegate.cc(213)] Corruption detected in extension feipjgjfhmnfhhmbkclfopokbcgnpnnd installed at: C:\Users\igor\AppData\Local\BraveSoftware\Brave-Browser\User Data\Greaselion\Temp\scoped_dir8692_154979165, from webstore: 0, corruption reason: 1, should be repaired: 1, extension location: kComponent

Note the same "extension" ID but different path.

C:\Users\igor\AppData\Local\BraveSoftware\Brave-Browser\User Data\Greaselion\Temp\scoped_dir5616_1271587990 folder contains the files youtubeBase.bundle.js and manifest.json.

Here is a ZIP archive of that folder: scoped_dir5616_1271587990.zip so you can try to determine what is going on.

I understand that this Greaselion is something similer to GreaseMonkey which I use.

I want to completely disable this script injection done by the browser, as well as all check, update, or repair activity tied to it.

If it is of any importance, I already have Brave Rewards disabled.

Please advise how I can accomplish that.

Fix dependabot security alerts

We had a few dependabot security alerts in this repo. I fixed one of them by performing the recommended upgrade, but that ended up triggering ~15 more alerts. I addressed several of those individually, but many of them eventually came down to us using the tslint package which is now deprecated.

The best way to address this is to upgrade all of our npm packages and migrate to eslint.

Not compatible with back/forward cache

Hello, I'm getting the following warning in the browser console when navigating around GitHub:

This page was not restored from back/forward cache because a content script from the extension with ID eoceebklhjepohnakemchinmkdpbolgh received a message while the page was cached. This behavior will change shortly which may break the extension. If you are the developer of the extension, see https://developer.chrome.com/blog/bfcache-extension-messaging-changes.

According to "brave://extensions-internals" the ID belongs to Brave's greaselion. While we're at this, I don't understand why the extension is even active when I have disabled the "Show Brave Rewards button" option and haven't even set up Rewards.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • Update jest monorepo (@types/jest, jest, jest-environment-jsdom)
  • Update dependency @types/node to v14.18.63
  • Update dependency eslint-plugin-import to v2.29.1
  • Update dependency eslint-plugin-jest to v25.7.0
  • Update dependency eslint-plugin-jsdoc to v39.9.1
  • Update dependency ts-loader to v9.5.1
  • Update dependency typescript to v4.9.5
  • Update dependency webpack to v5.91.0
  • Update actions/checkout action to v4
  • Update github/codeql-action action to v3

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/codeql-analysis.yml
  • actions/checkout v2
  • github/codeql-action v1
  • github/codeql-action v1
  • github/codeql-action v1
npm
package.json
  • @types/chrome 0.0.100
  • @types/jest 28.1.1
  • @types/node 14.0.27
  • @typescript-eslint/eslint-plugin 4.33.0
  • @typescript-eslint/parser 4.33.0
  • clean-webpack-plugin 4.0.0
  • copy-webpack-plugin 11.0.0
  • eslint 7.32.0
  • eslint-config-standard-with-typescript 21.0.1
  • eslint-plugin-import 2.25.2
  • eslint-plugin-jest 25.2.2
  • eslint-plugin-jsdoc 39.3.2
  • jest 28.1.1
  • jest-environment-jsdom 28.1.1
  • ts-jest 28.0.5
  • ts-loader 9.3.0
  • typescript 4.7.3
  • webpack 5.76.0
  • webpack-cli 4.10.0

  • Check this box to trigger a request for Renovate to run again on this repository

Can I create a custom tip button for my own website?

Is it possible to adapt brave-site-specific-scripts code to create a custom tip button for my own website?

Let's say I put the port.postMessage call, from github/tipping.ts, on a button on my website:

port.postMessage({
type: 'TipUser',
mediaType: types.mediaType,
data: {
url: profileUrl,
publisherKey,
publisherName,
publisherScreenName,
favIconUrl: mediaMetaData.user.favIconUrl,
postId: mediaMetaData.post.id,
postTimestamp: mediaMetaData.post.timestamp,
postText: mediaMetaData.post.text
}
})
}

And replace the variables with my publisher data (plus other JS code like port), will it work?

I'm thinking to create a WordPress plugin so people can add a "Donate with Brave" button on their pages.

PS: Sorry in advance if this is not the right place for this kind of question. Let me know if there is a better place to ask this.

Auto-Link Brave URLs in Twitter and Elsewhere

Where appropriate, text-nodes with brave://* patterns could be converted into clickable links. For example, Twitter automatically converts https://* into a clickable link, but does nothing for brave://*. Converting these text nodes to clickable links would be helpful as users could simply click to reach the desired resource.

From a support perspective, it is not uncommon to ask a user to "visit brave://rewards" and wind up having to explain to the user that this is a URL, which can be copied and pasted into their address bar.

This would only make sense where URL patterns are already converted. It would not be necessary to support platforms and sites where this automatic conversion does not already take place.

We could limit the linkable-paths to only a sensible list (e.g. rewards, settings, version).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.