Pages:
Author

Topic: [HACK] One-click mod report, not for the faint of heart (Read 2082 times)

copper member
Activity: 2562
Merit: 2510
Spear the bees
It's not really that important, but I know that some users care about their stats and don't want bad reports. Maybe there could be a counter of some sort, so if the post was reported let's say 5 times by 5 different users, it would be shown. That way, those who are sensitive to seeing bad reports don't have to act on it if they can see that the previous reports have stayed unhandled by the mods.
Redundant reports do not count as bad: they are batched as the same outcome. In reality, redundant reports may serve as a way to reduce the waiting time of severe reports, regarding malware or global-level issues. Unclear whether reports are queued or stacked in the same order for all moderators.
I've set the default refresh time to 20 seconds, but it is easily adjusted if you desire. I'm sure you could incorporate something similar in to the extension itself if you wanted, but this seemed easier.
Suggested timing/modifications for active users: adjust refresh time to 750-2000ms after submitting report to optimize forum delays to "real-time updates" without any excess refreshes. Lowest time between posts/reports is 4 seconds; experimentally a half dozen new pages per second.
legendary
Activity: 2212
Merit: 7064
"multi post" button does that.
Yeah I guess this would be the same and it's shorter then alternative I was using.

As far as modifying BPIP extension, even if I stick with predefined buttons and no configuration, there are still some issues to consider. Some people will not want to install the whole BPIP extension if they want only post reporting so I would need to make it so I can still update this standalone version if needed. I'll see what I can do but it's probably not going to be quick.
I am glad you are considering it, and there is really no need to rush anything so make it in your own time.
With all this updates I think that BPIP extension will soon have to be renamed to something more suiting, like BPIP+Plus or BPIP2 Smiley
legendary
Activity: 3654
Merit: 8909
https://bpip.org
I would add consecutive post report as one more default option in extension.

"multi post" button does that.

As far as modifying BPIP extension, even if I stick with predefined buttons and no configuration, there are still some issues to consider. Some people will not want to install the whole BPIP extension if they want only post reporting so I would need to make it so I can still update this standalone version if needed. I'll see what I can do but it's probably not going to be quick.
legendary
Activity: 2212
Merit: 7064
I've made some changes to this extension so it feels like a good time to bump the thread. The main change is a report tracker that shows if you have reported a post and what the status of the report is
How complicated is to add this one-click mode report as optional experimental feature in BPIP extension?
I don't want to install anything else in my browser and I am using BPIP all the time, so I guess I want firmware update with new features for ultimate all-in-one extesnion Cheesy

PS
I would add consecutive post report as one more default option in extension.
legendary
Activity: 3654
Merit: 8909
https://bpip.org
You forgot to say that every user must extract the downloaded zip file before "Load unpacked" so that the extension file is easy to find.

Thanks, I've clarified the instructions in the OP.
legendary
Activity: 1064
Merit: 1228
Playgram - The Telegram Casino
Suchmoon, thanks a lot for making this extension because honestly this is what I needed all along to report posts faster than usual.

Actually I should take some time to understand how to install it in crhome [after considering the risks], but I think 10 minutes is enough time to understand it properly. You forgot to say that every user must extract the downloaded zip file before "Load unpacked" so that the extension file is easy to find. But good because now this extension is working for me. Thanks



It seems the forum page to me has really changed now. LOL

legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
I was considering it, but to make it really usable I would have to create a whole UI for configuring those report buttons because users can't modify the code of an extension that's installed permanently.

Not necessarily.
A simpler approach could be to make a poll, see the 5-10 most frequent options and add those.
Maybe, if not difficult, add flag for each of those option whether to be added or not + one flag for real vs demo mode.
But that's all. I was not implying anything fancy (which means unnecessary work), no. Just the useful part.
legendary
Activity: 3654
Merit: 8909
https://bpip.org
It shows only if you have reported the post, is it possible to add an optional feature to show if the post was reported by someone else together with displaying the status of that report? It's not really that important, but I know that some users care about their stats and don't want bad reports. Maybe there could be a counter of some sort, so if the post was reported let's say 5 times by 5 different users, it would be shown. That way, those who are sensitive to seeing bad reports don't have to act on it if they can see that the previous reports have stayed unhandled by the mods.    

