Title: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 20, 2019, 04:14:15 AM After looking through the extension list here (https://bitcointalk.org/index.php?topic=5148488.0), along with creating a few extensions/scripts of my own, I'm more or less curious to see what the community actually wants in terms of scripts/extensions.
I thought I'd open up a thread to gauge interest, and see if anyone who doesn't code may have ideas regarding extensions/scripts. If you have a script idea you'd like to see, post it below, and maybe I or another programmer will pick it up. Provide as much detail/examples as you can to explain you idea! Cheers! Reserved, will attempt to organize links to ideas here... Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: lobcmt2 on June 20, 2019, 04:25:39 AM Excellent idea! It is just a beginning of amazing upcoming things (userscripts/ addons). It is too soon to think of groups (categories) of userscripts or add-ons, but I believe when suggestion from community become larger, OP should sort them out into groups (categories). To clarify, some sort of groups (categories) like:
- Forum UI - Archive tool - Signature screening tool - Flag screening tool - etc. BTW, you reminded me that months ago, I saw addons for Bitcointalk Theme, there: ✔️ GREEN THEME/STYLE for Bitcointalk.org | 2019 (https://bitcointalk.org/index.php?topic=5118278.0). Suggestion: Orginated from that topic, I created my topic: [Guide] Viewing images without quoting posts/ OPs (https://bitcointalk.org/index.php?topic=5119360.0). Can you (or others) can build an userscript to view Images without quoting posts/ OPs, and don't have to spend a little time to visit post histories? Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 20, 2019, 04:31:03 AM Excellent idea! It is just a beginning of amazing upcoming things (userscripts/ addons). It is too soon to think of groups (categories) of userscripts or add-ons, but I believe when suggestion from community become larger, OP should sort them out into groups (categories). To clarify, some sort of groups (categories) like: - Forum UI - Archive tool - Signature screening tool - Flag screening tool - etc. BTW, you reminded me that months ago, I saw addons for Bitcointalk Theme, there: ✔️ GREEN THEME/STYLE for Bitcointalk.org | 2019 (https://bitcointalk.org/index.php?topic=5118278.0). Suggestion: Orginated from that topic, I created my topic: [Guide] Viewing images without quoting posts/ OPs (https://bitcointalk.org/index.php?topic=5119360.0). Can you (or others) can build an userscript to view Images without quoting posts/ OPs, and don't have to spend a little time to visit post histories? So, essentially, just an extension that would perhaps put a minor link near the original link to the image, which says "Show image from newbie". If clicked, it would pull the image essentially replacing the link w/ the image in the DOM. You essentially just don't want to have to open it up in a new window? Sort of like this: https://i.imgur.com/9TFT3sJ.png Did i get that right? Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: lobcmt2 on June 20, 2019, 04:39:33 AM Yes, mainly to avoid phishing sites. Because there are so many image storage/ upload providers, that we are not able to know them all. It's better if we can see images without clicking on links and visit those sites. My trick works fine if images attached in posts published recently, we can easily visit post history and find that post. However, it will costs a little more time if we have to find posts made months ago, just to view images.
So, the question is, if you want to see images posted by Newbies (and don't buy Copper Membership). You can directly click on links to see images, but this way will put you under risks of phising link traps. Clicking on links is fine if you know well about those sites, but the fact is there are so many sites provide image uploads, so you are not able to know them all. Consequently, if you have such habit, you might instantly click on links to unknow sites, that are potentially phising sites. Be careful! Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 20, 2019, 04:40:25 AM Yes, mainly to avoid phishing sites. Because there are so many image storage/ upload providers, that we are not able to know them all. It's better if we can see images without clicking on links and visit those sites. My trick works fine if images attached in posts published recently, we can easily visit post history and find that post. However, it will costs a little more time if we have to find posts made months ago, just to view images. So, the question is, if you want to see images posted by Newbies (and don't buy Copper Membership). You can directly click on links to see images, but this way will put you under risks of phising link traps. Clicking on links is fine if you know well about those sites, but the fact is there are so many sites provide image uploads, so you are not able to know them all. Consequently, if you have such habit, you might instantly click on links to unknow sites, that are potentially phising sites. Be careful! TBH, that's not a super hard ask. If I get the time, I'll see if I can code something up. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Quickseller on June 20, 2019, 05:11:07 AM I would like the ability to click on a link on a post that starts a PM to the author of the post that says:
Quote Hi [username], Regarding [link to post] One click links on a post to view a person's post history and thread creation history would also be nice. As would a one click link to a user's gettopics (https://bitcointalk.org/gettopics.php?user=186520) link from a post. I strongly prefer something that can be run from greesemonkey. Thanks. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: welovedcrypto on June 20, 2019, 05:18:49 AM scripts such which shows the most merited post of specific user on his profile(asce/desc). shows most red trust user. shows list of posts, thread.
EDITED: Add-on which allows users to view all page even if thread has more than 50 or 100 pages. users can view all messages on one page. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 20, 2019, 06:06:06 AM I would like the ability to click on a link on a post that starts a PM to the author of the post that says: Quote Hi [username], Regarding [link to post] One click links on a post to view a person's post history and thread creation history would also be nice. As would a one click link to a user's gettopics (https://bitcointalk.org/gettopics.php?user=186520) link from a post. I strongly prefer something that can be run from greesemonkey. Thanks. That wouldn't be too difficult, I can repurpose https://github.com/Initscri/BPIP-Chrome-Extension/blob/master/content-script.js for this Icons or just text links? Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: TheBeardedBaby on June 20, 2019, 06:30:19 AM How about a reporting bot based on a given text/link. Monitoring resent posts and reports.
It would be very useful for my CLUB (https://bitcointalk.org/index.php?topic=4720640.0):) Something we can chase stuff like this > *** The link of spam has changed old t.me/joinchat/AAAAAEvVWaRnXNQkA0G-aA new t.me/joinchat/AAAAAEvVWaR_kl9EzH_b2g Another change old t.me/joinchat/AAAAAEvVWaRnXNQkA0G-aA old t.me/joinchat/AAAAAEvVWaR_kl9EzH_b2g New t.me/joinchat/AAAAAEvVWaQByBeaoezapA edit not even time to write, that any new spam has been removed ;D :) Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: rbynxx on June 20, 2019, 06:44:55 AM I was wondering if TryNinja already did this but if not maybe I should ask this here.
You can alredy make a quote manually (by getting the unixtime, link, author and using it in the quote format). So, Maybe I can try creating a script for this, if anyone is interested. This is opened by iasenko on his topic Quote posts from locked topics? Why it's not allowed? (https://bitcointalk.org/index.php?topic=5153095.0), I guess this will be better script for a hassle-free quoting of replies even it is locked. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: owlcatz on June 20, 2019, 12:15:17 PM Is it only me, or does anyone else wake up to a 2-page watchlist of mostly crap they don't care about? Then having to click on each one and "unwatch" it.... ::)
How about a quick un-watch button on the watchlist page? I would love this myself! :D Thanks! Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: TryNinja on June 20, 2019, 01:31:51 PM I was wondering if TryNinja already did this but if not maybe I should ask this here. Totally forgot about this one. :PI'll give it a try (if OP doesn't do it first). Edit: I managed to make it work, but I'm trying to fix a problem that happens when the post you're trying to post has another quote inside. Hard stuff for someone who sucks at js :P Edit 2: ok so... due to the way I made the script, there was some issues like not breaking lines correctly and bugging out when there are multiple quotes in the post. Because of that, I'll remake the script so it has less bugs. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Quickseller on June 20, 2019, 01:48:39 PM I would like the ability to click on a link on a post that starts a PM to the author of the post that says: Quote Hi [username], Regarding [link to post] One click links on a post to view a person's post history and thread creation history would also be nice. As would a one click link to a user's gettopics (https://bitcointalk.org/gettopics.php?user=186520) link from a post. I strongly prefer something that can be run from greesemonkey. Thanks. That wouldn't be too difficult, I can repurpose https://github.com/Initscri/BPIP-Chrome-Extension/blob/master/content-script.js for this Icons or just text links? Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: theymos on June 20, 2019, 04:32:48 PM I've thought that it'd be interesting to publish an adblocker subscription for signatures. You can block individual users' signatures with eg. bitcointalk.org##.sig186520, and/or you can try to block signature ads generally with filters like bitcointalk.org##.signature table.
Userscripts are a good idea. Let me know if some small change on my end will help your userscript a lot. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: welovedcrypto on June 20, 2019, 06:59:11 PM I've thought that it'd be interesting to publish an adblocker subscription for signatures. You can block individual users' signatures with eg. bitcointalk.org##.sig186520, and/or you can try to block signature ads generally with filters like bitcointalk.org##.signature table. Does it affect on forums signature(which comes from your auctions?)?Userscripts are a good idea. Let me know if some small change on my end will help your userscript a lot. Singature adblocker is really bad idea for the campaigns. If every forum member will start using this then there will be low result for signature campaigns. And it will prevent upcoming campaigns. and yeah there will be development(ad blocker for signature, not for specific users, for every users) in this ad blocker will come and it will attract users to use this ad blocker and this will affect on campaigns(likely not on running but upcoming campaigns). Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: LTU_btc on June 20, 2019, 07:43:06 PM Does it affect on forums signature(which comes from your auctions?)? Probably no. Forum ads is HTML code, signatures are made using BBCode, so it's two different things.Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: TryNinja on June 20, 2019, 08:00:19 PM I've been thinking about script similar with Enhanced merit UI [1.1] (https://bitcointalk.org/index.php?topic=2833350.0), but showing total merit sent & count of merit transaction to the merited user from user's merit summary (which means total & count in last 4 months) With an API that returns the merit data and if the script is only activated when you click on an specific user rather than preloading it for every user on the page, then yes.My concern is loading time to obtain and process the data, is it possible to make such script but works quickly? The main problem is probably getting the merit data. You would need to make your own scraper to get merit data and then build an API or maybe ask Vod or Loyce for an API. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: DarkDays on June 21, 2019, 07:49:18 PM A script that automatically sends you a PM me with any threads you were mentioned in would be good.
I'd also like a script that adds a chatbox to the site, allowing users to casually chat with one another. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: TryNinja on June 21, 2019, 07:56:53 PM A script that automatically sends you a PM me with any threads you were mentioned in would be good. It doesn't send PMs but there is this "Maggiordomo" bot that posts in your "mentions" thread or send you a message on Telegram everytime you get mentioned/quoted.I'd also like a script that adds a chatbox to the site, allowing users to casually chat with one another. [RELEASED] @mention notification bot - now with Telegram (https://bitcointalk.org/index.php?topic=5023605) Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 22, 2019, 01:15:43 AM FYI, when I get the chance, I'll be adding post links to the reserved sections just to keep this a tad more organized. See responses below.
A script that automatically sends you a PM me with any threads you were mentioned in would be good. It doesn't send PMs but there is this "Maggiordomo" bot that posts in your "mentions" thread or send you a message on Telegram everytime you get mentioned/quoted.I'd also like a script that adds a chatbox to the site, allowing users to casually chat with one another. [RELEASED] @mention notification bot - now with Telegram (https://bitcointalk.org/index.php?topic=5023605) I think Piggy updated it to where it does actually support PMs. I've thought that it'd be interesting to publish an adblocker subscription for signatures. You can block individual users' signatures with eg. bitcointalk.org##.sig186520, and/or you can try to block signature ads generally with filters like bitcointalk.org##.signature table. Userscripts are a good idea. Let me know if some small change on my end will help your userscript a lot. Awesome! Thank you, I will for sure let you know if anything comes up :) I've thought that it'd be interesting to publish an adblocker subscription for signatures. You can block individual users' signatures with eg. bitcointalk.org##.sig186520, and/or you can try to block signature ads generally with filters like bitcointalk.org##.signature table. Does it affect on forums signature(which comes from your auctions?)?Userscripts are a good idea. Let me know if some small change on my end will help your userscript a lot. Singature adblocker is really bad idea for the campaigns. If every forum member will start using this then there will be low result for signature campaigns. And it will prevent upcoming campaigns. and yeah there will be development(ad blocker for signature, not for specific users, for every users) in this ad blocker will come and it will attract users to use this ad blocker and this will affect on campaigns(likely not on running but upcoming campaigns). I think he only meant thread signature campaigns. The ones you join. Out of respect for the forums operations & theymos, I wouldn't build an adblock for the actual forum ads themselves. @theymos, It'd be nice to block entire signature campaigns in general (incase one becomes rather annoying w/ their ads). For example, you block one user w/ the signature ad + tick a box that says "Block others with the same signature as well". It would block the original users signature + look for matching BBcode/HTML and block the rest. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: LoyceV on June 22, 2019, 04:23:22 AM The main problem is probably getting the merit data. You would need to make your own scraper to get merit data and then build an API or maybe ask Vod or Loyce for an API. I have no plans on making an API (and have no idea how to do this). Besides, I don't scrape Merit continuously, only weekly (full list: merit.all.txt (http://loyce.club/Merit/merit.all.txt)).API probably is best solution, but i was thinking about parsing HTML from user's merit summary page & built a list/dictionary contains total merit sent & count of merit transaction to an user. Instead of scraping individual user's merit summaries, it's much less work to just scrape Recent merits (https://bitcointalk.org/index.php?action=merit;stats=recent) and keep track (that's what BPIP does).I think Piggy updated it to where it does actually support PMs. Correct. Maggiordome was polluting the list of unread posts too much.Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 22, 2019, 04:27:42 AM The main problem is probably getting the merit data. You would need to make your own scraper to get merit data and then build an API or maybe ask Vod or Loyce for an API. I have no plans on making an API (and have no idea how to do this). Besides, I don't scrape Merit continuously, only weekly (full list: merit.all.txt (http://loyce.club/Merit/merit.all.txt)).I'm assuming he's just talking about producing an API endpoint. Sort of, a URL which supports a GET request and returns a valid format (JSON). No library needed. Pretty much what you have here (http://loyce.club/Merit/merit.all.txt), just converted to a JSON format w/ the ability to filter based off parameters (sending user, receiving user, etc) It could be done w/ 1 front-facing PHP script. For example, http://loyce.club/Merit/merit.all.php?sending_user=2458002 @TryNinja, I'm not sure but I recall that Vod may have mentioned about an API in the past. So I'm not sure if one is in development right now. Could have been me asking about it tho, so not 100% certain. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: LoyceV on June 22, 2019, 05:59:15 AM I'm assuming he's just talking about producing an API endpoint. Sort of, a URL which supports a GET request and returns a valid format (JSON). No library needed. I don't know JSON/PHP (and don't really have the time to learn it now), so it's not something I can easily produce. But if someone (you?) wants to create it based on the full Merit data, go ahead. I can create for instance api.loyce.club to host it. Just tell me what I need to do :PPretty much what you have here (http://loyce.club/Merit/merit.all.txt), just converted to a JSON format w/ the ability to filter based off parameters (sending user, receiving user, etc) It could be done w/ 1 front-facing PHP script. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: CryptoNeed on June 22, 2019, 08:29:19 AM I'm assuming he's just talking about producing an API endpoint. Sort of, a URL which supports a GET request and returns a valid format (JSON). No library needed. I don't know JSON/PHP (and don't really have the time to learn it now), so it's not something I can easily produce. But if someone (you?) wants to create it based on the full Merit data, go ahead. I can create for instance api.loyce.club to host it. Just tell me what I need to do :PPretty much what you have here (http://loyce.club/Merit/merit.all.txt), just converted to a JSON format w/ the ability to filter based off parameters (sending user, receiving user, etc) It could be done w/ 1 front-facing PHP script. Has been a while since I did PHP but I hope this helps: Quote <?php header("Content-type:application/json"); //dtg, merit, msg, giver, receiver $url = "merits.txt"; $file = file($url); $file = str_replace(" ", ",",$file); $file = str_replace("\r\n", "",$file); $jsonObj = array(); foreach ($file as $line => $value) { $value = explode(",", $value); // unsorted (line numbers) //$file[$line] = array("DTG" => $value[0], "Merit" => $value[1], "Message" => $value[2], "Donor" => $value[3], "Receiver" => $value[4]); //array sorted by DTG $jsonObj[]= array($value[0] => array("Merit" => $value[1], "Message" => $value[2], "Donor" => $value[3], "Receiver" => $value[4])); } echo json_encode($jsonObj, JSON_PRETTY_PRINT); ?> https://i.ibb.co/nBntRkK/Unbenannt.png Seems to work, could be improved for sure. But otherwise ... it has been a while. Besides this and as already stated, it would be much faster to send individual request to the database (e.g. by GET). If you tell us the structure of the database, it is actually super easy to implement. Got it again: Sometimes quoting a full text makes posts less well structured. While there is a function to full-quote other posts, I would like to have a function to mark and insert text you actually want to quote from other posts. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: LoyceV on June 22, 2019, 09:04:25 AM Seems to work, could be improved for sure. I think you're overestimating my php-knowledge: I have no idea what to do with this :PQuote it would be much faster to send individual request to the database (e.g. by GET). I don't have a database, just static HTML. That makes it very fast to browse as the server just has to read the file from disk, but I'm also at the point that adding more functionality becomes exceedingly difficult. I know nothing about databases and php :(If you tell us the structure of the database, it is actually super easy to implement. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: CryptoNeed on June 22, 2019, 09:12:07 AM Seems to work, could be improved for sure. I think you're overestimating my php-knowledge: I have no idea what to do with this :PQuote it would be much faster to send individual request to the database (e.g. by GET). I don't have a database, just static HTML. That makes it very fast to browse as the server just has to read the file from disk, but I'm also at the point that adding more functionality becomes exceedingly difficult. I know nothing about databases and php :(If you tell us the structure of the database, it is actually super easy to implement. Np, I will write an example script based on your .txt. Database details for such functionalities would have to be provided by btct admin anyways. Will adjust the script now ... Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: CryptoNeed on June 22, 2019, 12:14:22 PM Seems to work, could be improved for sure. I think you're overestimating my php-knowledge: I have no idea what to do with this :PQuote it would be much faster to send individual request to the database (e.g. by GET). I don't have a database, just static HTML. That makes it very fast to browse as the server just has to read the file from disk, but I'm also at the point that adding more functionality becomes exceedingly difficult. I know nothing about databases and php :(If you tell us the structure of the database, it is actually super easy to implement. Np, I will write an example script based on your .txt. Database details for such functionalities would have to be provided by btct admin anyways. Will adjust the script now ... Output in HTML: https://i.ibb.co/w6dgjkV/Unbenannt.png Quote <?php //GET Request by: merithtml.php?donor=USERID $url = "http://loyce.club/Merit/merit.all.txt"; $file = file($url); $file = str_replace(" ", ",",$file); $file = str_replace("\r\n", "",$file); // put the array together foreach ($file as $line => $value) { $value = explode(",", $value); $bigArray[] = array("Donor" => $value[3], "Recipient" => $value[4], "Merits" => $value[1], "Msg" => $value[2], "DTG" => $value[0]); } function searchForDonor($uid, $array) { echo "<table>"; foreach ($array as $key => $val) { if($val["Donor"] === $uid) { //print_r($array[$key]); echo "<tr> <td>".date("d.m.Y H:i:s", $val["DTG"])."</td> <td><a href='https://bitcointalk.org/index.php?topic=".$val["Msg"]."#". strstr($val["Msg"], "msg")."'>".$val["Msg"]."</a></td> <td><a href='https://bitcointalk.org/index.php?action=profile;u=".$val["Donor"]."'>".$val["Donor"]."</a></td> <td>-(".$val["Merits"].")-></td> <td><a href='https://bitcointalk.org/index.php?action=profile;u=".$val["Recipient"]."'>".$val["Recipient"]."</a></td> </tr>"; } } return null; echo "</table>"; } function searchForRecipient($uid, $array) { echo "<table>"; foreach ($array as $key => $val) { if($val["Recipient"] === $uid) { //print_r($array[$key]); echo "<tr> <td>".date("d.m.Y H:i:s", $val["DTG"])."</td> <td><a href='https://bitcointalk.org/index.php?topic=".$val["Msg"]."#". strstr($val["Msg"], "msg")."'>".$val["Msg"]."</a></td> <td><a href='https://bitcointalk.org/index.php?action=profile;u=".$val["Recipient"]."'>".$val["Recipient"]."</a></td> <td><-(".$val["Merits"].")-</td> <td><a href='https://bitcointalk.org/index.php?action=profile;u=".$val["Donor"]."'>".$val["Donor"]."</a></td> </tr>"; } } return null; echo "</table>"; } if(isset($_GET["donor"])) { searchForDonor($_GET["donor"], $bigArray); } if(isset($_GET["recipient"])) { searchForRecipient($_GET["recipient"], $bigArray); } ?> Output as JSON array: https://i.ibb.co/rG4wPJw/Unbenannt.png Quote <?php //GET Request by: meritjson.php?donor=USERID header('Content-Type: application/json'); $url = "http://loyce.club/Merit/merit.all.txt"; $file = file($url); $file = str_replace(" ", ",",$file); $file = str_replace("\r\n", "",$file); // put the array together foreach ($file as $line => $value) { $value = explode(",", $value); $bigArray[] = array("Donor" => $value[3], "Recipient" => $value[4], "Merits" => $value[1], "Msg" => $value[2], "DTG" => $value[0]); } function searchForDonor($uid, $array) { foreach ($array as $key => $val) { if($val["Donor"] === $uid) { echo json_encode($array[$key], JSON_PRETTY_PRINT); } } return null; } function searchForRecipient($uid, $array) { foreach ($array as $key => $val) { if($val["Recipient"] === $uid) { echo json_encode($array[$key], JSON_PRETTY_PRINT); } } return null; } if(isset($_GET["donor"])) { searchForDonor($_GET["donor"], $bigArray); } if(isset($_GET["recipient"])) { searchForRecipient($_GET["recipient"], $bigArray); } ?> Once uploaded, you can search your .txt for merits given and received by users through file.php?donor=USERID and ?recipient=USERID Hope it fits the needs. Smiley Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: LoyceV on June 22, 2019, 12:16:34 PM Hope it fits the needs. :) Is this something I run on the server?(complete n00b here) Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: CryptoNeed on June 22, 2019, 12:19:35 PM Hope it fits the needs. :) Is this something I run on the server?(complete n00b here) yes. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: TryNinja on June 22, 2019, 12:24:09 PM Hope it fits the needs. :) Is this something I run on the server?(complete n00b here) But if you don’t want, I could try making my own as well. I thought I had to scrape each user merit page or similar. Edit:@Loyce how do you get the name of the users and posts? Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: CryptoNeed on June 22, 2019, 12:32:19 PM Hope it fits the needs. :) Is this something I run on the server?(complete n00b here) But if you don’t want, I could try making my own as well. I thought I had to scrape each user merit page or similar. Exactly. Sorry, I forgot to mention it. I made two files. The HTML-Output file will generate clickable links for everyone and the other file will provide other users with a "light API" for your file. If you safe these files in the same directory on your server where the merit.all.txt is located, you can set $url to "merit.all.txt". If not, you may need to adjust the variable. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: LoyceV on June 22, 2019, 05:57:55 PM @CryptoNeed: I haven't had the time to thoroughly look at it, but thanks for the code!
Call this file anything-you-want.php and just upload it in the same folder as the merit.all.txt file. I'll have time for it tomorrow. I'll also make a new topic tomorrow (something like: "loyce.club crowdsourced user scripts"), because (although very interesting) I think we're a bit off-topic here.But if you don’t want, I could try making my own as well. I thought I had to scrape each user merit page or similar. Edit:@Loyce how do you get the name of the users and posts? All my public Merit data is summarized in this post (https://bitcointalk.org/index.php?topic=3078328.msg51555984#msg51555984), including usernames (http://loyce.club/Merit/usernames.txt). Post titles are published in a 98 MB large file, I can make a less bloated version if needed. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 22, 2019, 06:57:28 PM ~snip Good job man! You're fast. What system/PHP version are you running? I tried running on my local system. When you pull merit.all.txt, is it showing spaces for you, or tabs? For me, locally, it's showing tabs, so the top had to be changed to the following. Code: $url = "http://loyce.club/Merit/merit.all.txt"; I'm not sure why there's a difference, perhaps it's environmental. But, I'd maybe switch to a regex to permit both spaces/tabs just in case. Also, the return null; within the functions aren't allowing the table to be finished semantically (no </table>), so I'd drop those, or move the echo up. Code: echo "</table>"; For todos, it's probably a good idea to accept no parameters as well, combining the script to allow the user to specify a output method (JSON, or table format) I can help out providing modifications to your code, but I wanna grab your permission first. Your code after all. Good job though, and thanks! Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: CryptoNeed on June 22, 2019, 10:42:51 PM ~snip Good job man! You're fast. What system/PHP version are you running? I tried running on my local system. When you pull merit.all.txt, is it showing spaces for you, or tabs? For me, locally, it's showing tabs, so the top had to be changed to the following. Code: $url = "http://loyce.club/Merit/merit.all.txt"; I'm not sure why there's a difference, perhaps it's environmental. But, I'd maybe switch to a regex to permit both spaces/tabs just in case. Also, the return null; within the functions aren't allowing the table to be finished semantically (no </table>), so I'd drop those, or move the echo up. Code: echo "</table>"; For todos, it's probably a good idea to accept no parameters as well, combining the script to allow the user to specify a output method (JSON, or table format) I can help out providing modifications to your code, but I wanna grab your permission first. Your code after all. Good job though, and thanks! Hi, thanks for you inputs. As I said: It's been a while since I actively coded a lot. ;D Of course you can use and modify this code. Feel free. For me it is tabs aswell, but it works like a charme (win xamp v3.2.2. w/ std ini's). regex are far better! I am just suffering from forgotten knowledge and lazyness. (see above: it has been a while ;D) Return and Echo is obv incorrect and has to be changed. Parameters: I was not sure what was exactly needed. So I made just two versions. But afterall a good idea to just add another bool for JSON output or not, or something like this. Also I initially wanted to work with switch() and parse the whole array as a default. Holy grail would be a read-only database access to the effected tables. Would be much faster and easier. Cheers! Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 22, 2019, 10:48:27 PM ~snip Good job man! You're fast. What system/PHP version are you running? I tried running on my local system. When you pull merit.all.txt, is it showing spaces for you, or tabs? For me, locally, it's showing tabs, so the top had to be changed to the following. Code: $url = "http://loyce.club/Merit/merit.all.txt"; I'm not sure why there's a difference, perhaps it's environmental. But, I'd maybe switch to a regex to permit both spaces/tabs just in case. Also, the return null; within the functions aren't allowing the table to be finished semantically (no </table>), so I'd drop those, or move the echo up. Code: echo "</table>"; For todos, it's probably a good idea to accept no parameters as well, combining the script to allow the user to specify a output method (JSON, or table format) I can help out providing modifications to your code, but I wanna grab your permission first. Your code after all. Good job though, and thanks! Hi, thanks for you inputs. As I said: It's been a while since I actively coded a lot. ;D Of course you can use and modify this code. Feel free. For me it is tabs aswell, but it works like a charme (win xamp v3.2.2. w/ std ini's). regex are far better! I am just suffering from forgotten knowledge and lazyness. (see above: it has been a while ;D) Return and Echo is obv incorrect and has to be changed. Parameters: I was not sure what was exactly needed. So I made just two versions. But afterall a good idea to just add another bool for JSON output or not, or something like this. Also I initially wanted to work with switch() and parse the whole array as a default. Holy grail would be a read-only database access to the effected tables. Would be much faster and easier. Cheers! No worries man. Yea, I think there's a difference of interpretation between Windows versions of PHP & Linux, which may be why. I'm running on Mac right now. I'll make a combined version tonight/tomorrow, and switch it to a regex just in case. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: CryptoNeed on June 22, 2019, 10:50:52 PM No worries man. Yea, I think there's a difference of interpretation between Windows versions of PHP & Linux, which may be why. I'm running on Mac right now. I'll make a combined version tonight/tomorrow, and switch it to a regex just in case. Thx, please share afterwards. :) I gonna run the old code on my Mac later/tomorrow. I'm curious. ;D Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 22, 2019, 10:52:07 PM No worries man. Yea, I think there's a difference of interpretation between Windows versions of PHP & Linux, which may be why. I'm running on Mac right now. I'll make a combined version tonight/tomorrow, and switch it to a regex just in case. Thx, please share afterwards. :) I gonna run the old code on my Mac later/tomorrow. I'm curious. ;D Could just be my machine lol. I'll let you know :) Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: DarkDays on June 22, 2019, 11:32:45 PM Would also be nice to have a script that automatically bumps a thread every 24 hours, ideally deleting the previous bump so as not to spam up the thread.
If this could be combined with custom texts that are randomly cycled that would be even better. If something like this already exists, please do let me know as I play to launch a service thread soon and this would be very useful (+5 merits for the link!) Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 23, 2019, 12:10:40 AM Would also be nice to have a script that automatically bumps a thread every 24 hours, ideally deleting the previous bump so as not to spam up the thread. If this could be combined with custom texts that are randomly cycled that would be even better. If something like this already exists, please do let me know as I play to launch a service thread soon and this would be very useful (+5 merits for the link!) At the very least this would have to be an extension, and not sure how easy this would be, or if it's even possible within the scopes of a browser extension. Would probably have to be something server side. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Quickseller on June 23, 2019, 12:20:17 AM Would also be nice to have a script that automatically bumps a thread every 24 hours, ideally deleting the previous bump so as not to spam up the thread. https://github.com/buxlover/autobumpIf this could be combined with custom texts that are randomly cycled that would be even better. If something like this already exists, please do let me know as I play to launch a service thread soon and this would be very useful (+5 merits for the link!) I didn't create this personally, nor have I inspected it. People have sold (https://bitcointalk.org/index.php?topic=1389668.0) similar bots in the past, and even tried to use this as a service (https://bitcointalk.org/index.php?topic=1573939.0). Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 23, 2019, 12:33:26 AM Would also be nice to have a script that automatically bumps a thread every 24 hours, ideally deleting the previous bump so as not to spam up the thread. https://github.com/buxlover/autobumpIf this could be combined with custom texts that are randomly cycled that would be even better. If something like this already exists, please do let me know as I play to launch a service thread soon and this would be very useful (+5 merits for the link!) I didn't create this personally, nor have I inspected it. People have sold (https://bitcointalk.org/index.php?topic=1389668.0) similar bots in the past, and even tried to use this as a service (https://bitcointalk.org/index.php?topic=1573939.0). Yea, as I expected, you'll need a server setup for this though. Not something simple like a chrome extension. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: LoyceV on June 23, 2019, 03:11:30 PM I'll have time for it tomorrow. I'll also make a new topic tomorrow (something like: "loyce.club crowdsourced user scripts"), because (although very interesting) I think we're a bit off-topic here. For anyone who's interested on continuing this, I've created [project] api.loyce.club: crowdsourcing Bitcointalk data (https://bitcointalk.org/index.php?topic=5157603.0).Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on June 27, 2019, 05:40:38 AM Getting a bump on this.
Still gathering potential ideas. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: omer-jamal on June 27, 2019, 06:27:31 AM is there any tool cut (hide) long Quote?
Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: akamit on June 27, 2019, 05:05:57 PM is there any tool cut (hide) long Quote? Are you talking about the nested quotes? If so, you can check User Script: Automatically remove nested quotes v1.1.1 (https://bitcointalk.org/index.php?topic=5148327.0)Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: xolxol on June 27, 2019, 05:22:56 PM I think we need something like archiving the specific thread in a specific board,especially iff you're hunting EIO/ICOs to invest in,we need that archiving features.
Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: omer-jamal on June 27, 2019, 05:55:59 PM Are you talking about the nested quotes? If so, you can check User Script: Automatically remove nested quotes v1.1.1 (https://bitcointalk.org/index.php?topic=5148327.0) see here (https://bitcointalk.org/index.php?topic=5156357.msg51566242#msg51566242) Is not important But if there was a tool hide the large quote Something like https://i.ibb.co/7JQgFYN/image.png Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: akamit on June 27, 2019, 06:18:02 PM Are you talking about the nested quotes? If so, you can check User Script: Automatically remove nested quotes v1.1.1 (https://bitcointalk.org/index.php?topic=5148327.0) see here (https://bitcointalk.org/index.php?topic=5156357.msg51566242#msg51566242) Is not important But if there was a tool hide the large quote Something like https://i.ibb.co/7JQgFYN/image.png Maybe the script can be helpful to those users who don't like to remove the large quotes manually or care to remove. Maybe some users like me want to do this thing manually. I have a self-moderated thread with my local rule not to quote the whole OP, yet users quotes and I don't have the option other than to delete. So the script can be handy to those type of users. Let's see what answer comes up from a dev... :) Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on July 01, 2019, 06:08:17 AM Are you talking about the nested quotes? If so, you can check User Script: Automatically remove nested quotes v1.1.1 (https://bitcointalk.org/index.php?topic=5148327.0) see here (https://bitcointalk.org/index.php?topic=5156357.msg51566242#msg51566242) Is not important But if there was a tool hide the large quote Something like https://i.ibb.co/7JQgFYN/image.png I'll make an attempt to try to build that when I get a chance. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on July 15, 2019, 08:02:17 AM Bumping this, any further ideas?
Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Decimation on July 30, 2019, 12:01:34 AM Bumping this, any further ideas? I love this thread and would like to get some more ideas since I have a lot of extra time to program. So far the main task seems to be an "auto bumper". I have made a program in Python that logs in and posts to a specified thread with a specified message (support for multiple messages / random selection). Example: Login: username, password Post: topic, random msg => [msg 1, msg2, msg3] I still need some input for this last part: do you want it to be standalone? Meaning that you would have something to schedule posts? I think that having a program running all the time is a bit of a hassle so I'm unsure what to do at this point. Also, as far as bumping goes, would it be every 24 hours or every 24 hours ONLY if there hasn't been a reply? Would love to hear your thoughts! Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: owlcatz on July 30, 2019, 12:23:50 AM I love this thread and would like to get some more ideas since I have a lot of extra time to program. So far the main task seems to be an "auto bumper". I have made a program in Python that logs in and posts to a specified thread with a specified message (support for multiple messages / random selection). Example: Login: username, password Post: topic, random msg => [msg 1, msg2, msg3] I still need some input for this last part: do you want it to be standalone? Meaning that you would have something to schedule posts? I think that having a program running all the time is a bit of a hassle so I'm unsure what to do at this point. Also, as far as bumping goes, would it be every 24 hours or every 24 hours ONLY if there hasn't been a reply? Would love to hear your thoughts! Sounds awesome. I agree, needs to be standalone. Should be ever 24 only if no other reply/bump imo... :D I'm trying to find someone to write a script to help me prune my watchlist - unwatching topics I don't care about, but on boards I should monitor is a real fucking pain in the ass. Open thread, click unwatch, close tab or go back twice. fucking a drives me crazy daily lol. I'd pay .005 for that one! :P Thanks! Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Decimation on July 30, 2019, 12:53:13 AM I love this thread and would like to get some more ideas since I have a lot of extra time to program. So far the main task seems to be an "auto bumper". I have made a program in Python that logs in and posts to a specified thread with a specified message (support for multiple messages / random selection). Example: Login: username, password Post: topic, random msg => [msg 1, msg2, msg3] I still need some input for this last part: do you want it to be standalone? Meaning that you would have something to schedule posts? I think that having a program running all the time is a bit of a hassle so I'm unsure what to do at this point. Also, as far as bumping goes, would it be every 24 hours or every 24 hours ONLY if there hasn't been a reply? Would love to hear your thoughts! Sounds awesome. I agree, needs to be standalone. Should be ever 24 only if no other reply/bump imo... :D I'm trying to find someone to write a script to help me prune my watchlist - unwatching topics I don't care about, but on boards I should monitor is a real fucking pain in the ass. Open thread, click unwatch, close tab or go back twice. fucking a drives me crazy daily lol. I'd pay .005 for that one! :P Thanks! Sure I can definitely do that, wouldn't be intrusive at all as it runs completely headless (using python requests, basically fastest possible), could you PM me some more details on that, I'd love to make it :) Edit: So far I the script scrapes topic titles + specified links (amazingly takes .5 seconds), example output: Code: [["Don't Judge a Book By Its Cover ", 'https://bitcointalk.org/index.php?topic=5167698.0;topicseen'], ["Impossibility of a gambling system (Why methods don't work)", 'https://bitcointalk.org/index.php?topic=5167303.0;topicseen'], ['Windice.io Signature Campaign(1 open slot)', 'https://bitcointalk.org/index.php?topic=5118542.0;topicseen'], ['REEE: [US Only] Impeachment Vote', 'https://bitcointalk.org/index.php?topic=5168188.0;topicseen'], ['How to safely store big amounts of BTC?', 'https://bitcointalk.org/index.php?topic=5152308.0;topicseen'], ['Something I noticed when sending USD from Coinbase to my bank account', 'https://bitcointalk.org/index.php?topic=5166175.0;topicseen'], ['Bitcoin trading is a big challenge. ', 'https://bitcointalk.org/index.php?topic=5163840.0;topicseen'], ['Which countries are more friendlier to crypto?', 'https://bitcointalk.org/index.php?topic=5152015.0;topicseen'], ['I think a lot of people just missed their chance', 'https://bitcointalk.org/index.php?topic=5113317.0;topicseen'], ['People who gamble are degenerates, change my mind.', 'https://bitcointalk.org/index.php?topic=5117386.0;topicseen'], ['Bitcoin can go to 42000$???', 'https://bitcointalk.org/index.php?topic=5168445.0;topicseen']] Then I added an "unwatch" function which currently accepts either topic link or topic #, this is just for single use as of now but it's scalable. Output: Code: Successfully unwatched topic: [I think a lot of people just missed their chance] I can pretty much do anything going forward, whether it's inverse (you only input threads you want to keep) or even keyword oriented. Just let me know! Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Pffrt on July 30, 2019, 06:29:23 AM Writing a post on another thread, thinking of having a data on active profile.
An extension/script which can show the number of active users within the last 24 hours along with the rank. For ex: Total Active Users within last 24 hours- 2500 Legendary- XXX Hero- XXX Sr- XXX Full- XXX Member- XXX Jr- XXX Newbie- XXX Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on July 31, 2019, 06:52:49 AM Writing a post on another thread, thinking of having a data on active profile. An extension/script which can show the number of active users within the last 24 hours along with the rank. For ex: Total Active Users within last 24 hours- 2500 Legendary- XXX Hero- XXX Sr- XXX Full- XXX Member- XXX Jr- XXX Newbie- XXX This would be somewhat hard to do without keeping a massive collection of information. AFAIK, the only services which would be able to do this on the backend side are BitcoinTalk itself, and then maybe BPIP.org (considered they have a last active status with their members I believe) Would have to wait for BPIP to have some sort of API. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Decimation on July 31, 2019, 04:41:04 PM Writing a post on another thread, thinking of having a data on active profile. An extension/script which can show the number of active users within the last 24 hours along with the rank. For ex: Total Active Users within last 24 hours- 2500 Legendary- XXX Hero- XXX Sr- XXX Full- XXX Member- XXX Jr- XXX Newbie- XXX This would be somewhat hard to do without keeping a massive collection of information. AFAIK, the only services which would be able to do this on the backend side are BitcoinTalk itself, and then maybe BPIP.org (considered they have a last active status with their members I believe) Would have to wait for BPIP to have some sort of API. Yea I actually looked at BPIP, thinking they would have something like this but apparently not. They need to add sort options or an API like you said. Trying to scrape all that data on your own would take forever. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on August 02, 2019, 04:58:55 AM Writing a post on another thread, thinking of having a data on active profile. An extension/script which can show the number of active users within the last 24 hours along with the rank. For ex: Total Active Users within last 24 hours- 2500 Legendary- XXX Hero- XXX Sr- XXX Full- XXX Member- XXX Jr- XXX Newbie- XXX This would be somewhat hard to do without keeping a massive collection of information. AFAIK, the only services which would be able to do this on the backend side are BitcoinTalk itself, and then maybe BPIP.org (considered they have a last active status with their members I believe) Would have to wait for BPIP to have some sort of API. Yea I actually looked at BPIP, thinking they would have something like this but apparently not. They need to add sort options or an API like you said. Trying to scrape all that data on your own would take forever. Well, the point is its already been done, so no point re-inventing the wheel. Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: Initscri on August 25, 2019, 05:17:59 AM Any further ideas?
Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: LoyceV on August 25, 2019, 09:25:51 AM Writing a post on another thread, thinking of having a data on active profile. This would be somewhat hard to do without keeping a massive collection of information.An extension/script which can show the number of active users within the last 24 hours along with the rank. For ex: Total Active Users within last 24 hours- 2500 Legendary- XXX Hero- XXX Sr- XXX Full- XXX Member- XXX Jr- XXX Newbie- XXX AFAIK, the only services which would be able to do this on the backend side are BitcoinTalk itself, and then maybe BPIP.org (considered they have a last active status with their members I believe) Would have to wait for BPIP to have some sort of API. Although I'm not sure what this can be used for, it sounds like a nice Sunday afternoon project (it's too hot to go out today). I have 3 (useless?) ideas : If someone wants to make this, I have some input data: http://loyce.club/Merit/userID_merit.txt (updated weekly, usually on Friday/Saturday).1. Shows user's total earned merit (all-time) on thread page Quote 2. Shows user's total earned merit in last 120 days on thread page This data can be extracted from http://loyce.club/Merit/merit.all.txt (also updated weekly).Title: Re: [BRAINSTORM] Any requests for custom extensions/user scripts for BitcoinTalk? Post by: hatshepsut93 on August 26, 2019, 01:50:52 PM Quote 2. Shows user's total earned merit in last 120 days on thread page This data can be extracted from http://loyce.club/Merit/merit.all.txt (also updated weekly).You need to setup CORS headers on https://loyce.club for that to work, otherwise browsers won't allow requesting it from other sites. Also make sure that https is always available, because http requests are also rejected. |