Skip to content

Commit

Permalink
Small bugfixes (#141)
Browse files Browse the repository at this point in the history
* Removed CSS making the FIRE window smaller

* Added wildcard to domain to handle query params

* Increment version.

* Updated blogspot regex to strip subdomains such as .co.uk

* Updated banner

* Built script

---------

Co-authored-by: double beep <[email protected]>
  • Loading branch information
AppeazeTheCheese and double-beep authored Nov 21, 2023
1 parent abedcd0 commit f531072
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 16 deletions.
13 changes: 5 additions & 8 deletions dist/fire_extra.user.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// ==UserScript==
// @name FIRE Additional Functionality
// @version 1.3.4
// @version 1.3.5
// @author double-beep
// @contributor Xnero
// @description Watch, blacklist and see domain stats directly from the FIRE popup!
// @match https://chat.stackexchange.com/rooms/11540/charcoal-hq
// @match https://chat.stackexchange.com/transcript/11540*
// @match *://chat.stackexchange.com/rooms/11540/charcoal-hq*
// @match *://chat.stackexchange.com/transcript/11540*
// @match *://chat.stackexchange.com/transcript/message/*
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
// @run-at document-start
Expand Down Expand Up @@ -68,7 +69,7 @@ exports.helpers = {
const watchValue = domain
? exports.helpers.getRegexForPathShortener(term, domain)
: term
.replace(/blogspot\.\w+$/, 'blogspot')
.replace(/blogspot\.\w+(\.\w+)?$/, 'blogspot')
.replace(/\./g, '\\.');
return done
? alreadyDone
Expand Down Expand Up @@ -280,10 +281,6 @@ void (async function () {
margin-right: 7px;
}
.fire-popup {
width: 700px !important;
}
.fire-extra-none {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fire-extra-functionality",
"version": "1.3.4",
"version": "1.3.5",
"description": "Adds some more features to the FIRE userscript",
"scripts": {
"build": "npm run lint && webpack",
Expand Down
6 changes: 1 addition & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const helpers = {
? helpers.getRegexForPathShortener(term, domain)
: term
// https://metasmoke.erwaysoftware.com/domains/groups/17
.replace(/blogspot\.\w+$/, 'blogspot') // abc.blogspot.com => abc.blogspot
.replace(/blogspot\.\w+(\.\w+)?$/, 'blogspot') // abc.blogspot.com => abc.blogspot
.replace(/\./g, '\\.'); // escape dots

return done
Expand Down Expand Up @@ -390,10 +390,6 @@ void (async function(): Promise<void> {
margin-right: 7px;
}
.fire-popup {
width: 700px !important;
}
.fire-extra-none {
display: none;
}
Expand Down
5 changes: 3 additions & 2 deletions webpack.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ module.exports = {
// @author double-beep
// @contributor Xnero
// @description Watch, blacklist and see domain stats directly from the FIRE popup!
// @match https://chat.stackexchange.com/rooms/11540/charcoal-hq
// @match https://chat.stackexchange.com/transcript/11540*
// @match *://chat.stackexchange.com/rooms/11540/charcoal-hq*
// @match *://chat.stackexchange.com/transcript/11540*
// @match *://chat.stackexchange.com/transcript/message/*
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
// @run-at document-start
Expand Down

0 comments on commit f531072

Please sign in to comment.