Unfortunately the extension can't see what other users reported.

This basically just prevents me from reporting the same post twice, because sometimes I do a lot of reports and it takes mods some time to get through them, so there is a high chance that I'll come across a previously reported post that's still unhandled. That'd be a waste of time for mods.

Even if I could know that someone else reported it, that wouldn't be very useful without knowing why they reported it, and that may raise privacy issues. At any rate that's not possible.

I've just thrown together a very basic Tampermonkey script which will refresh your report history automatically every x number of seconds if you have it open in a tab. The tab doesn't need to be in focus. I've set the default refresh time to 20 seconds, but it is easily adjusted if you desire. I'm sure you could incorporate something similar in to the extension itself if you wanted, but this seemed easier.

I was thinking about automatic refresh but that solves only part of the real-time tracking issue. I would also have to implement something to update the post status in tabs that are already open, and there is also the delay - I might have 100 posts queued for reporting - so I would need to track the queue as well.

Is it difficult to make this part of the BPIP extension, as yet another optional feature?
To say that it would be a great addition it's an understatement.

I was considering it, but to make it really usable I would have to create a whole UI for configuring those report buttons because users can't modify the code of an extension that's installed permanently.
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
Is it difficult to make this part of the BPIP extension, as yet another optional feature?
To say that it would be a great addition it's an understatement.
legendary
Activity: 2268
Merit: 18771
After you report a few posts and want to see the updated status you would need to refresh the report history again, and reload any threads/post histories.
I've just thrown together a very basic Tampermonkey script which will refresh your report history automatically every x number of seconds if you have it open in a tab. The tab doesn't need to be in focus. I've set the default refresh time to 20 seconds, but it is easily adjusted if you desire. I'm sure you could incorporate something similar in to the extension itself if you wanted, but this seemed easier.

Just paste the code below in to a new Tampermonkey script.

Code:
// ==UserScript==
// @name        Report List Refresher
// @description Refreshes your report page every x seconds
// @include     https://bitcointalk.org/index.php?action=reportlist;mine
// ==/UserScript==

// Change the number before *1000 to your desired time in seconds. Default 20.

setTimeout(function(){ location.reload(); }, 20*1000);

is it possible to add an optional feature to show if the post was reported by someone else together with displaying the status of that report?
That would only be possible if the mod was given access to the forum moderators' global report queue and history, which is obviously never going to happen.
legendary
Activity: 2730
Merit: 7065
I've made some changes to this extension so it feels like a good time to bump the thread. The main change is a report tracker that shows if you have reported a post and what the status of the report is:
It shows only if you have reported the post, is it possible to add an optional feature to show if the post was reported by someone else together with displaying the status of that report? It's not really that important, but I know that some users care about their stats and don't want bad reports. Maybe there could be a counter of some sort, so if the post was reported let's say 5 times by 5 different users, it would be shown. That way, those who are sensitive to seeing bad reports don't have to act on it if they can see that the previous reports have stayed unhandled by the mods.     
legendary
Activity: 3654
Merit: 8909
https://bpip.org
Apparently it's been a while:

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.


I've made some changes to this extension so it feels like a good time to bump the thread. The main change is a report tracker that shows if you have reported a post and what the status of the report is:

Loading...

Bad reports are shown in red, unhandled in yellow, good in green - I don't have an example because it's quite rare to have an existing post with a good report - and the one-click buttons will not be shown for such posts (but you can still use the regular "Report to moderator" link).

The way this works is very primitive. You need to open your report history. The extension collects your reports. Then when you open a thread or a user's post history, it will show the status on posts that have been reported. Obviously this has some limitations, for example the status is not real-time. After you report a few posts and want to see the updated status you would need to refresh the report history again, and reload any threads/post histories.

