Skip to content
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

Qq xenforo migration #1305

Merged
merged 10 commits into from
May 9, 2024
Merged
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
4 changes: 2 additions & 2 deletions plugin/js/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,8 @@ var util = (function () {

var safeForFileName = function (title, maxLength = 20) {
if(title) {
// Allow only a-z regardless of case and numbers as well as hyphens and underscores; replace spaces with underscores
title = title.replace(/ /gi, "_").replace(/([^a-z0-9_-]+)/gi, "");
// Allow only a-z regardless of case and numbers as well as hyphens and underscores; replace spaces and no-break spaces with underscores
title = title.replace(/ ||\u00a0/gi, "_").replace(/([^a-z0-9_-]+)/gi, "");
// There is technically a 255 character limit in windows for file paths.
// So we will allow files to have 20 characters and when they go over we split them
// we then truncate the middle so that the file name is always different
Expand Down
117 changes: 0 additions & 117 deletions plugin/js/parsers/QuestionableQuestingParser.js

This file was deleted.

2 changes: 2 additions & 0 deletions plugin/js/parsers/SpacebattlesParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
parserFactory.register("forums.spacebattles.com", () => new SpacebattlesParser());
parserFactory.register("forums.sufficientvelocity.com", () => new SpacebattlesParser());
parserFactory.register("alternatehistory.com", () => new SpacebattlesParser());
parserFactory.register("forum.questionablequesting.com", () => new SpacebattlesParser());
parserFactory.register("questionablequesting.com", () => new SpacebattlesParser());

class SpacebattlesParser extends Parser{
constructor() {
Expand Down
1 change: 0 additions & 1 deletion plugin/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,6 @@ <h3>Instructions</h3>
<script src="js/parsers/QidianParser.js"></script>
<script src="js/parsers/QinxiaoshuoParser.js"></script>
<script src="js/parsers/QqxsParser.js"></script>
<script src="js/parsers/QuestionableQuestingParser.js"></script>
<script src="js/parsers/QuanbenParser.js"></script>
<script src="js/parsers/QuotevParser.js"></script>
<script src="js/parsers/RaeitranslationsParser.js"></script>
Expand Down
Loading