This works reasonably well for my workflow. I typically open the report history first, then open a bunch of tabs with non-overlapping content - e.g. multiple spam megathreads - and all previously reported posts are marked by the extension. New reports will not duplicate because the same post can't be in multiple threads. Then I need to refresh the report history only if I want to start working on a different set of content.

This would not work well if you open a number of overlapping tabs (e.g. threads and user post histories). It might be possible to track reports in real time as you click those reporting buttons but it seemed like too much hassle for me.

Other changes:
  • Added link to My Reports in the main menu: Loading...
  • Added support for Chrome (and possibly Edge).
  • Cleaned up and refactored the code. For example the code that creates report buttons moved to create_all_controls function.
  • Reduced some of the delays (still fits into the 4 second throttling limit), increased default queue size to 100, and added an exception if the queue is full so you will see the red border on the post immediately if you reach the limit.

The code is now on GitHub, which makes it easier for me to maintain. If you're upgrading from the original version and need to preserve your custom changes, you can create a branch off the first commit (which matches the original version), apply your custom code, and cherry-pick or merge from the main branch. Or if you're averse to git for some reason, you can just pick any bits of code you like any way you like, I won't hold that against you.

The usual caveat still applies: this is barely tested code and probably broken in some mysterious ways. Use at your own risk.
legendary
Activity: 2240
Merit: 3150
₿uy / $ell ..oeleo ;(
Thank you guys, I think i'm blind. I opened that link at least 3 times and somehow I missed that temporary extensions button. Need more coffee Smiley
legendary
Activity: 3654
Merit: 8909
https://bpip.org
Maybe a stupid question but I seems that I can't find the Add Temporary Addon in the about:debugging on Tor.
No need to mention that I was away for a while and Tor updated and now this...

Have you clicked on "This Tor Browser" on the left hand side on the about:debugging page?

Yeah it should be under there.

Bookmark this link:

Code:
about:debugging#/runtime/this-firefox

(you'll need it every time you restart the browser)
legendary
Activity: 2268
Merit: 18771
Have you clicked on "This Tor Browser" on the left hand side on the about:debugging page?
legendary
Activity: 2240
Merit: 3150
₿uy / $ell ..oeleo ;(
Maybe a stupid question but I seems that I can't find the Add Temporary Addon in the about:debugging on Tor.
No need to mention that I was away for a while and Tor updated and now this...
legendary
Activity: 1582
Merit: 1059
nutildah-III / NFT2021-04-01
I knew I'd seen this somewhere before, and indeed, it was on a screenshot you sent me once OP, can't remember when or why... Allow me to necrobump this extremely useful script. I've been reporting "old-school" until now - god knows it's a sports discipline in itself, should be considered for Tokyo 20201 -, but those days are over starting.... now.

FR1980 Reporting 2.0 coming up, special thx to OP.
HCP
legendary
Activity: 2086
Merit: 4363
Not sure that I quote from locked topics often enough for that to be useful for me, especially since you can do it manually in just a few seconds. I might give it a whirl if you upload your code though. Maybe we could move it to be beside the current "Quote" button rather than in the reporting toolbar.
I'm not terribly happy with the current location either tbh, it was simply "path of least resistance" Tongue

I'm sure it'll be possible to move it wherever you want... it's just a matter of identifying the correct TD's or DIVs or whatever and inserting the button and input objects. Wink



Quote
A more pressing question, however: What are you using to change to that dark theme? I like the look of it. Tongue
A browser extension called Stylus: https://add0n.com/stylus.html (It's a fork of "Stylish" I believe)

and a modified version of "nex dark theme": https://userstyles.org/styles/173576/nex-dark-theme

My "current" version of the theme (made some alterations to fix a few little visual quirks):
Code:
.tborder {
    border: none;
    background-color: transparent;
    padding: 0
}

form#quickModForm > table.bordercolor > tbody > tr > td {
    padding: 0;
}

/*استثناء عناصر من الغاء الحدود*/
#frmLogin table.tborder,
#creator table.tborder,
.tborder table#smfheader+table,
.tborder table#smfheader+table+table,
div#helpmenu+div#helpmain {
    border: 1px solid #373b44 !important;
}

/**/
.tborder table#smfheader+table,
.tborder table#smfheader+table+table {
    border-top: none !important;
}

.tborder table#smfheader+table {
    border-bottom: none !important;
}
#upshrinkHeader2 { padding-bottom: 1px; }
/*--------استثناء عناصر من الغاء الحدود نهاية--------*/


/* خانات الادخال input */
input,
input[type="text"],
textarea,
select {
    outline: none;
    padding: 4px;
    transition: all 0.2s;
    border-radius: 3px;
}

input:disabled  {
    background-color: #25282f;
}

input[type="button"],
input[type="submit"] {
    cursor: pointer;
    padding: 2px 10px !important;
    transition: all 0.2s;
color: #fff;
}

input:focus, textarea:focus {
    border-color: #6393bf !important;
}


input, input[type="text"], textarea {
    border: 1px solid #aaa;
}

select {padding: 2px}




/* الردود منفصلة كصناديق
-----------------------*/
#bodyarea > form > table > tbody > tr > td > table {
    margin-top: 10px;
}

#bodyarea > form > table > tbody > tr:first-child > td > table {
    margin-top: 0;
}

#bodyarea #quickModForm .bordercolor {
    background-color: transparent;
}

#quickModForm .windowbg, #quickModForm #preview_body{
    background-color: #f7f7f7;
}
#quickModForm .windowbg2 { background-color: #fff; }

#quickModForm .windowbg,
#quickModForm .windowbg2 {
    padding: 0;
    border-radius: 5px;
}

form#quickModForm > table:first-child > tbody > tr:first-child  td.windowbg:first-child {
    border-radius: 0 0 5px 5px;
}

#quickModForm td.windowbg > table > tbody > tr > td+td,
#quickModForm td.windowbg2 > table > tbody > tr > td+td{
    padding-right: 25px !important;
    padding-left: 25px !important;
}

#quickModForm td.windowbg > table > tbody > tr > td.poster_info,
#quickModForm td.windowbg2 > table > tbody > tr > td.poster_info {
    padding-left: 10px;
    width: 14%;
    overflow: auto !important;
    border-radius: 5px 0 0 5px;
}

#quickModForm td.windowbg > table > tbody > tr > td.poster_info {
    background-color: #f3f3f3;
}

#quickModForm td.windowbg2 > table > tbody > tr > td.poster_info {
    background-color: #f7f7f7;
}
/*-------- نهاية الردود منفصلة كصناديق --------*/



/*-------------------------
تعديلات بداخل المواضيع
--------------------------*/
.post { padding-top:5px; }

/* اخفاء Re:.. */
/* .subject a {display: none} */

/* تغير لون الفواصل */
hr, .hrcolor {
color: #d2d2d2;
background-color: #d2d2d2;
}
/* نهاية تعديلات بداخل المواضيع */



/*-----------------------------------
الاقتباسات
------------------------------------*/
.quote {
    color: inherit;
}

.quote,
.quoteheader {
    background-color: transparent;
    border: none;
    margin-top: 0;
}

.quoteheader {
    margin-right: 3px;
}

.quoteheader:before {
content: url(https://i.ibb.co/W0hX5KP/qicon.png);
    opacity: 0.1;
margin: 0 5px;
}




.quoteheader,
.quote {
    border-left: 4px solid #ddd;
}

/*عند مرور الماوس*/
.quote:hover {
    border-left: 4px solid #ccc;
}

.quoteheader:hover,
.quoteheader:hover + .quote,
.quoteheader:hover,
.quoteheader:hover + .quote
{
    border-left: 4px solid #ccc;
}


/* الاقتباس اتجاة يمين
----------------------*/
div.post[dir='rtl'] .quoteheader,
div.post[dir='rtl']  .quote{
    border-right: 4px solid #ddd;
    border-left: 0 !important;
}

div.post[dir='rtl']  .quote:hover {
 border-right-color: #ccc;
}

/* عند مرور الماوس اتجاة يمين*/
div.post[dir='rtl'] .quote:hover
{
    border-right: 4px solid #ccc;
}

div.post[dir='rtl'] .quoteheader:hover,
div.post[dir='rtl'] .quoteheader:hover + .quote {
    border-right: 4px solid #ccc;
}
/*---------- نهاية الاقتباسات ------------*/



/*-----------------------------------
    تنسيق عنوان الموضوع
------------------------------------*/
#bodyarea table.tborder tr.catbg3,
#bodyarea table.tborder tr.catbg3 td {
    background-image: none;
    background-color: #5b7e9e;
}

tr.catbg3 #top_subject {
    padding-top: 5px;
    padding-bottom: 5px;
}

#bodyarea table.tborder tr.catbg3 td:first-child {
    border-radius: 5px 0 0 0;
}

#bodyarea table.tborder tr.catbg3 td:last-child {
    border-radius: 0 5px 0 0;
}
/*---------- نهاية تنسيق عنوان الموضوع ------------*/



#bodyarea > div.tborder > table.bordercolor {
    border-radius: 5px 5px 0 0;
}

.catbg, .catbg2, .catbg3 {
    border-bottom: 0;
}

.catbg, tr.catbg td, .catbg3, tr.catbg3 td,
.catbg2, tr.catbg2 td {
    background-image: none;
    background-color: #5b7e9e;
}

tr.catbg3 #top_subject {
    padding-top: 5px;
    padding-bottom: 5px;
}

table.bordercolor tr td.catbg3:first-child {
    border-radius: 5px 0 0 0;
}

table.bordercolor tr td.catbg3:last-child {
    border-radius: 0 5px 0 0;
}

.tborder > .catbg:first-child,
table.bordercolor tr td.catbg:first-child,
.catbg2:first-child {
    border-radius: 5px 5px 0 0;
}



.bordercolor {
    margin-top: 0 !important;
}

/* الهيدر */
.tborder #smfheader td.catbg:first-child {
    border-radius: 5px 0 0 0
}

.tborder #smfheader td.catbg:last-child {
    border-radius: 0 5px 0 0
}




/* اضافة لون للمواضيع المتحكمة من صاحب الموضوع  */
#bodyarea tr.catbg3+tr td.smalltext {
    background-color: #fffce5;
    border-bottom: 1px solid #ffde7b;
}
/*---------- نهاية موضوع متحكم ------------*/



/*-----------------------------------
  تغير الصور الشخصية لدائرية
-----------------------------------*/
#quickModForm td.windowbg > table > tbody > tr > td.poster_info img.avatar,
#quickModForm td.windowbg2 > table > tbody > tr > td.poster_info img.avatar,
table > tbody > tr > td.windowbg img.avatar,
form[name=pmFolder]  img.avatar {
    display: inline-block;
    vertical-align: middle;
    border-radius: 100px;
    -webkit-border-radius: 100px;
    -moz-border-radius: 100px;
    -ms-border-radius: 100px;
    -o-border-radius: 100px;
    object-fit: cover;
    border: 2px solid #fff;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    background: no-repeat center center;

    box-shadow: 2px 2px 4px 0px #aaa;
}

/* الحجم بالمنشورات */
#quickModForm td.windowbg > table > tbody > tr > td.poster_info img.avatar,
#quickModForm td.windowbg2 > table > tbody > tr > td.poster_info img.avatar,
form[name=pmFolder]  img.avatar /*بصفحة الرسائل*/ {
    height: 4rem;
    width: 4rem;
}

/* الحجم بصفحة العضوء */
table.bordercolor > tbody > tr > td.windowbg img.avatar {
    height: 5.75rem;
    width: 5.75rem;
}

/* الحجم بالهيدر العلوي */
#upshrinkHeader table > tbody > tr > td.windowbg img.avatar {
    height: 3.5rem;
    width: 3.5rem;
}

/* من الديف الحاويoverflow اخفاء  */
#quickModForm td.windowbg > table > tbody > tr > td.poster_info div[style^="overflow"],
#quickModForm td.windowbg2 > table > tbody > tr > td.poster_info div[style^="overflow"]{
    overflow: unset !important;
}
/*------ نهاية تغير الصور الشخصية لدائرية ------*/

/* اخفاء حدود القائمة العلوية */
.tborder table#smfheader+table,
.tborder table#smfheader+table+table {
    border: none !important;
}

div[style="border:2px solid orange; background-color:lightyellow; padding:10px; margin-bottom:5px"] {
    color: black
}
div[style="border:2px solid red; background-color:#FF9696; padding:10px; margin-bottom:5px"] {
    color: black
}
div[style="border:2px solid red; background-color:#FF9696; padding:10px; margin-bottom:5px"] a {
    color: #666666
}

/* خانات الادخال input */
input, textarea {
    border-color: #424448 !important;
    background-color: #191c23;
}
input:focus, textarea:focus {
    border-color:#567ee0 !important;
}

input[type="button"],
input[type="submit"] {
    border: none;
    background-color: #3F51B5;
    border-radius: 3px;
    padding: 4px 7px !important;
}
input[type="button"]:hover,
input[type="submit"]:hover {
    background-color: #5265d9;
}


/* الوان القوائم الفاتحة */
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td
{
    border: none;
    background-image: none;
    background-color: #373b44;
}

/* لون النصوص بالثيم الاسود*/
body, td, th, tr,
.nav, .nav:link, .nav:visited,
a.nav:hover,
.windowbg, #preview_body,
.quoteheader, .codeheader, .code,
.windowbg2, .windowbg3,
.titlebg2 a:link, .titlebg2 a:visited,
.titlebg, .titlebg a:link, .titlebg a:visited,
.titlebg, tr.titlebg th, tr.titlebg td, .titlebg2, tr.titlebg2 th, tr.titlebg2 td,
input, textarea

{
    color: #ccc
}


/* لون الخلفية بالثيم الاسود */
.windowbg, #preview_body {
    background-color: #25282f;
}


/* الروابط */
a:visited {
    color: #939dc5;
}

a:link {
    color: #939dc5;
}

a.ul[href^="https://bitcointalk.org/"]:hover {
    color: #89c775 !important
}

.edited {
    border-bottom-color: #d6d6d6;
}


div#bodyarea .maintab_back a:link, div#bodyarea .maintab_back a:visited, div#bodyarea .mirrortab_back a:link, div#bodyarea .mirrortab_back a:visited {
    color: #939dc5;
}


/* الوان خلفية الردود */
#quickModForm .windowbg, #quickModForm #preview_body,
#quickModForm .windowbg2 {
    background-color: #23262f;
}

#quickModForm td.windowbg > table > tbody > tr > td.poster_info,
#quickModForm td.windowbg2 > table > tbody > tr > td.poster_info {
    background-color: #20232b;
}


/* الفواصل */
hr, .hrcolor {
color: #393c44;
background-color: #393c44;
}



/* الوان الاقتباسات
--------------------------*/
.quoteheader, .quoteheader a {
    color: #737c9e;
}

.quoteheader,
.quote{
    border-left: 4px solid #3d444e;
   
}

.quote:hover
{
    border-left: 4px solid #62676f;
}

.quoteheader:hover,
.quoteheader:hover + .quote
{
    border-left: 4px solid #62676f;
}

/* الاقتباس اتجاة يمين
----------------------*/
div.post[dir='rtl'] .quoteheader,
div.post[dir='rtl']  .quote{
    border-right: 4px solid #3d444e;
}

div.post[dir='rtl']  .quote:hover {
 border-right-color: #62676f;
}

/* عند مرور الماوس اتجاة يمين*/
div.post[dir='rtl'] .quote:hover
{
    border-right: 4px solid #62676f;
}

div.post[dir='rtl'] .quoteheader:hover,
div.post[dir='rtl'] .quoteheader:hover + .quote {
    border-right: 4px solid #62676f;
}
/*---------- نهاية الوان الاقتباسات ------------*/



/* الصور الشخصية */

#quickModForm td.windowbg > table > tbody > tr > td.poster_info img.avatar,
#quickModForm td.windowbg2 > table > tbody > tr > td.poster_info img.avatar,
table > tbody > tr > td.windowbg img.avatar,
form[name=pmFolder]  img.avatar
{
    background-color: #fff;
    border-color: #323640;
    box-shadow: 2px 2px 4px 0px #121c27;

}


/* الوان عنوان الموضوع */

#bodyarea table.tborder tr.catbg3,
#bodyarea table.tborder tr.catbg3 td {
    background-color: #373b44;

}

.catbg, tr.catbg td, .catbg3, tr.catbg3 td,
.catbg2, tr.catbg2 td {
    background-color: #3f4554;
}

#bodyarea table.tborder tr.catbg3,
#bodyarea table.tborder tr.catbg3 td {
    background-color: #373b44;
}


/* اضافة لون للمواضيع المتحكمة من صاحب الموضوع  */
#bodyarea tr.catbg3+tr td.smalltext {
    background-color: #292d38;
    border-bottom-color: #373b44;
    color: #fff
}


/* ----------------
    تعديل الالوان
------------------*/
[style^="color: black"], [style^="color:black"] {
    color: #d6d6d6 !important;
}

[style^="color: green"], [style^="color:green"] {
    color: #5bb55b !important;
}

[style^="color: red"], [style^="color:red"] {
    color: #ff3434 !important;
}

[style^="color: blue"], [style^="color:blue"] {
    color: #1f81ff !important;
}

/**/

[style^="background-color: yellow"], [style^="background-color:yellow"] {
    color: #000;
}


/* الوان شريط الانتقال بالاسفل */
.titlebg2 {
    background-image: none;
    border: none;
    background-color: #2d313a;
    color: #d6d6d6;
}


/* ايقونات الرد و التعديل و الحذف */
img.reply_button {
    /* content: url(https://i.ibb.co/d6zXLq1/brown-quote.png); */
    content: url(https://talkimg.com/images/2023/11/15/zcmMD.png);
}
img.modify_button {
    /* content: url(https://i.ibb.co/dLtnpKp/brown-edit.png); */
    content: url(https://talkimg.com/images/2023/11/15/zc6Jf.png);
}
img.remove_button {
    /* content: url(https://i.ibb.co/vPDfyG9/brown-delete.png); */
    content: url(https://talkimg.com/images/2023/11/15/zcPpZ.png);
   
}


/* ايقونة الاقتباس */
.quoteheader:before {
content: url(https://i.ibb.co/QpYLk0v/qiconw.png) !important;
    opacity: 0.22;
}


/* لون الكود */
.code {
    background-color: #2f323c;
    border-color: #444850;
}


/*تحت التجربة*/
.windowbg2 {
    background-color: #262931;
}

.bordercolor {
    background-color: #363940;
}


body {
    background-color: #191c23;
    color: #fff
}


.windowbg3 {
    background-color: #22242b;
}


/*---------------------------------
 تغير خلفية القائمة العلوية مؤقتاً !!!
الافضل تخصيص الالوان اكثر حتى يكون اكثر تناسق هذا موقت
---------------------------------*/
/* delete this code If images are not displayed in the top menu*/

.maintab_back {
    background-image: url('https://i.ibb.co/v1vrm0d/maintab-back.gif')
}
.maintab_first {
    background-image: url('https://i.ibb.co/DKK4rrX/maintab-first.gif')
}
.maintab_last {
    background-image: url('https://i.ibb.co/C9QxkDg/maintab-last.gif')
}


.maintab_active_first {
    background-image: url('https://i.ibb.co/Q96FRdx/maintab-active-first.gif')
}
.maintab_active_back {
    background-image: url('https://i.ibb.co/5Tk3s5j/maintab-active-back.gif')
}
.maintab_active_last {
    background-image: url('https://i.ibb.co/drDZN4d/maintab-active-last.gif')
}
/* end top menu background image! code*/


/*------------------------------
    شريط التمرير الجانبي
------------------------------*/
    ::-webkit-scrollbar {
        width: 10px;
        height: 8px;
    }

    ::-webkit-scrollbar-track-piece {
        background-color: #23262f;          /*Global Track Peice(the slider noob.)*/
        -webkit-border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb:vertical {
        height: 50px;
        background-color: #373b44;            /* Up/Down slider background*/
        -webkit-border-radius: 6px;
       
    }
 
    ::-webkit-scrollbar-thumb:horizontal {
        width: 50px;
        background-color: #373b44;            /* Side/Side slider background*/
        -webkit-border-radius: 3px;
    }


    /* الشريط بالكود */
    /* الحجم */
    .code::-webkit-scrollbar {
        width: 7px;
        height: 7px;
    }
   
    /*مقبض التمرير*/ 
    .code::-webkit-scrollbar-thumb:vertical {
        height: 50px;
        background-color: #13161c;            /* Up/Down slider background*/
        -webkit-border-radius: 6px;
       
    }

    /*خلفية شريط التمرير*/
    .code::-webkit-scrollbar-track-piece {
        background-color: #23262f;          /*Global Track Peice(the slider noob.)*/
        -webkit-border-radius: 6px;
    }


    /* نهاية الشريط بالكود */

.windowbg b a {
    color: white
}


/* ------ نهاية شريط التمرير الجانبي ------- */
legendary
Activity: 2268
Merit: 18771
Not sure that I quote from locked topics often enough for that to be useful for me, especially since you can do it manually in just a few seconds. I might give it a whirl if you upload your code though. Maybe we could move it to be beside the current "Quote" button rather than in the reporting toolbar.

A more pressing question, however: What are you using to change to that dark theme? I like the look of it. Tongue

Edit: Thanks. My aversion to installing unnecessary add-ons might stop me using it, though; was hoping it might have just been a quick and nasty user script. Still, at least its open source. I'll take a good look next time I've got some time to spare.
HCP
legendary
Activity: 2086
Merit: 4363
Ok... so someone posted something today regarding reporting posts from a user's post history, and someone linked back to this thread. Not sure why exactly, but that re-ignited my desire to see if there was a way to "automate" quoting of posts in locked topics...

And I managed to add in a "hack" that more or less works. It isn't automated to the point of simply giving me a "quote" button on locked threads... but it is as simple as copying a URL and clicking a button.

So, I now have a "quote" button and "locked quote URL" text box:




If I copy the "permalink" URL for a post in a locked topic... say the URL for Post #3 from the locked thread here: https://bitcointalksearch.org/topic/m.53575600

I can copy/paste that into the "locked quote URL" text box:




Then I can click the "quote" button and it will automagically redirect to a slightly custom "post" URL which includes a the custom "lockedtopic" value in URL which the board ignores but is useful for passing info Tongue:




et voilà, the script then automagically modifies the pre-populated "textArea.Value", so that the "link=topic=TOPIC_ID" value gets changed to "lockedtopic" value:


And you're free to copy/paste the correctly formatted quote, with correct topic link and timestamp as you please.

Like this:
That was a clever and imaginative way to troll though. Smart dude. Theymos should reward him first (merits maybe?), ban after.



KNOWN ISSUES/LIMITATIONS:

1. I've configured it to wipe the "subject" value, to avoid accidentally posting into the new thread with the subject line of the locked thread that you're quoting from. Not sure how to fix this so that the subject is the same as the "unlocked" thread you're trying to post to? Huh For now, the workaround is to simply copy/paste the "locked quote" from the newly opened "post" window to a different quickpost/reply box.

2. You can only do one quote at a time. I would guess that theoretically it should be possible to do a comma separated list of locked quote URLs and then have the script open multiple tabs at once, but that doesn't seem like much of a timer saver of doing them one at a time Undecided

3. Currently only works from "thread view" in an unlocked thread... It doesn't work from the "post history view"... as you need a guaranteed "unlocked topic" to send to the "post" action, otherwise you'll get the "This topic is locked, you are not allowed to post or modify messages..." error Undecided  Possible workaround would be to create my own topic somewhere that I'm never going to lock and use that as a "default"? Huh

4. The code is pretty hacky and could probably be tidied up and refactored Tongue

If anyone is interested, let me know and I can look at posting up the modifications required.
Pages:
Jump to: